I want to create a script that will help me auto loot/sell in the MMORPG that i play and I am stuck. I want the script to wait for me to press Y or N and if the Y is pressed it does something and if it is the N key then it moves the mouse over the next item in the list but now when i press Y or N it does nothing, I used the KeyWait to do it but it does not work
Code: Select all
l::
a := 0
b := 0
c := 0
InputBox, count, Case count, How many cases is there ?
MouseMove, 624, 278, 0
while a < count{
if(b = 13){
c++
b := 0
}
KeyWait, y
if(ErrorLevel){
MouseClick, Right
MouseMove, 92, 85, 0, R
;other code here
MouseMove, 624 + (b++ * 59), 278 + (c * 59), 0
a++
}
}