* When it starts the code pauses/suspend.
* When I press the "\" key it unpause/unsuspend.
* Every time LButton is press/activated it adds +1 to a variable, unless the AltLmb variable == 1 which resets the AltLmb and a's value to 0.(When holding LButton; +1 to a variable from the start and +1 to a variable for every 0.4s until released)
* When a value == 4 then AltLmb = 1
* When you press LButton together with "s" key while AltLmb == 1 then; LShift is activated -> LButton -> (while s is press) -> LShift again.(also stop holding s when I stopped holding s)
* And if you press f then after a few hundred milisecond activate LButton unless AltLmb == 1
Other things needed:
* After unpausing/unsuspending resets a and AltLmb variable to 0
Also you can change the variable a's name to Value01
Code: Select all
#MaxThreadsPerHotkey 5
Pause, on
a := 0
LmbVar := a
AltLmb := 0
spin := 0
\::Pause
LButton:: ; When Left mouse button is pressed
{
If (AltLmb == 1) ; if AltLmb is equal to 1 then set AltLmb and a equals to 0
{
AltLmb := 0
a := 0
}
If (AltLmb == 0) ; if AltLmb is equal to 0 then add +1 to a
{
LmbVar := a++
}
SendInput, {LButton} ; Send a mouse click
}
If (a == 4)
{
AltLmb := 1
}
f::
{
Send, f
Sleep, 200
If (AltLmb == 0)
{
SendInput, {LButton}
LmbVar := a++
}
}
; Spin 180 When AltLmb is equal to 1 and the Left mouse button and d key is pressed
LButton & s::
{
If (AltLmb == 1)
{
SendInput, {LShift}
Send, {s down}
SendInput, {LButton}
SendInput, {LShift}
Send, {s up}
}
}
return
[Mod action: Moved topic to the v1 section since this is v1 code. The main section is for v2.]