Then created another one and both of them are working with separate keys but when i paste them in one file
cant get them to work without conflict.
both keys are working and doing only 1 way dash. Chatgpt wrote something but it's variants also didnt work.
There might be too many unnecessary pasting here too and a few lines could get the job done.
Code: Select all
LOOP_TIMES := 1
SPEED := 1064 ; Set It To -300 To Go To The Left
c::
Loop, %LOOP_TIMES%
DllCall("mouse_event", uint, 1, int, SPEED, int, 0, uint, 0, int, 0)
Sleep, 10
Send !{f}
sleep, 10
Loop, %LOOP_TIMES%
DllCall("mouse_event", uint, 1, int, SPEED, int, 0, uint, 0, int, 0)
Loop, %LOOP_TIMES%
DllCall("mouse_event", uint, 1, int, SPEED, int, 0, uint, 0, int, 0)
Loop, %LOOP_TIMES%
DllCall("mouse_event", uint, 1, int, SPEED, int, 0, uint, 0, int, 0)
return
LOOP_TIMES := 1
SPEED := -1064 ; Set It To -300 To Go To The Left
z::
Loop, %LOOP_TIMES%
DllCall("mouse_event", uint, 1, int, SPEED, int, 0, uint, 0, int, 0)
Sleep, 10
Send !{f}
sleep, 10
Loop, %LOOP_TIMES%
DllCall("mouse_event", uint, 1, int, SPEED, int, 0, uint, 0, int, 0)
Loop, %LOOP_TIMES%
DllCall("mouse_event", uint, 1, int, SPEED, int, 0, uint, 0, int, 0)
Loop, %LOOP_TIMES%
DllCall("mouse_event", uint, 1, int, SPEED, int, 0, uint, 0, int, 0)
return
[Mod actions: Moved thread from main (v2) section because this is v1 code. Added [code][/code] tags. Use them yourself when posting code.]