I code below nearly works except it keeps deleting chunks of text the longer I hold down the 'd' key. I assume it is because the hotstring code is being triggered even though the character is consumed.
Maybe there is another technique that is better?
Code: Select all
hotkey,d,off
return
d::
return
:*?:ddd::
hotkey d,on ;consume extra characters
sendInput %A_now%
loop
{
if(!getKeyState("D","P"))
{
hotkey d,off ;allow pass through again
break
}
sleep 50
}
return