For example I took a screenshot of the item "DragonRuins" and made it the smallest pixel. It searches for the item in my inventory, Left Clicks it, then drops it on the ground, and clicks the button "yes I want to drop this".
Sometimes it doesn't find some of the items, and I don't understand if there is a better way to do this?
Thanks a lot
Code: Select all
Loop {
ImageSearch, FoundX, FoundY, 637, 487, 1000, 641, DragonRuins.png
If(ErrorLevel == 0){
SendEvent {Click %foundX%, %foundY%}
Sleep, 100
SendEvent {Click 329, 394}
break
}
}
ImageSearch, FoundX, FoundY, 415, 383, 610, 447, yes1.png
If(ErrorLevel == 0){
SendEvent {Click %foundX%, %foundY%}
}