0
votes

In Foxit Reader, I'd like Autohotkey to respond to Numpad5 by double-clicking, then calling NumpadAdd. Individually, both work normally. But the first won't call the second. What is wrong? Thanks!

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
Could you provide some feedback on the proposed solution(s). Did it help and solve your issue?Robert Ilbrink

1 Answers

2
votes

How about...

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


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


#IfWinActive