1. Trang chủ
  2. » Công Nghệ Thông Tin

AutoIT Help part 87 pptx

6 269 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 6
Dung lượng 73,86 KB

Nội dung

{RWINDOWN} Holds the right Windows key down until {RWINUP} is sent {ASC nnnn} Send the ALT+nnnn key combination {BROWSER_BACK} 2000/XP Only: Select the browser "back" button {BROWSER_FORWARD} 2000/XP Only: Select the browser "forward" button {BROWSER_REFRESH} 2000/XP Only: Select the browser "refresh" button {BROWSER_STOP} 2000/XP Only: Select the browser "stop" button {BROWSER_SEARCH} 2000/XP Only: Select the browser "search" button {BROWSER_FAVORITES} 2000/XP Only: Select the browser "favorites" button {BROWSER_HOME} 2000/XP Only: Launch the browser and go to the home page {VOLUME_MUTE} 2000/XP Only: Mute the volume {VOLUME_DOWN} 2000/XP Only: Reduce the volume {VOLUME_UP} 2000/XP Only: Increase the volume {MEDIA_NEXT} 2000/XP Only: Select next track in media player {MEDIA_PREV} 2000/XP Only: Select previous track in media player {MEDIA_STOP} 2000/XP Only: Stop media player {MEDIA_PLAY_PAUSE} 2000/XP Only: Play/pause media player {LAUNCH_MAIL} 2000/XP Only: Launch the email application {LAUNCH_MEDIA} 2000/XP Only: Launch media player {LAUNCH_APP1} 2000/XP Only: Launch user app1 {LAUNCH_APP2} 2000/XP Only: Launch user app2 để ấn kí tự † (giữ Alt ấn 01414 và thả Alt ra) ta dùng send( "ASC 01414") vd Send("{a 4}"); thì ấn phím a 4 lần Send("+{TAB 4}") ;thì ấn Alt Tab 4 lần Send("{a down}") ; ấn phím a xuống (giữ nó ở dưới) Send("{a up}") ; thả phím a lên (sau khi đc ấn xuống) To set the state of the capslock, numlock and scrolllock keys Send("{NumLock on}") ;Turns the NumLock key on Send("{CapsLock off}") ;Turns the CapsLock key off Send("{ScrollLock toggle}") ;Toggles the state of ScrollLock có thể dùng biến như sau $n = 4 Send("+{TAB " & $n & "}") If you wish to send the ASCII value A four times, then try $x = Chr(65) Send("{" & $x & " 4}") Related SendAttachmode (Option), SendKeepActive, SendKeyDelay (Option), SendKeyDownDelay (Option), ControlSend Example Send("#r") WinWaitActive("Run") Send("notepad.exe{Enter}") WinWaitActive("Untitled -") Send("Today's time/date is {F5}") Function Reference AutoItSetOption Changes the operation of various AutoIt functions/parameters. AutoItSetOption ( "option" [, param] ) Parameters option The option to change. See Remarks. param [optional] The value to assign to the option. The type and meaning vary by option. See remarks below. If the param is not provided, then the function just returns the value already assigned to the option. The keyword Default can be used for the parameter to reset the option to its default value. Return Value Returns the value of the previous setting for the option. Remarks You may use Opt() as an alternative to AutoItSetOption(). AutoIt will halt with an error message if the requested option is unknown. Options are as follows: Option Param CaretCoordMode Sets the way coords are used in the caret functions, either absolute coords or coords relative to the current active window: 0 = relative coords to the active window 1 = absolute screen coordinates (default) 2 = relative coords to the client area of the active window ExpandEnvStrings Changes how literal strings and % symbols are interpreted. By default strings are treated literally, this option allows you to use %environment% variables inside strings, e.g., "The temp directory is: %temp%". 1 = expand environment variables (similar to AutoIt v2) 0 = do not expand environment variables (default) Without this option the usual way would be: "The temp directory is: " & EnvGet("temp") ExpandVarStrings Changes how literal strings and variable/macro ($ and @) symbols are interpreted. By default strings are treated literally, this option allows you to use variables and macros inside strings, e.g., "The value of var1 is $var1$". 1 = expand variables (when in this mode and you want to use a literal $ or @ then double it up: "This is a single dollar $$ sign". 0 = do not expand variables (default) FtpBinaryMode Changes how FTP files are transferred. 1 = Binary (default) 0 = ASCII GUICloseOnESC When ESC is pressed on a GUI the $GUI_EVENT_CLOSE message is sent. This option toggles this behavior on and off. 1 = Send the $GUI_EVENT_CLOSE message when ESC is pressed (default). 0 = Don't send the $GUI_EVENT_CLOSE message when ESC is pressed. GUICoordMode Alters the position of a control defined by GUICtrlSetPos. 1 = absolute coordinates (default) still relative to the dialog box. 0 = relative position to the start of the last control (upper left corner). 2 = cell positionining relative to current cell. A -1 for left or top parameter don't increment the start. So next line is -1,offset; next cell is offset,-1; current cell is -1,-1. Obviously "offset" cannot be -1 which reserved to indicate the no increment. But if you can use a multiple of the width you choose to skip or go back. GUIDataSeparatorChar Define the character which delimits subitems in GUICtrlSetData. The default character is '|'. GUIOnEventMode Enable/disable OnEvent functions notifications. 0 = (default) disable. 1 = enable. GUIResizeMode Change default resizing for a control. 0 = (default) keep default control resizing. <1024 = anytype of resizing see GUICtrlSetResizing. GUIEventOptions Change special event behavior or GUI function return values. 0 = (default) Windows behavior on click on Minimize,Restore, Maximize, Resize. 1 = suppress windows behavior on minimize, restore or maximize click button or window resize. Just sends the notification. MouseClickDelay Alters the length of the brief pause in between mouse clicks. Time in milliseconds to pause (default=10). MouseClickDownDelay Alters the length a click is held down before release. Time in milliseconds to pause (default=10). MouseClickDragDelay Alters the length of the brief pause at the start and end of a mouse drag operation. Time in milliseconds to pause (default=250). MouseCoordMode Sets the way coords are used in the mouse functions, either absolute coords or coords relative to the current active window: 0 = relative coords to the active window 1 = absolute screen coordinates (default) 2 = relative coords to the client area of the active window MustDeclareVars If this option is used then all variables must be pre- declared with Dim, Local or Global before they can be used - removes the chance for misspelled variables causing bugs. 1 = Variables must be pre-declared 0 = Variables don't need to be pre-declared (default) OnExitFunc Sets the name of the function called when AutoIt exits (default is OnAutoItExit). PixelCoordMode Sets the way coords are used in the pixel functions, either absolute coords or coords relative to the window defined by hwnd (default active window): 0 = relative coords to the defined window 1 = absolute screen coordinates (default) 2 = relative coords to the client area of the defined window . Send("Today's time/date is {F5}") Function Reference AutoItSetOption Changes the operation of various AutoIt functions/parameters. AutoItSetOption ( "option" [, param] ) Parameters. the previous setting for the option. Remarks You may use Opt() as an alternative to AutoItSetOption(). AutoIt will halt with an error message if the requested option is unknown. Options are. be pre-declared (default) OnExitFunc Sets the name of the function called when AutoIt exits (default is OnAutoItExit). PixelCoordMode Sets the way coords are used in the pixel functions,

Ngày đăng: 02/07/2014, 17:21

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN