I have a GUI with multiple buttons for inserting text in a word document. This GUI is always on top, but not activated ,as I want keyboard input to go to the word document. Now I wand to use the up/down arrow keys to navigate from one button to the next, without leaving word. "Enter" should trigger a click to the selected button, again without activating the GUI window. I tried the following code, but it does not work
Code: Select all
;#IfWinExist, myGUI
Down::
ToolTip, Down
ControlSend, ahk_parent, {Tab} ,myGUI
return
Up::
ToolTip, Up
ControlSend, ahk_parent, {Shift down}{Tab}{Shift up} ,myGUI
return
Enter::
ToolTip, Enter
ControlSend, ahk_parent, {Enter} ,myGUI
return
;#IfWinExist
what am I doing wrong? Thanks for any help. This forum is great. Simon