Hello i am trying to make a code for flasks ( the one where you press a button and it changes everytime and resets after the 1-4 clicks )
like i want my 1 to send 1, then 2 then 3 etc and resets after three or four times
so far no luck as I am not sure how to make Count++ works
need help with game ( path of exile ) Topic is solved
Re: need help with game ( path of exile )
Feel free to post your script for feedback about it.
Re: need help with game ( path of exile )
okek
[Mod edit: [code][/code] tags added.]
Code: Select all
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
#IfWinActive Path of Exile
Count := 1
#If (Count == 1)
q::q
{
Send %Count%
Count++
return
}
#If (Count == 2)
q::t
{
Send %Count%
Count++
return
}
#If (Count == 3)
q::r
{
Send %Count%
Count := 1
return
}
Re: need help with game ( path of exile ) Topic is solved
Code: Select all
Count := 0
#IfWinActive Path of Exile
$q::
Count := Mod(Count, 3) + 1
Send % (Count = 1 ? "q" : "t") Count
Return
#IfWinActive
Code: Select all
Count := 0, sequence := "qtt"
#IfWinActive Path of Exile
$q::Send % SubStr(sequence, Count := Mod(Count, 3) + 1, 1) Count
#IfWinActive
Re: need help with game ( path of exile )
Thank you alot !!!,
The second one is great but the only issue that it is typing q1 t2 t3, that is 3 presses on my Q button, sadly that is a bannable offense in my game ( any automated system that sends 2 commands within 1 button )
Any idea on how to fix that?
The second one is great but the only issue that it is typing q1 t2 t3, that is 3 presses on my Q button, sadly that is a bannable offense in my game ( any automated system that sends 2 commands within 1 button )
Any idea on how to fix that?
Re: need help with game ( path of exile )
I was trying to interpret your original script. If you post your desired output, I can look at adjusting. Provide a complete example of what should happen.
Re: need help with game ( path of exile )
Code: Select all
Count := 0, sequence := "qtwf"
#IfWinActive Path of Exile
$q::Send % SubStr(sequence, Count := Mod(Count, 4) 1, 1) Count
#IfWinActive
Re: need help with game ( path of exile )
You can remove Count if not needed at the end of the Send.
You may correct the script further if you choose to add back the +.
You may correct the script further if you choose to add back the +.
Re: need help with game ( path of exile )
Code: Select all
Count := 0, sequence := "qtwf"
#IfWinActive Path of Exile
$q::Send % SubStr(sequence, Count := Mod(Count, 4) + 1, 1) Count
#IfWinActive
Re: need help with game ( path of exile )
If you do not need the count, then you can remove it from the end of the command.
Who is online
Users browsing this forum: Google [Bot] and 44 guests