本文介绍了如何按“Ctrl+Shift+Q"在 AutoIt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,它有一个快捷键 + + 退出它.我想通过 AutoIt 按 + + 退出我的应用程序.我试过如下:

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

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

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

但是他们都没有工作.请指导我以正确的方式去做.

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

推荐答案

你想要的是:

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

您发送的是按顺序单独按下按键,而不是将它们链接在一起.希望有帮助!

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

来源:www.autoitscript.com

这篇关于如何按“Ctrl+Shift+Q"在 AutoIt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-18 00:20
查看更多