Can you help me create my macro for my game please?
First, let me show you my script
Code: Select all
Loop
{
MouseGetPos, mousePosX, mousePosY
WinGetPos, , , winSizeX, winSizeY, A
ImageSearch, imageLocX, imageLocY, 0, 0, %winSizeX%, %winSizeY%, starve.png
if ErrorLevel = 0
sleep, 500
ImageSearch, imageLocX, imageLocY, 0, 0, %winSizeX%, %winSizeY%, 1.png
if ErrorLevel = 0
Click right %imageLocX%, %imageLocY%, 1
sleep, 3000
Click 774, 212
sleep, 3000
return
}
F3::pause
F5::reload
return
here's a concept
1st step:
it will search this image
if it will find the image proceed to step 2, if not go back to step 1
2nd step:
it will search another image again, this image then right click it
if image found right click then proceed to step 3
if not go back to step 1
step 3:
it will then click this coordinate
Click 774, 212
after click go back to step 1 again
here's a diagram
thats it good sirs but unfortunately my script i made is pure fail. I need your help masters
sorry for my bad english and explanation
Thank you very much