I have this code and i want to know if its possible to add like a kind of "fake click sound" when the spam click is working
thanks if anyone can help me
Code: Select all
CoordMode, Mouse, Window ; sets mouse coordinates to be relative to either the active window
SetTitleMatchMode, 2 ; A window's title can contain WinTitle param anywhere inside it to be a match.
#IfWinActive
{
GetKeyState, 123, ESC
if 123 = U
send {Lbutton up}
return
}
return
$LButton::
~LShift & LButton::
MouseGetPos, x, y ; retrieves the current position of the mouse cursor
if (Between(532, 752, x) and Between(203, 424, y)) {
While (GetKeyState("LButton", "P")) {
click
Sleep -1
}
return
}
send, {LButton}
return ; end of the hotkey subroutine
#If
F10::Suspend, On
F7::Suspend, Off
Between(__lowerBound, __upperBound, __var) {
If __var between %__lowerBound% and %__upperBound%
return true
return false
}