Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Autohotkey 自动热键系统按键时发出嘟嘟声_Autohotkey - Fatal编程技术网

Autohotkey 自动热键系统按键时发出嘟嘟声

Autohotkey 自动热键系统按键时发出嘟嘟声,autohotkey,Autohotkey,我正在尝试编写一个AHK脚本,当用户按F1键进入某个程序的帮助屏幕时,它会发出报警蜂鸣音。我可以让系统发出哔哔声,但如果热键编程为F1,则不会打开“帮助” 有人能建议一种方法吗 用户按F1 系统嘟嘟声 帮助窗口打开 将~前缀添加到热键 ~-表示本机函数未被阻止 ~F1:: msgbox,hi! ; this gets executed and F1 command is still send to windows return 太棒了,干杯@dexter4712345!我知道有一个简

我正在尝试编写一个AHK脚本,当用户按F1键进入某个程序的帮助屏幕时,它会发出报警蜂鸣音。我可以让系统发出哔哔声,但如果热键编程为F1,则不会打开“帮助”

有人能建议一种方法吗

  • 用户按F1
  • 系统嘟嘟声
  • 帮助窗口打开

  • 将~前缀添加到热键

    ~-表示本机函数未被阻止

    ~F1:: 
        msgbox,hi! ; this gets executed and F1 command is still send to windows
    return
    

    太棒了,干杯@dexter4712345!我知道有一个简单的方法:D