how does it work?
do u use memory + sendkey
or
pixxelsearch + mousemove
or
imagesearch?
if it should only a pet food bot, try it with imagesearch!
For petlvling u only use the low pet foods, thats are only 2 different for mounts and combat pets. Make 2 pics of it and use the imagesearch-lib...like that
If _ImageSearch(@ScriptDir & "/pics/petFood1.bmp", 1, $x, $y, 10) Then
MouseMove($x,$y,0)
MouseClick("right",$x,$y,1)
EndIf
If _ImageSearch(@ScriptDir & "/pics/petFood2.bmp", 1, $x, $y, 10) Then
MouseMove($x,$y,0)
MouseClick("right",$x,$y,1)
EndIf
This code search u the petfood-images in u screen (Quickslot or inventory) and if succesfully found it makes an right click on it.
After that u need only a delay- or detecting the pet hunger- function...and volla!