i used this code to solve this problem in others apps. But in Autoit i need a similar code for same purpose.
F8::Suspend, Toggle
SetKeyDelay, 0, 30 ;it does not need to be in the loop
$q::
While GetKeyState("q","P")
{
Send, q
Sleep, 10
}
This code was used for Pressing Q infinitly while pressed physically. when u pick up the finger from the button, it stops. Also there is a feature for stop/run for the prgramme by f8