so first of all, im noob so dont fuck with me
i made a script for gaming, (Path of exile)
and i move with q , i hold it down when i farming, that is 2in1 because i move with it and auto pick up items with it, and its working fine, but when i hold down w (i attack with it and some other stuff) and i hold down q at the same time (i hold down q almost all time) so when i hold down w when i holding q i want turn off q effect and when i release w i want q effect immediatly start again.
its working almost fine but not perfect, i want it to be perfect
sorry for my script not looking good
this is it:
Code: Select all
#NoEnv
SendMode Input
#MaxThreadsPerHotkey, 0
previous_time:=0
return
*$q::
keywait w
loop
{
keywait w
if getkeystate("q", "p") ;if a button is Physically held down by the user.
{
keywait w
sleep 40
keywait w
send {lbutton down}
keywait w
sleep 40
keywait w
}
else
{
keywait w
send {lbutton up}
keywait w
send {q up}
keywait w
break
}
keywait w
send {lbutton}
keywait w
sleep 10
keywait w
send {lbutton up}
keywait w
}
keywait w
return
~*$w::
Send {r down}
{
If (A_TIckCount - previous_time > 4700)
{
send 21
sleep 10
send 3
press_mbutton:
previous_time:=A_TickCount
}
}
SetTimer, press_mbutton, Off ; the automatic timer is disabled
sleep 600
Send {mbutton down}
Send {r up}
sleep 131
Send {mbutton up}
return