I am having some issues returning the correct coords when using ImageSearch in a game.
The game is running in Window mode, and I have reduced down the resolution from my native resolution (i.e. My desktop is running at 3840x2160, and the game is running in window mode at 1920x1080).
(I have tried running the game in full screen window mode also without success).
ImageSearch is finding the image, but when I use the returned coords with MouseMove, its moves to the wrong location.
I assumed it was due to the CoordMode, but having tried various combinations I have ran out of ideas.
Any ideas would be greatly appreciated, Thanks
CoordMode, Mouse, Relative
CoordMode, Pixel, Relative
CoordMode, Tooltip, Relative
Gui, add, picture, x10 y10, %img%
Gui, show, x100 y10 h70 w250, Hit F2 to Find
ImageSearch, X, Y, 0, 0, %a_screenwidth%, %a_screenheight%, *50 %img%
else if errorlevel=2
MsgBox, Not Found
MouseMove, X, Y
ToolTip, Found: %X% %Y%