My script is activated while my key is pressed, when I stop pressing it it finishes the script until the end and stops, I wish that the moment I stopped pressing the key the script would not be executed until the end, yes it looks at the exact point where I stopped pressing the key
=================================================================================
Code: Select all
#SingleInstance Force
#InstallKeybdHook
#IfWinActive, ahkexe client.exe
;__
;__MANA + ICO__
$F1:: ;Htkey for activate macro
While GetKeyState("F1","P"){
Loop, 2
{
Send, {F10} ;HOTKEY MANA POTION ( HOTKEY IN GAME)
Sleep, 20
}
Sleep, 150
Loop, 3
{
Send, {F1 2} ;HOTKEY ICO (HOTKEY IN GAME)
Sleep, 20
}
Sleep, 143
}
Return
;__
;__SUPREME + ICO__
$F4:: ;HHtkey for activate macro
While GetKeyState("F4","P"){
Loop, 2
{
Send, {F4} ;HOTKEY SUPREME
Sleep, 20
}
Sleep, 150
Loop, 3
{
Send, {F1 2} ;HOTKEY ICO
Sleep, 20
}
Sleep, 143
}
Return
;__
;__