Code: Select all
~F9::
ToolTip
Toggle := !Toggle
loop
{
If not Toggle
break
ToolTip, 51f, 798, -29
IfWinActive, Diablo 2
{
img1 = C:\Users\LovesKoh\Downloads\mage bot\inventory\fullbp.png
ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *50 %img1%
if(ErrorLevel == 0)
{
}
else
{
send, A <<<<< here i want to stop the script pressing the A because if continue pressing A will automatically teleport to another location
Sleep, 10000 <<<<< as you can see here i put a sleep so the script is not continue for press the A
SendInput, i
Sleep, 5000
}
}
else
{
ToolTip
break
}
}
return
~F11::
ToolTip
Pause::
Suspend
Pause,,1
return
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]