Code: Select all
G::
SetKeyDelay, 25, 25
SendInput,{f down}
SendInput,{f up}
SendInput,{f down}
Sleep 300
SendInput,{f up}
Return
Code: Select all
G::
SetKeyDelay, 25, 25
SendInput,{f down}
SendInput,{f up}
SendInput,{f down}
Sleep 300
SendInput,{f up}
Return
I don't follow really. Where would send G even fit? G is supposed to be the trigger. Press G and it does the aforementioned stuff.There is no sending g at all.
Add another send of f and g > then you will have a script that works the way you want.
Code: Select all
G::
SetKeyDelay, 25, 25
SendInput,{f down}
SendInput,{f up}
SendInput,{f down}
Sleep 300
SendInput,{f up}
SendInput,{f down}
SendInput,{f up}
Return
It was not clear if you wanted to send g or not.then hold the F for the 3rd time while pressing G only once
Well not really. It does send the first 2 consecutive F's but i need the third one to be held down for half a second then released not simply pressed and released. Pressed and held down for a little while then released.What you just posted looks like what you described if you do not want to send g. Does it not work?
Code: Select all
G::
SetKeyDelay, 25, 25
SendInput,{f down}
SendInput,{f up}
SendInput,{f down}
Sleep 300
SendInput,{f up}
SendInput,{f down}
Sleep, 500 ; < half second held on 3rd send of f
SendInput,{f up}
Return
Code: Select all
G::
SetKeyDelay, 25, 25
SendInput,{f down}
SendInput,{f up}
SendInput,{f down}
Sleep 300
SendInput,{f up}
Return
Code: Select all
G::
SetKeyDelay, 25, 25
Send {f down}
Sleep 300
Send {f up}
Return