How to press “Ctrl+Shift+Q” in AutoIt

2020-01-30 02:27发布

I have an application which has a shortcut key Ctrl + Shift + Q to quit it. I want to press Ctrl + Shift + Q via AutoIt to exit my application. I tried it as below:

Send("{LCTRL} {LSHIFT} Q")

and

ControlSend("{LCTRL} {LSHIFT} Q")

But none of them did work. Please guide me to do it the right way.

2条回答
Luminary・发光体
2楼-- · 2020-01-30 02:43

Please use the below option

Send("^+{F}")

The keylists are available in the AutoIt Help link, take a look at Send Auto Keys List

查看更多
Anthone
3楼-- · 2020-01-30 02:48

You want something like:

Send("{CTRLDOWN}{SHIFTDOWN}q{CTRLUP}{SHIFTUP}")

What you are sending presses the keys individually in sequence, rather than chaining them together. Hope that helps!

Source: www.autoitscript.com

查看更多
登录 后发表回答