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 >
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
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