I'm afraid I have a little problem with my script.
Code: Select all
~$w::
send,{LShift Down}
keywait,w
Send,{LShift Up}
return
~$XButton2::
send,{LShift Down}
send,{w Down}
return
~$f7::ExitApp
This is my AutoRun script. Whenever I hold the key "w" down, it holds "LShift" down. So far so good. That works fine.
When I press the "XButton2", it will send "w" down and "LShift" down, allowing me to run continuously without pressing or holding any key. That works fine too.
As soon as I press "w", it will stop me from auto running as intended. But if I press the "XButton2" again, I cannot perform the same action. The only way to get it working is to press "LShift" manually, then it triggers the function for some reason.
I'd appreciate it if someone would help me with this. Before I ask for help, I try to solve the problems myself. I worked on it for a few hours yesterday, but I just couldn't find the cause.