I have a Windows tablet and I dont want to use the on-screen keyboard but use a Gui button to send a key to a specific window. I am new to AutoHotkey.
Hence, the requirement is a Gui button should be displayed on the screen. On pressing the button, the key "n" should be sent to the MediaPlayerClassicW (ahk_class) window.
Please help with an ahk script for this. Thanks.
Press Button to send a key to specific application
Re: Press Button to send a key to specific application
Code: Select all
#SingleInstance,force
#d::
gui, add, button, x5 y30 h20 w70 gsub2, Next
Gui, Show
return
sub2:
Gui,Hide
{
send n
}
sleep 200
Gui, Show
return
Who is online
Users browsing this forum: Bing [Bot], Chunjee, Google [Bot], JKJadan, Psych0p4th and 275 guests