简体   繁体   English

修改脚本以在同时按下键时触发

[英]Modify script to fire when keys are pressed at same time

Below is command I use to launch chrome : 以下是我用来启动chrome的命令:

:*:chr::   ;
Run www.google.com,
return

How can I modify this script so that chr is required to pressed at same time instead of succession so holding "chr" down launches chrome (pressing "chr" in succession should not launch chrome). 如何修改此脚本,以便要求同时按下chr而不是连续按下,因此按住“ chr”将启动chrome(连续按下“ chr”不应启动chrome)。 ?

So you want to run the command when the keys c+h+r are pressed at the same time? 因此,您想在同时按下c + h + r键时运行命令吗? Am I getting this right? 我说对了吗? If so, then this would probably be the way to go: 如果是这样,那么这可能是要走的路:

~c::
~h::
~r::
If (GetKeyState("c","p") && GetKeyState("h","p") && GetKeyState("r","p")) {
    Run www.google.com
}
Return

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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