Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Keyboard operation of AutoItLibrary (send)

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

1. First of all, the library used is AutoItLibrary, and the method used is that send; press F5 to see

2 、 demo

Look at demo, very simple, open Baidu, enter content to find, as long as it is to see send

Line 4: it means select all, that is, our usual Ctrl+a.

Line 5: copy all the selected contents at once, ctrl+c

Line 6: paste ctrl+v

3. Win switch window (keyboard press alt, operate tab key)

The steps are as follows:

AutoITLibrary.send {ALT DOWN}

AutoITLibrary.send {tab}

AutoITLibrary.send {tab}

AutoItLibrary.Send {ALT UP}

For other keyboard operations, please refer to:

keyboard entry

[Arguments] ${keys} ${flag} = 0

[Documentation] simulate keyboard input, which requires two parameters:

... First parameter: keyboard keys that need to be entered

... Second parameter: tag variable. Optional value. Default is 0.

... 0: the! + ^ # in the first parameter ${keys} represents a special key.

.. 1: indicates that all characters in the first parameter ${keys} are ordinary strings.

... For example:

. ^ a ^ c ^ v! {F4} stands for: Ctrl+a Ctrl+c Ctrl+v Alt+F4

... Instructions for special buttons:

... If ${flag} is 0, then:

...! Represents the ALT button

... + stands for SHIFT button

. ^ represents the CTRL button

... # stands for WIN button

... For example:! + a stands for: ALT+SHIFT+a

... Other special buttons:

When ${flags} is 0, the following special keys are also supported:

... Enter the final keyboard key

... {!}!

... {#} #

. {+} +

. {^} ^

... {{} {

... {}

... {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}

Keyboard input Alt+F4

AutoItLibrary.Send! {F4}

Keyboard input Ctrl+Space

AutoItLibrary.Send ^ {SPACE}

Keyboard input Ctrl+a

AutoItLibrary.Send ^ a

Keyboard input Ctrl+c

AutoItLibrary.Send ^ c

Keyboard input Ctrl+v

AutoItLibrary.Send ^ v

Keyboard input Ctrl+s

AutoItLibrary.Send ^ s

Keyboard input Ctrl+p

AutoItLibrary.Send ^ p

Keyboard input Ctrl+Home

AutoItLibrary.Send ^ {HOME}

Keyboard input Ctrl+End

AutoItLibrary.Send ^ {END}

Keyboard input Win+d

Keyboard entry {LWINDOWN} d {LWINUP}

Keyboard input Win+r

Keyboard entry {LWINDOWN} r {LWINUP}

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report