如何按“Ctrl+Shift+Q"在 AutoIt [英] How to press "Ctrl+Shift+Q" in AutoIt

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

问题描述

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

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")

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆