Hi i'm looking for help with script. What i want is when i'm holding shift down i want at the same time for it to hit 5 once.
Thanks
Looking for help
Re: Looking for help
Hallo,
try:
try:
Code: Select all
~Shift::
Send, 5
KeyWait, Shift
Return
-
- Posts: 18
- Joined: 18 Nov 2021, 20:20
Re: Looking for help
That works, but there is a little delay between when i hold shift and then it hit's 5. Is there anyway to make it hit 5 faster.
-
- Posts: 18
- Joined: 18 Nov 2021, 20:20
Re: Looking for help
This code works without delay but it will also run the script if i hit 5 as well which i don't want.
Code: Select all
Shift::
Send {Shift down}{Shift Down}
Send {5}
Return
Re: Looking for help
there is a little delay between when i hold shift and then it hit's 5.
If you notice a delay, the culprit is your application. Try:VK SC Type Up/Dn Elapsed Key Window
-------------------------------------------------------------------------------------------------------------
A0 02A h d 7.91 LShift Unbenannt - Editor
A0 02A i u 0.00 LShift
35 006 i d 0.00 5
35 006 i u 0.00 5
A0 02A i d 0.01 LShift
I started the script here, and after (measured 7.91 seconds) pressed LShift. Immediately (0.00 seconds) after that the 5 was pressed by the script.
If you notice a delay, the culprit is your application. Try:
Code: Select all
~Shift::
Send, 5
KeyHistory
KeyWait, Shift
Return
-------------------------------------------------------------------------------------------------------------
A0 02A h d 7.91 LShift Unbenannt - Editor
A0 02A i u 0.00 LShift
35 006 i d 0.00 5
35 006 i u 0.00 5
A0 02A i d 0.01 LShift
I started the script here, and after (measured 7.91 seconds) pressed LShift. Immediately (0.00 seconds) after that the 5 was pressed by the script.