I use the following code
Code: Select all
^F5:: { ; CTRL-F5 = Search for image
CoordMode 'Pixel'
CoordMode 'Mouse'
MsgBox ImageSearch(&x, &y, 0, 0, A_ScreenWidth, A_ScreenHeight, pic2 := "C:\Users\Administrator.AXAPTA2012\Documents\AutoHotkey\sword_magenta.png")
}
If I run another copy of the same program, the code doesn't work. I tried this code the next day, the picture is not in both copies of the program. Explain what the problem is and how to solve it