i have 4 simple scripts:
Code: Select all
z::
send {!z}
return
x::
send {!v}
return
d::
send {!d}
return
f::
send {!f}
return
second click to active second script {!v}
third.........
and after last script reset to active for 1 to 4
Code: Select all
z::
send {!z}
return
x::
send {!v}
return
d::
send {!d}
return
f::
send {!f}
return
Code: Select all
#Requires AutoHotkey v1.1.33
n := 0
z::Send % ["!z", "!v", "!d", "!f"][Mod(n++, 4) + 1]
Code: Select all
#Requires AutoHotkey v2.0
z:: {
Static n := 0
Send ["!z", "!v", "!d", "!f"][Mod(n++, 4) + 1]
}
mikeyww wrote: ↑22 Jan 2023, 14:44Code: Select all
#Requires AutoHotkey v1.1.33 n := 0 z::Send % ["!z", "!v", "!d", "!f"][Mod(n++, 4) + 1]
this works for me:but i saw i can switch !z witch is first script with {click ,300,10}Code: Select all
#Requires AutoHotkey v1.1.33 n := 0 z::Send % ["!z", "!v", "!d", "!f"][Mod(n++, 4) + 1]
like this :i want to switch !z (first click of z key) with this:Code: Select all
#Requires AutoHotkey v1.1.33 n := 0 z::Send % [" {click ,300,10}", "!v", "!d", "!f"][Mod(n++, 4) + 1]
{click ,300,10}
sleep, 1600
send, !c
return
Code: Select all
#Requires AutoHotkey v1.1.33
n := 0
z::
Switch Mod(++n, 4) {
Case 1:
Click 300 10
Sleep 1600
Send !c
Case 2:
Send 2
Case 3:
Send 3
Case 0:
Send 4
}
yes thats what i need thx man you the bestmikeyww wrote: ↑22 Jan 2023, 16:03Code: Select all
#Requires AutoHotkey v1.1.33 n := 0 z:: Switch Mod(++n, 4) { Case 1: Click 300 10 Sleep 1600 Send !c Case 2: Send 2 Case 3: Send 3 Case 0: Send 4 }
mikeyww wrote: ↑22 Jan 2023, 14:44Code: Select all
#Requires AutoHotkey v1.1.33 n := 0 z::Send % ["!z", "!v", "!d", "!f"][Mod(n++, 4) + 1] #Requires AutoHotkey v2.0 z:: { Static n := 0 Send ["!z", "!v", "!d", "!f"][Mod(n++, 4) + 1] }
mikeyww wrote: ↑22 Jan 2023, 16:03Code: Select all
#Requires AutoHotkey v1.1.33 n := 0 z:: Switch Mod(++n, 4) { Case 1: Click 300 10 Sleep 1600 Send !c Case 2: Send 2 Case 3: Send 3 Case 0: Send 4 }