win切換窗口(鍵盤按下alt,操做tab鍵)
操做步驟以下:
AutoITLibrary.send {ALT DOWN}
AutoITLibrary.send {tab}
AutoITLibrary.send {tab}
AutoItLibrary.Send {ALT UP}
其它鍵盤操做,請參考:
鍵盤輸入
[Arguments] ${keys} ${flag}=0
[Documentation] 模擬鍵盤輸入,須要兩個參數:
... 第一個參數: 須要輸入的鍵盤按鍵
... 第二個參數: 標記變量,可選值,默認爲0,
... 0: 表明第一個參數${keys}中的!+^#表明特殊按鍵
... 1: 表明第一個參數${keys}中的全部字符都是普通字符串
... 舉例:
... ^a^c^v!{F4} 表明:Ctrl+a Ctrl+c Ctrl+v Alt+F4
... 關於特殊按鍵的說明:
... 若是${flag}爲0,則:
... ! 表明ALT按鍵
... + 表明SHIFT按鍵
... ^ 表明CTRL按鍵
... # 表明WIN按鍵
... 好比:!+a 表明:ALT+SHIFT+a
... 其餘特殊按鍵:
... ${flags}爲0的時候,還支持下述特殊按鍵:
... 輸入 最終的鍵盤按鍵
... {!} !
... {#} #
... {+} +
... {^} ^
... {{} {
... {}} }
... {SPACE} SPACE
... {ENTER} ENTER key on the main keyboard
... {ALT} ALT
... {BACKSPACE} or {BS} BACKSPACE
... {DELETE} or {DEL} DELETE
... {UP} Cursor up
... {DOWN} Cursor down
... {LEFT} Cursor left
... {RIGHT} Cursor right
... {HOME} HOME
... {END} END
... {ESCAPE} or {ESC} ESCAPE
... {INSERT} or {INS} INS
... {PGUP} PageUp
... {PGDN} PageDown
... {F1} - {F12} Function keys
... {TAB} TAB
... {PRINTSCREEN} Print Screen key
... {LWIN} Left Windows key
... {RWIN} Right Windows key
... {NUMLOCK on} NUMLOCK (on/off/toggle)
... {CAPSLOCK off} CAPSLOCK (on/off/toggle)
... {SCROLLLOCK toggle} SCROLLLOCK (on/off/toggle)
... {BREAK} for Ctrl+Break processing
... {PAUSE} PAUSE
... {NUMPAD0} - {NUMPAD9} Numpad digits
... {NUMPADMULT} Numpad Multiply
... {NUMPADADD} Numpad Add
... {NUMPADSUB} Numpad Subtract
... {NUMPADDIV} Numpad Divide
... {NUMPADDOT} Numpad period
... {NUMPADENTER} Enter key on the numpad
... {APPSKEY} Windows App key
... {LALT} Left ALT key
... {RALT} Right ALT key
... {LCTRL} Left CTRL key
... {RCTRL} Right CTRL key
... {LSHIFT} Left Shift key
... {RSHIFT} Right Shift key
... {ALTDOWN} Holds the ALT key down until {ALTUP} is sent
... {SHIFTDOWN} Holds the SHIFT key down until {SHIFTUP} is sent
... {CTRLDOWN} Holds the CTRL key down until {CTRLUP} is sent
... {LWINDOWN} Holds the left Windows key down until {LWINUP} is sent
... {RWINDOWN} Holds the right Windows key down until {RWINUP} is sent
... {ASC nnnn} Send the ALT+nnnn key combination
AutoItLibrary.Send ${keys} ${flag}
鍵盤輸入Alt+F4
AutoItLibrary.Send !{F4}
鍵盤輸入Ctrl+Space
AutoItLibrary.Send ^{SPACE}
鍵盤輸入Ctrl+a
AutoItLibrary.Send ^a
鍵盤輸入Ctrl+c
AutoItLibrary.Send ^c
鍵盤輸入Ctrl+v
AutoItLibrary.Send ^v
鍵盤輸入Ctrl+s
AutoItLibrary.Send ^s
鍵盤輸入Ctrl+p
AutoItLibrary.Send ^p
鍵盤輸入Ctrl+Home
AutoItLibrary.Send ^{HOME}
鍵盤輸入Ctrl+End
AutoItLibrary.Send ^{END}
鍵盤輸入Win+d
鍵盤輸入 {LWINDOWN}d{LWINUP}
鍵盤輸入Win+r
鍵盤輸入 {LWINDOWN}r{LWINUP}git