Autohotkey - #IfWinActivate阻止 - 发送另一个密钥

时间:2013-04-05 20:47:44

标签: autohotkey

在福昕阅读器中,我希望Autohotkey通过双击响应Numpad5,然后调用NumpadAdd。单独地,两者都正常工作。但第一个不会叫第二个。怎么了?谢谢!

SetTitleMatchMode 2 ; allow partial titles
#IfWinActive, Foxit
  Numpad5::
    Click 2
    Send {NumpadAdd} ; THIS DOESN'T REACT
  Return

  NumpadAdd::
    Send ^b ; create a bookmark
    ... do other stuff ...

1 个答案:

答案 0 :(得分:2)

怎么样......

SetTitleMatchMode 2 ; allow partial titles
#IfWinActive, Foxit
  Numpad5::
    Click 2
    GoSub, MyNumAdd
  Return


  MyNumAdd:
  NumpadAdd::
    Send ^b ; create a bookmark
    ... do other stuff ...


#IfWinActive