Remapping keys script interfering with mouse clicks Topic is solved

Ask gaming related questions
Guest

Remapping keys script interfering with mouse clicks

09 Feb 2018, 12:55

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
Rohwedder
Posts: 1435
Joined: 04 Jun 2014, 08:33
Location: Germany

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

10 Feb 2018, 08:39

Hallo,
only a try:

Code: Select all

cycle = 5
LButton::
cycle++
If cycle > 9
	cycle = 5
Send %cycle%
return
~a::q
~d::e
~SPACE::s
f8::
Suspend, Toggle
return

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 21 guests