I need help for my conflict

Ask gaming related questions (AHK v1.1 and older)
yuu453
Posts: 4
Joined: 24 Apr 2024, 05:52

I need help for my conflict

28 Apr 2024, 11:22

Code: Select all

$LButton::
    While GetKeyState("LButton", "P"){
    Click
    Sleep 20  ;  milliseconds  
    }
Return
$w::
Send {w down}
send {w up}
Sleep 55
Send {w down}
KeyWait w
Send {w up}
Return
My macro is like this, when I hold w and LButton at the same time game freezing so bad.
User avatar
mikeyww
Posts: 27136
Joined: 09 Sep 2014, 18:38

Re: I need help for my conflict

28 Apr 2024, 19:24

Hello,

Ideas are below.

Code: Select all

#Requires AutoHotkey v1.1.33.11
SetKeyDelay 25, 25

LButton Up::SetTimer Clik, Off
LButton::
SetTimer Clik, 20
Clik:
SendEvent {LButton}
Return

w::
SendEvent w
on := True
If GetKeyState("w", "P")
 SetTimer More, -55
#If on
w::Return
#If

~w Up::
SetTimer More, Off
on := False
SoundBeep 1000
Return

More:
If GetKeyState("w", "P")
 SendEvent {w down}
Return

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Bing [Bot] and 38 guests