PixelSearch Hang Up -- Resolved using Fast

Get help with using AutoHotkey and its commands and hotkeys
User avatar
Posts: 2876
Joined: 17 Oct 2015, 20:28

PixelSearch Hang Up -- Resolved using Fast

24 Feb 2018, 22:51

Code: Select all

CoordMode, Mouse, Screen
CoordMode, Pixel, Screen
Sleep 100
PixelSearch, OutputX, OutputY, 104, 352, 330, 999, 0x097138,,RGB
If ErrorLevel
	MsgBox Ahhhh
MouseClick Left, %OutputX%, %OutputY%
This code resulted in my script hanging and never presenting a MsgBox nor clicking anywhere. The script could only be exited through task manager.

I am not sure where exactly I went wrong.

I was able to resolve it by using Fast RGB as the last parameter. I recently upgraded to, and had previously been on or something a little old. I don't recall ever having a problem with PixelSearch that required Fast mode.

For the sake of a quick test, I searched the area from 1,1 to 2,2. I had also been trying Window instead of Screen in both CoordModes initially and the problem was present there. (I didn't change coordinates as my window was positioned at 0,0 anyhow.)

If this sounds more like a Bug Report, I'm welcome to having the topic moved there. Unfortunately, because of personal information I cannot provide a screenshot (well, recording would be best as the first Click brings up a change in the UI) at this time.

Return to “Ask For Help”

Who is online

Users browsing this forum: AHKStudent, Bing [Bot], MarcelDeZaadcel, mikeyww and 62 guests