Code: Select all
#NoEnv
#MaxThreadsPerHotkey 3
#IfWinActive Warframe
#Warn
~$lalt::
While GetKeyState("lalt", "P"){
Send, {lctrl down}
Sleep 10
Send, e
Send, {lctrl up}
Sleep 290
}
return
#NoEnv
#MaxThreadsPerHotkey 3
#IfWinActive Warframe
#Warn
+z::
toggle := !toggle
Loop {
if (toggle) {
send, 2
Sleep, 100
} else {
break
}
}
return
But today i added second part, simple loop that click 2 when toggled with Shifr+Z, its doing this alright but also start looping Shift(sprint) and CTRL(crouch) keys when im holding them
ALso, do i need to pit stuff like #noEnv before each thread or only once at script start?
Also, how can i change script so it will always click 2. But when im holding LALT it will still loop 2 between button presses? Thing is script using 2 to put enemies to sleep, and slide attack to kill them afterward to get bonus XP. So its better to break sliding attack to cast sleep at enemies. If there's no woke enemes pressing 2 does nothing, and not breaking attack. So if i would be able to loop 2 AND do slide attack it would be superb
Thanks you