i want to use the down arrow to send {tab 6} to a gui for skipping 5 controls and go to the 6th control.
the down from the keyboard was send to the gui but should suppressed and the {tab 6} does not arrive the gui
OnMessage(0x100, "OnKey") ; Key is pressed
OnKey(wParam)
{
if (A_Gui = 2)
{
; MsgBox %A_Gui% ScanCode = %wParam%
if (wParam = 40) ; DOWN
{
send, {tab 6}
}
}
}
the event fires, when i uncomment the msgbox it shows the keycode.
I ended up here:
removing all then onmessage stuff
using the "#IfWin" directives