I want to the following script work like this: I press number 7 on the numpad and it shows me coordinates of some red pixel in the current window.
#SingleInstance force
Numpad7::
{
PixelSearch Px, Py, 0, 0, 300, 250, 0x241ced
MsgBox %Px% %Py%
return
}
Tested in mspaint with a red dot in the upper-left corner on Windows 8.1
After pressing key 7 it doesn't do anything - after right-clicking on its taskbar icon nothing is displayed. When running the script again, the prompt "Could not close the previous instance of this script, keep waiting?" is displayed.
Probably some infinite loop, I need to kill the ahk process.
Any ideas how to make such a simple task work?
However, this script does work without any problem on my windows 7 machine.