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
}