Tải bản đầy đủ (.pdf) (6 trang)

Giáo Trình How To Use AutoIt A Professional Manner part 129 pps

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (39.76 KB, 6 trang )

Return Value
Success:

Returns 1.
Failure:

Returns 0 if timeout occurred.

Remarks
The script polls for a window match every 250 milliseconds or so.
Related
WinActive, WinExists, WinWait, WinWaitActive, WinWaitClose, WinWaitDelay
(Option)
Example

;Wait for the window "Untitled" to not be active
WinWaitNotActive("Untitled")

;Wait a maximum of 5 seconds for "Untitled" to not be active
WinWaitNotActive("Untitled", "", 5)




AutoIt3 Limits/defaults

AutoIt3 limits Value Description
MAX_LINESIZE
4095
Maximum size for a line of script.
MAX_ENVSIZE 32767



Maximum size for an ENV variable.
WINTEXTBUFFER
32767
GetWindowText fails under 95
if>65535, WM_GETTEXT randomly
fails if > 32767.
MAXCALLRECURSE
5100
Maximum number of times the Call()
function can recurse to itself.
MAXEXECUTERECURSE 5100

Maximum number of times the
Execute() function can recurse to itself.

GUI_MAXCONTROLS 65532

Maximum number of controls in GUI
box.
GUI_MAXPOINTS 256

Maximum number of points by graphic
info page.
COM_MAXEVENT
64
Maximum number of COM events that
can be buffered.
VAR_SUBSCRIPT_MAX
64

Maximum number of subscripts for an
array.
MAIN_TIMER_DELAY
750 ms
Tray icon hiding/flashing/drawing is
checked every 750ms.
CMDLINEPARAM_MAXLEN

4096

Each parameter can be this many
characters.
TRAY_MAXITEMS 505

Maximum number of items in the tray
menu.
TRAY_MAXEVENT
32
Maximum number of events that can
be buffered.
TRAY_TOOLTIPWIDTH 64

Maximum number of characters
displayed in a tray tooltip.

Default Value

Description
ADLIB delay
250

ms

Default delay in ms between ADLIB triggers.
Can be defined in AdlibEnable().


Following defaults can be changed with Opt()
MouseClickDelay 10 ms

Time between mouse clicks.
MouseClickDownDelay

10 ms

Time the click is held down.
MouseClickDragDelay
250
ms

The delay at the start and end of a drag operation.

TCPTimeout
100
ms

Time after a TCP function is aborted.
ASCII Character Codes
This list is helpful with the Asc and Chr functions. Taken from ASCII Character
Set
Control Characters (mostly non-printing; most useful of these are highlighted

in yellow.)
Char

Dec Hex Description
NUL 0 00 Null character
SOH 1 01 Start of heading, = console interrupt
STX 2 02 Start of text, maintenance mode on HP console
ETX 3 03 End of text
EOT 4 04 End of transmission, not the same as ETB
ENQ 5 05 Enquiry, goes with ACK; old HP flow control
ACK 6 06 Acknowledge, clears ENQ logon hand
BEL 7 07 Bell, rings the bell (Plays Windows' default beep)
BS 8 08 Backspace, works on HP terminals/computers
HT 9 09 Horizontal tab, move to next tab stop
LF 10 0a Line Feed
VT 11 0b Vertical tab
FF 12 0c Form Feed, page eject
CR 13 0d Carriage Return
SO 14 0e Shift Out, alternate character set
SI 15 0f Shift In, resume default character set
DLE 16 10 Data link escape
DC1 17 11 XON, with XOFF to pause listings; ":okay to send".
DC2 18 12 Device control 2, block-mode flow control
DC3 19 13 XOFF, with XON is TERM=18 flow control
DC4 20 14 Device control 4
NAK 21 15 Negative acknowledge
SYN 22 16 Synchronous idle
ETB 23 17 End transmission block, not the same as EOT
CAN 24 18 Cancel line, MPE echoes !!!
EM 25 19 End of medium, Control-Y interrupt

SUB 26 1a Substitute
ESC 27 1b Escape, next character is not echoed
FS 28 1c File separator
GS 29 1d Group separator
RS 30 1e Record separator, block-mode terminator
US 31 1f Unit separator



Printing Characters (standard characters)
Char Dec Hex Description
32 20 Space
! 33 21 Exclamation mark
" 34 22 Quotation mark (" in HTML)
# 35 23 Cross hatch (number sign)
$ 36 24 Dollar sign
% 37 25 Percent sign
& 38 26 Ampersand
` 39 27 Closing single quote (apostrophe)
( 40 28 Opening parentheses
) 41 29 Closing parentheses
* 42 2a Asterisk (star, multiply)
+ 43 2b Plus
, 44 2c Comma
- 45 2d Hyphen, dash, minus
. 46 2e Period
/ 47 2f Slant (forward slash, divide)
0 48 30 Zero
1 49 31 One
2 50 32 Two

3 51 33 Three
4 52 34 Four
5 53 35 Five
6 54 36 Six
7 55 37 Seven
8 56 38 Eight
9 57 39 Nine
: 58 3a Colon
; 59 3b Semicolon
< 60 3c Less than sign
= 61 3d Equals sign
> 62 3e Greater than sign
? 63 3f Question mark
@ 64 40 At-sign
A 65 41 Uppercase A
B 66 42 Uppercase B
C 67 43 Uppercase C
D 68 44 Uppercase D
E 69 45 Uppercase E
F 70 46 Uppercase F
G 71 47 Uppercase G
H 72 48 Uppercase H

×