Pokemon Game (doubut with GDIP+ and access of specific images)

Ask gaming related questions (AHK v1.1 and older)
manajora
Posts: 1
Joined: 23 Apr 2023, 21:00

Pokemon Game (doubut with GDIP+ and access of specific images)

Post by manajora » 23 Apr 2023, 21:09

Hello,

Could you guys help me with two questions, please?

First doubt:
I'm using GDIP+ to search an image on the screen. However, I would like to move my mouse to the position of the outputVar_pokemon_captured (in this case, just an instance of the GDIP), however, I'm not succeeding. Could someone tell me how I access the x and y of the outputVar_pokemon_captured? Code below:
result_pokemon_captured := Gdip_ImageSearch(GdipHaystack, GdipNeedle_pokemon_captured, outputVar_pokemon_captured, 0, A_ScreenHeight / 8 * 7, A_ScreenWidth / 2, 0, 5)

Second doubt:
I'm playing an online game that, when a rare item drops from the pokemon, a red arrow appears above the pokemon. However, this red arrow moves a little (okay, until then) and is also a little transparent. How could I identify this figure on the screen? See attached image.
Attachments
poke.png
Arrow
poke.png (329.22 KiB) Viewed 180 times

Return to “Gaming Help (v1)”