简体   繁体   中英

Autohotkey Not sending keys in the wrong order

I have the script:

#F20:: ^!{DEL}

which is suppose to simulate pressing CTRL + ALT + DELETE " I Viewed the event log and the order in which the keys simulations are sent is completely messed up! What have i done wrong and how can i achieve the desired affect?

在此处输入图片说明

只是做了一些挖掘,不幸的是Windows不允许模拟Ctrl + Alt + Del。如果您想要任务管理器,只需使用以下命令即可:

#F20::Run taskmgr

As ahkcoder pointed out Windows keeps Ctrl+Alt+Del out of reach, see https://autohotkey.com/docs/commands/Send.htm#Remarks
Apart from that the order of your key history is correct. It's just interspersed with other keys you pressed, likely because your script uses the keyboard hook. Which in turn would prevent your #F20 Hotkey to work if it is itself triggered from a script. Without seeing your actual script that's about as much as i can think of.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM