![Crazy :crazy:](./images/smilies/icon_crazy.gif)
holding a key to execute a command and release to exit Topic is solved
holding a key to execute a command and release to exit
i want to send some text if i hold a key and stop sending that text as i release it > ![Crazy :crazy:](./images/smilies/icon_crazy.gif)
![Crazy :crazy:](./images/smilies/icon_crazy.gif)
Re: holding a key to execute a command and release to exit
Code: Select all
F3::
While GetKeyState(A_ThisHotkey, "P") {
Send e
Sleep, 20
}
Return
Re: holding a key to execute a command and release to exit
tnx mikee ..
actually ..
by pressing a button . i want ro send tr {enter}
by releasing a button
i like to hit escape without pressing esxape
i hv tried alot to modify
actually ..
by pressing a button . i want ro send tr {enter}
by releasing a button
i like to hit escape without pressing esxape
![🐈](http://cdn.jsdelivr.net/emojione/assets/3.1/png/64/1f408.png)
i hv tried alot to modify
Re: holding a key to execute a command and release to exit Topic is solved
Code: Select all
F3::
While GetKeyState(A_ThisHotkey, "P") {
Send tr{Enter}
Sleep, 20
}
Return
Re: holding a key to execute a command and release to exit
i added a break after sleep ... and it worked fine
Who is online
Users browsing this forum: Chunjee, mstrauss2021, robozao and 240 guests