Place of the Additional Commands for Image Search

Advanced Macro Recorder/Editor.

Moderator: Pulover

Alexander2
Posts: 348
Joined: 27 Apr 2019, 17:38

Place of the Additional Commands for Image Search

21 Feb 2021, 12:46

The following commands were generated automatically in Pulover’s Macro Creator. The program generates them automatically in order for the Image Search command to work. Pulover’s Macro Creator puts these commands at the very end of a script. Is there any difference between putting them at the beginning and putting them at the end of a script? If they are put at the end, can the program fail to load them in some cases?

Code: Select all

CenterImgSrchCoords(File, ByRef CoordX, ByRef CoordY)
{
	static LoadedPic
	LastEL := ErrorLevel
	Gui, Pict:Add, Pic, vLoadedPic, %File%
	GuiControlGet, LoadedPic, Pict:Pos
	Gui, Pict:Destroy
	CoordX += LoadedPicW // 2
	CoordY += LoadedPicH // 2
	ErrorLevel := LastEL
}
Last edited by BoBo on 21 Feb 2021, 13:00, edited 1 time in total.
Reason: Moved to Pulovers Macro Creator section.
Alexander2
Posts: 348
Joined: 27 Apr 2019, 17:38

Re: Place of the Additional Commands for Image Search

22 Feb 2021, 11:01

Thank you. I can then put it at the beginning of a script.

Return to “Pulovers Macro Creator”

Who is online

Users browsing this forum: No registered users and 42 guests