|
| 1 | +#include-once |
| 2 | + |
| 3 | +; #INDEX# ======================================================================================================================= |
| 4 | +; Title .........: Constants |
| 5 | +; AutoIt Version : 3.3.14.2 |
| 6 | +; Language ......: English |
| 7 | +; Description ...: Constants to be included in an AutoIt v3 script. |
| 8 | +; Author(s) .....: JLandes, Nutster, CyberSlug, Holger, ... |
| 9 | +; =============================================================================================================================== |
| 10 | + |
| 11 | +; #CONSTANTS# =================================================================================================================== |
| 12 | +; Sets the way coords are used in the mouse and pixel functions |
| 13 | +Global Const $OPT_COORDSRELATIVE = 0 ; Relative coords to the active window |
| 14 | +Global Const $OPT_COORDSABSOLUTE = 1 ; Absolute screen coordinates (default) |
| 15 | +Global Const $OPT_COORDSCLIENT = 2 ; Relative coords to client area |
| 16 | + |
| 17 | +; Sets how errors are handled if a Run/RunWait function fails |
| 18 | +Global Const $OPT_ERRORSILENT = 0 ; Silent error (@error set to 1) |
| 19 | +Global Const $OPT_ERRORFATAL = 1 ; Fatal error (default) |
| 20 | + |
| 21 | +; Alters the use of Caps Lock |
| 22 | +Global Const $OPT_CAPSNOSTORE = 0 ; Don't store/restore Caps Lock state |
| 23 | +Global Const $OPT_CAPSSTORE = 1 ; Store/restore Caps Lock state (default) |
| 24 | + |
| 25 | +; Alters the method that is used to match window titles |
| 26 | +Global Const $OPT_MATCHSTART = 1 ; Match the title from the start (default) |
| 27 | +Global Const $OPT_MATCHANY = 2 ; Match any substring in the title |
| 28 | +Global Const $OPT_MATCHEXACT = 3 ; Match the title exactly |
| 29 | +Global Const $OPT_MATCHADVANCED = 4 ; Use advanced window matching (deprecated) |
| 30 | + |
| 31 | +; Common Control Styles |
| 32 | +Global Const $CCS_TOP = 0x01 |
| 33 | +Global Const $CCS_NOMOVEY = 0x02 |
| 34 | +Global Const $CCS_BOTTOM = 0x03 |
| 35 | +Global Const $CCS_NORESIZE = 0x04 |
| 36 | +Global Const $CCS_NOPARENTALIGN = 0x08 |
| 37 | +Global Const $CCS_NOHILITE = 0x10 |
| 38 | +Global Const $CCS_ADJUSTABLE = 0x20 |
| 39 | +Global Const $CCS_NODIVIDER = 0x40 |
| 40 | +Global Const $CCS_VERT = 0x0080 |
| 41 | +Global Const $CCS_LEFT = 0x0081 |
| 42 | +Global Const $CCS_NOMOVEX = 0x0082 |
| 43 | +Global Const $CCS_RIGHT = 0x0083 |
| 44 | + |
| 45 | +; DriveGetType() Constants |
| 46 | +Global Const $DT_DRIVETYPE = 1 ; Drive type e.g. CD-ROM, Fixed. |
| 47 | +Global Const $DT_SSDSTATUS = 2 ; Status of whether the drive is SSD. |
| 48 | +Global Const $DT_BUSTYPE = 3 ; Bus type e.g. SATA, SD. |
| 49 | + |
| 50 | +; FtpSetProxy and HttpSetProxy Constants |
| 51 | +Global Const $PROXY_IE = 0 |
| 52 | +Global Const $PROXY_NONE = 1 |
| 53 | +Global Const $PROXY_SPECIFIED = 2 |
| 54 | + |
| 55 | +; Reserved IDs for System Objects |
| 56 | +; in MenuConstants.au3 |
| 57 | +; in ScrollBarsConstants.au3 |
| 58 | +Global Const $OBJID_WINDOW = 0x00000000 |
| 59 | +Global Const $OBJID_TITLEBAR = 0xFFFFFFFE |
| 60 | +Global Const $OBJID_SIZEGRIP = 0xFFFFFFF9 |
| 61 | +Global Const $OBJID_CARET = 0xFFFFFFF8 |
| 62 | +Global Const $OBJID_CURSOR = 0xFFFFFFF7 |
| 63 | +Global Const $OBJID_ALERT = 0xFFFFFFF6 |
| 64 | +Global Const $OBJID_SOUND = 0xFFFFFFF5 |
| 65 | + |
| 66 | +; Progress and Splash Constants |
| 67 | +; Indicates properties of the displayed progress or splash dialog |
| 68 | +Global Const $DLG_CENTERONTOP = 0 ; Center justified/always on top/with title |
| 69 | +Global Const $DLG_NOTITLE = 1 ; Titleless window |
| 70 | +Global Const $DLG_NOTONTOP = 2 ; Without "always on top" attribute |
| 71 | +Global Const $DLG_TEXTLEFT = 4 ; Left justified text |
| 72 | +Global Const $DLG_TEXTRIGHT = 8 ; Right justified text |
| 73 | +Global Const $DLG_MOVEABLE = 16 ; Window can be moved |
| 74 | +Global Const $DLG_TEXTVCENTER = 32 ; Splash text centered vertically |
| 75 | + |
| 76 | +; Mouse Constants |
| 77 | +; Indicates current mouse cursor |
| 78 | +Global Const $IDC_UNKNOWN = 0 ; Unknown cursor |
| 79 | +Global Const $IDC_APPSTARTING = 1 ; Standard arrow and small hourglass |
| 80 | +Global Const $IDC_ARROW = 2 ; Standard arrow |
| 81 | +Global Const $IDC_CROSS = 3 ; Crosshair |
| 82 | +Global Const $IDC_HAND = 32649 ; Hand cursor |
| 83 | +Global Const $IDC_HELP = 4 ; Arrow and question mark |
| 84 | +Global Const $IDC_IBEAM = 5 ; I-beam |
| 85 | +Global Const $IDC_ICON = 6 ; Obsolete |
| 86 | +Global Const $IDC_NO = 7 ; Slashed circle |
| 87 | +Global Const $IDC_SIZE = 8 ; Obsolete |
| 88 | +Global Const $IDC_SIZEALL = 9 ; Four-pointed arrow pointing N, S, E, and W |
| 89 | +Global Const $IDC_SIZENESW = 10 ; Double-pointed arrow pointing NE and SW |
| 90 | +Global Const $IDC_SIZENS = 11 ; Double-pointed arrow pointing N and S |
| 91 | +Global Const $IDC_SIZENWSE = 12 ; Double-pointed arrow pointing NW and SE |
| 92 | +Global Const $IDC_SIZEWE = 13 ; Double-pointed arrow pointing W and E |
| 93 | +Global Const $IDC_UPARROW = 14 ; Vertical arrow |
| 94 | +Global Const $IDC_WAIT = 15 ; Hourglass |
| 95 | + |
| 96 | +Global Const $IDI_APPLICATION = 32512 ; Application icon |
| 97 | +Global Const $IDI_ASTERISK = 32516 ; Asterisk icon |
| 98 | +Global Const $IDI_EXCLAMATION = 32515 ; Exclamation point icon |
| 99 | +Global Const $IDI_HAND = 32513 ; Stop sign icon |
| 100 | +Global Const $IDI_QUESTION = 32514 ; Question-mark icon |
| 101 | +Global Const $IDI_WINLOGO = 32517 ; Windows logo icon. Windows XP: Application icon |
| 102 | +Global Const $IDI_SHIELD = 32518 |
| 103 | +Global Const $IDI_ERROR = $IDI_HAND |
| 104 | +Global Const $IDI_INFORMATION = $IDI_ASTERISK |
| 105 | +Global Const $IDI_WARNING = $IDI_EXCLAMATION |
| 106 | + |
| 107 | +; Process Constants |
| 108 | +; Indicates the type of shutdown |
| 109 | +Global Const $SD_LOGOFF = 0 ; Logoff |
| 110 | +Global Const $SD_SHUTDOWN = 1 ; Shutdown |
| 111 | +Global Const $SD_REBOOT = 2 ; Reboot |
| 112 | +Global Const $SD_FORCE = 4 ; Force |
| 113 | +Global Const $SD_POWERDOWN = 8 ; Power down |
| 114 | +Global Const $SD_FORCEHUNG = 16 ; Force shutdown if hung |
| 115 | +Global Const $SD_STANDBY = 32 ; Standby |
| 116 | +Global Const $SD_HIBERNATE = 64 ; Hibernate |
| 117 | + |
| 118 | +; Run Constants |
| 119 | +Global Const $STDIN_CHILD = 1 |
| 120 | +Global Const $STDOUT_CHILD = 2 |
| 121 | +Global Const $STDERR_CHILD = 4 |
| 122 | +Global Const $STDERR_MERGED = 8 |
| 123 | +Global Const $STDIO_INHERIT_PARENT = 0x10 |
| 124 | +Global Const $RUN_CREATE_NEW_CONSOLE = 0x00010000 |
| 125 | + |
| 126 | +; UBound Constants |
| 127 | +Global Const $UBOUND_DIMENSIONS = 0 |
| 128 | +Global Const $UBOUND_ROWS = 1 |
| 129 | +Global Const $UBOUND_COLUMNS = 2 |
| 130 | + |
| 131 | +; Mouse Event Constants |
| 132 | +Global Const $MOUSEEVENTF_ABSOLUTE = 0x8000 ; Specifies that the dx and dy parameters contain normalized absolute coordinates |
| 133 | +Global Const $MOUSEEVENTF_MOVE = 0x0001 ; Specifies that movement occurred |
| 134 | +Global Const $MOUSEEVENTF_LEFTDOWN = 0x0002 ; Specifies that the left button changed to down |
| 135 | +Global Const $MOUSEEVENTF_LEFTUP = 0x0004 ; Specifies that the left button changed to up |
| 136 | +Global Const $MOUSEEVENTF_RIGHTDOWN = 0x0008 ; Specifies that the right button changed to down |
| 137 | +Global Const $MOUSEEVENTF_RIGHTUP = 0x0010 ; Specifies that the right button changed to up |
| 138 | +Global Const $MOUSEEVENTF_MIDDLEDOWN = 0x0020 ; Specifies that the middle button changed to down |
| 139 | +Global Const $MOUSEEVENTF_MIDDLEUP = 0x0040 ; Specifies that the middle button changed to up |
| 140 | +Global Const $MOUSEEVENTF_WHEEL = 0x0800 ; Specifies that the wheel has been moved, if the mouse has a wheel |
| 141 | +Global Const $MOUSEEVENTF_XDOWN = 0x0080 ; Specifies that an X button was pressed |
| 142 | +Global Const $MOUSEEVENTF_XUP = 0x0100 ; Specifies that an X button was released |
| 143 | + |
| 144 | +; Reg Value type Constants |
| 145 | +Global Const $REG_NONE = 0 |
| 146 | +Global Const $REG_SZ = 1 |
| 147 | +Global Const $REG_EXPAND_SZ = 2 |
| 148 | +Global Const $REG_BINARY = 3 |
| 149 | +Global Const $REG_DWORD = 4 |
| 150 | +Global Const $REG_DWORD_LITTLE_ENDIAN = 4 |
| 151 | +Global Const $REG_DWORD_BIG_ENDIAN = 5 |
| 152 | +Global Const $REG_LINK = 6 |
| 153 | +Global Const $REG_MULTI_SZ = 7 |
| 154 | +Global Const $REG_RESOURCE_LIST = 8 |
| 155 | +Global Const $REG_FULL_RESOURCE_DESCRIPTOR = 9 |
| 156 | +Global Const $REG_RESOURCE_REQUIREMENTS_LIST = 10 |
| 157 | +Global Const $REG_QWORD = 11 |
| 158 | +Global Const $REG_QWORD_LITTLE_ENDIAN = 11 |
| 159 | + |
| 160 | +; Z order |
| 161 | +Global Const $HWND_BOTTOM = 1 ; Places the window at the bottom of the Z order |
| 162 | +Global Const $HWND_NOTOPMOST = -2 ; Places the window above all non-topmost windows |
| 163 | +Global Const $HWND_TOP = 0 ; Places the window at the top of the Z order |
| 164 | +Global Const $HWND_TOPMOST = -1 ; Places the window above all non-topmost windows |
| 165 | + |
| 166 | +; SetWindowPos Constants |
| 167 | +Global Const $SWP_NOSIZE = 0x0001 |
| 168 | +Global Const $SWP_NOMOVE = 0x0002 |
| 169 | +Global Const $SWP_NOZORDER = 0x0004 |
| 170 | +Global Const $SWP_NOREDRAW = 0x0008 |
| 171 | +Global Const $SWP_NOACTIVATE = 0x0010 |
| 172 | +Global Const $SWP_FRAMECHANGED = 0x0020 |
| 173 | +Global Const $SWP_DRAWFRAME = 0x0020 |
| 174 | +Global Const $SWP_SHOWWINDOW = 0x0040 |
| 175 | +Global Const $SWP_HIDEWINDOW = 0x0080 |
| 176 | +Global Const $SWP_NOCOPYBITS = 0x0100 |
| 177 | +Global Const $SWP_NOOWNERZORDER = 0x0200 |
| 178 | +Global Const $SWP_NOREPOSITION = 0x0200 |
| 179 | +Global Const $SWP_NOSENDCHANGING = 0x0400 |
| 180 | +Global Const $SWP_DEFERERASE = 0x2000 |
| 181 | +Global Const $SWP_ASYNCWINDOWPOS = 0x4000 |
| 182 | + |
| 183 | +; Keywords (returned from the IsKeyword() function) |
| 184 | +Global Const $KEYWORD_DEFAULT = 1 |
| 185 | +Global Const $KEYWORD_NULL = 2 |
| 186 | + |
| 187 | +; IsDeclared Constants |
| 188 | +Global Const $DECLARED_LOCAL = -1 |
| 189 | +Global Const $DECLARED_UNKNOWN = 0 |
| 190 | +Global Const $DECLARED_GLOBAL = 1 |
| 191 | + |
| 192 | +; Assign Constants |
| 193 | +Global Const $ASSIGN_CREATE = 0 |
| 194 | +Global Const $ASSIGN_FORCELOCAL = 1 |
| 195 | +Global Const $ASSIGN_FORCEGLOBAL = 2 |
| 196 | +Global Const $ASSIGN_EXISTFAIL = 4 |
| 197 | + |
| 198 | +; BlockInput Constants |
| 199 | +Global Const $BI_ENABLE = 0 |
| 200 | +Global Const $BI_DISABLE = 1 |
| 201 | + |
| 202 | +; Break Constants |
| 203 | +Global Const $BREAK_ENABLE = 1 |
| 204 | +Global Const $BREAK_DISABLE = 0 |
| 205 | + |
| 206 | +; CDTray Constants |
| 207 | +Global Const $CDTRAY_OPEN = "open" |
| 208 | +Global Const $CDTRAY_CLOSED = "closed" |
| 209 | + |
| 210 | +; ControlSend and Send Constants |
| 211 | +Global Const $SEND_DEFAULT = 0 |
| 212 | +Global Const $SEND_RAW = 1 |
| 213 | + |
| 214 | +; DirGetSize Constants |
| 215 | +Global Const $DIR_DEFAULT = 0 |
| 216 | +Global Const $DIR_EXTENDED= 1 |
| 217 | +Global Const $DIR_NORECURSE = 2 |
| 218 | + |
| 219 | +; DirRemove Constants |
| 220 | +;~ Global Const $DIR_DEFAULT = 0 |
| 221 | +Global Const $DIR_REMOVE= 1 |
| 222 | + |
| 223 | +; DriveGetDrive Constants |
| 224 | +Global Const $DT_ALL = "ALL" |
| 225 | +Global Const $DT_CDROM = "CDROM" |
| 226 | +Global Const $DT_REMOVABLE = "REMOVABLE" |
| 227 | +Global Const $DT_FIXED = "FIXED" |
| 228 | +Global Const $DT_NETWORK = "NETWORK" |
| 229 | +Global Const $DT_RAMDISK = "RAMDISK" |
| 230 | +Global Const $DT_UNKNOWN = "UNKNOWN" |
| 231 | + |
| 232 | +; DriveGetFileSystem Constants |
| 233 | +Global Const $DT_UNDEFINED = 1 |
| 234 | +Global Const $DT_FAT = "FAT" |
| 235 | +Global Const $DT_FAT32 = "FAT32" |
| 236 | +Global Const $DT_EXFAT = "exFAT" |
| 237 | +Global Const $DT_NTFS = "NTFS" |
| 238 | +Global Const $DT_NWFS = "NWFS" |
| 239 | +Global Const $DT_CDFS = "CDFS" |
| 240 | +Global Const $DT_UDF = "UDF" |
| 241 | + |
| 242 | +; DriveMapAdd Constants |
| 243 | +Global Const $DMA_DEFAULT = 0 |
| 244 | +Global Const $DMA_PERSISTENT = 1 |
| 245 | +Global Const $DMA_AUTHENTICATION = 8 |
| 246 | + |
| 247 | +; DriveStatus Constants |
| 248 | +Global Const $DS_UNKNOWN = "UNKNOWN" |
| 249 | +Global Const $DS_READY = "READY" |
| 250 | +Global Const $DS_NOTREADY = "NOTREADY" |
| 251 | +Global Const $DS_INVALID = "INVALID" |
| 252 | + |
| 253 | +; Mouse related Constants |
| 254 | +Global Const $MOUSE_CLICK_LEFT = "left" |
| 255 | +Global Const $MOUSE_CLICK_RIGHT = "right" |
| 256 | +Global Const $MOUSE_CLICK_MIDDLE = "middle" |
| 257 | +Global Const $MOUSE_CLICK_MAIN = "main" |
| 258 | +Global Const $MOUSE_CLICK_MENU = "menu" |
| 259 | +Global Const $MOUSE_CLICK_PRIMARY = "primary" |
| 260 | +Global Const $MOUSE_CLICK_SECONDARY = "secondary" |
| 261 | +Global Const $MOUSE_WHEEL_UP = "up" |
| 262 | +Global Const $MOUSE_WHEEL_DOWN = "down" |
| 263 | + |
| 264 | +; Dec, Int, Number Constants |
| 265 | +Global Const $NUMBER_AUTO = 0 |
| 266 | +Global Const $NUMBER_32BIT = 1 |
| 267 | +Global Const $NUMBER_64BIT = 2 |
| 268 | +Global Const $NUMBER_DOUBLE = 3 |
| 269 | + |
| 270 | +; ObjName Constants |
| 271 | +Global Const $OBJ_NAME = 1 |
| 272 | +Global Const $OBJ_STRING = 2 |
| 273 | +Global Const $OBJ_PROGID = 3 |
| 274 | +Global Const $OBJ_FILE = 4 |
| 275 | +Global Const $OBJ_MODULE = 5 |
| 276 | +Global Const $OBJ_CLSID = 6 |
| 277 | +Global Const $OBJ_IID = 7 |
| 278 | + |
| 279 | +; OnAutoItExitRegister Constants |
| 280 | +Global Const $EXITCLOSE_NORMAL = 0 ; Natural closing. |
| 281 | +Global Const $EXITCLOSE_BYEXIT = 1 ; close by Exit function. |
| 282 | +Global Const $EXITCLOSE_BYCLICK = 2 ; close by clicking on exit of the systray. |
| 283 | +Global Const $EXITCLOSE_BYLOGOFF = 3 ; close by user logoff. |
| 284 | +Global Const $EXITCLOSE_BYSUTDOWN = 4 ; close by Windows shutdown. |
| 285 | + |
| 286 | +; ProcessGetStats Constants |
| 287 | +Global Const $PROCESS_STATS_MEMORY = 0 |
| 288 | +Global Const $PROCESS_STATS_IO = 1 |
| 289 | + |
| 290 | +; ProcessSetPriority Constants |
| 291 | +Global Const $PROCESS_LOW = 0 |
| 292 | +Global Const $PROCESS_BELOWNORMAL = 1 |
| 293 | +Global Const $PROCESS_NORMAL = 2 |
| 294 | +Global Const $PROCESS_ABOVENORMAL = 3 |
| 295 | +Global Const $PROCESS_HIGH = 4 |
| 296 | +Global Const $PROCESS_REALTIME = 5 |
| 297 | + |
| 298 | +; RunAs and RunAsWait Constants |
| 299 | +Global Const $RUN_LOGON_NOPROFILE = 0 |
| 300 | +Global Const $RUN_LOGON_PROFILE = 1 |
| 301 | +Global Const $RUN_LOGON_NETWORK = 2 |
| 302 | +Global Const $RUN_LOGON_INHERIT = 4 |
| 303 | + |
| 304 | +; SoundPlay Constants |
| 305 | +Global Const $SOUND_NOWAIT = 0 ; continue script while sound is playing (default) |
| 306 | +Global Const $SOUND_WAIT = 1 ; wait until sound has finished |
| 307 | + |
| 308 | +; ShellExecute and ShellExecuteWait Constants |
| 309 | +Global Const $SHEX_OPEN = "open" |
| 310 | +Global Const $SHEX_EDIT = "edit" |
| 311 | +Global Const $SHEX_PRINT = "print" |
| 312 | +Global Const $SHEX_PROPERTIES = "properties" |
| 313 | + |
| 314 | +; TCPRecv Constants |
| 315 | +Global Const $TCP_DATA_DEFAULT = 0 |
| 316 | +Global Const $TCP_DATA_BINARY = 1 |
| 317 | + |
| 318 | +; UDPOpen, UDPRecv Constants |
| 319 | +Global Const $UDP_OPEN_DEFAULT = 0 |
| 320 | +Global Const $UDP_OPEN_BROADCAST = 1 |
| 321 | +Global Const $UDP_DATA_DEFAULT = 0 |
| 322 | +Global Const $UDP_DATA_BINARY = 1 |
| 323 | +Global Const $UDP_DATA_ARRAY = 2 |
| 324 | + |
| 325 | +; ToolTip, GUICtrlSetTip Constants |
| 326 | +Global Const $TIP_NOICON = 0 ; No icon |
| 327 | +Global Const $TIP_INFOICON = 1 ; Info icon |
| 328 | +Global Const $TIP_WARNINGICON = 2 ; Warning icon |
| 329 | +Global Const $TIP_ERRORICON = 3 ; Error Icon |
| 330 | + |
| 331 | +Global Const $TIP_BALLOON = 1 |
| 332 | +Global Const $TIP_CENTER = 2 |
| 333 | +Global Const $TIP_FORCEVISIBLE = 4 |
| 334 | + |
| 335 | +; WindowsSetOnTop Constants |
| 336 | +Global Const $WINDOWS_NOONTOP = 0 |
| 337 | +Global Const $WINDOWS_ONTOP = 1 |
| 338 | +; =============================================================================================================================== |
0 commit comments