So I'm pretty new to this forum and I'm not sure if I'm writing in the write one or not, but I need help with making a script for this game I'm playing called Pokemon phoenix rising which it's a fan-made Pokemon essentials game with a demo that came out recently. So in the demo their is the part where the scientist tells you to choose a Pokemon and when that happens theirs like this little bubble on the side where it shows the clear image of what the Pokemon looks like on the side. So what I want to do specifically is make some sort of automatic reset when that specific image shows up and the reason why I want to do this is because I want to obtain a "shiny version of that Pokemon, but the problem is that I can't seem to get it to work right, it just skips right over to the naming screen.
So what I'm asking is if you guys can give me any pointers in the right direction to make this possible? I'm pretty new to the whole ahk coding business so forgive me if I do have alot of errors in this script
Here's the script I managed to come up based around another script I found online with a similar concept found online, and some helpful tips from other people:
Code: Select all
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
^!z::SetTimer, ShinyCheck, 500
Loop
{
ShinyCheck:
{
IfWinExist, Pokemon Phoenix Rising
{
WinActivate
}
resetcolour = CD8D40
targetcolour = E9F2F1
MouseGetPos, MouseX, MouseY
PixelGetColor, colour, %MouseX%, %MouseY%
ifEqual, colour, %resetcolour%
{
ifEqual, colour, %targetcolour%
{
MsgBox Congrats it is found!
Break
}
SetTimer, ShinyCheck, off
}
return
https://cdn.discordapp.com/attachments/ ... nknown.png