![Hit my head against the wall. :headwall:](./images/smilies/headwall.gif)
Thoughts
Hey bud,Wiz wrote:I understand thank you for helping meNeverlevel, I think what your saying is look for a common pixel, for example, the rock color so no matter where I am on the map the pixel for the rock is the same. Is there a way to have it look randomly for just rock for now until I get better at coding?
For example, if the rock is here and another one is east of the same rock look for more rocks.
Thanks again for all your help.
Code: Select all
ImageSearch, FoundX, FoundY, 0, 0, 500, A_ScreenHeight, myfile.jpg
;this searches the first 500 pixels to the left of the screen
;then do..
ImageSearch, FoundX, FoundY,500, 0, A_ScreenWidth, A_ScreenHeight, myfile.jpg
;this searches the pixels right of the 500 mark
; your resolution may differ and the 500 may be way off center..
Works just need to learn more before testing thank youneverlevel wrote:you could search likeif you are still using imagesearch..Code: Select all
ImageSearch, FoundX, FoundY, 0, 0, 500, A_ScreenHeight, myfile.jpg ;this searches the first 500 pixels to the left of the screen ;then do.. ImageSearch, FoundX, FoundY,500, 0, A_ScreenWidth, A_ScreenHeight, myfile.jpg ;this searches the pixels right of the 500 mark ; your resolution may differ and the 500 may be way off center..
Mousemove work with your program or no?
neverlevel wrote:try using smaller sections of the screen..i would use alt printscreen then paste that into paint to get the smallest image unique to each resource..cutting out any background should make each resource findable multiple times..rather than the specific resource you got a background tree in..if that doesnt work...id start looking for the colored numbered flags ...might work but i dont know the game so those could be common and clicking them could be bad.
Did you ever find anything?Vlad Tepes wrote: ↑28 Jul 2018, 09:34Hey Wiz, can you please share with us the full scrypt please?
Users browsing this forum: No registered users and 95 guests