Page 1 of 1

Remapping keys script interfering with mouse clicks

Posted: 09 Feb 2018, 12:55
by Guest
Hi, having a little trouble with a script I'm working on.

It consists of a cycle of 5 keys triggered by left button mouse clicks. this thread worked great until i added another below it that remaps the a and d keys to also trigger q and e. Now when i am playing and using the a and d keys to navigate, the mouse will randomly not register a click. I tried "send sleep 20 send" and then the click would sometime register with a slight delay. I tried everything I could find from forum and google, but not much headway. Any help would be appreciated.


cycle = 5


LButton::

if (cycle == 5) {
cycle = 6
send 6

}

else if (cycle == 6) {
cycle = 7
send 7

}

else if (cycle == 7) {
cycle = 8
send 8

}

else if (cycle == 8) {
cycle = 9
send 9

}

else if (cycle == 9) {
cycle = 5
send 5

}

return

A::

Send {Q down}{A down}
KEYWAIT, A
;
Send {Q UP}{A UP}
;
RETURN

D::


Send {E down}{D down}
KEYWAIT, D
;
Send {E UP}{D UP}
;
return

SPACE::
Send {SPACE down}{S down}
KEYWAIT, SPACE
;
Send {SPACE UP}{S UP}
;
return

f8::
Suspend, Toggle
return


Re: Remapping keys script interfering with mouse clicks  Topic is solved

Posted: 10 Feb 2018, 08:39
by Rohwedder
Hallo,
only a try:

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus