GetTextAtPoint


 

GetTextAtPoint>x,y,result_variable,char_pos

 

Not supported in Macro Scheduler Lite.

 

Retrieves the text at the specified screen position.  Any text retrieved is returned in result_variable.  char_pos returns the zero-based index in result_variable of the character at position x,y.

 

GetTextInit must be called before this function will work.

 

NB: This function requires Windows 2000 or above.  It has no effect in Windows 95/98/NT.

 

Abbreviation: GTA

See also: GetTextInRect, GetWindowTextEx, WaitScreenText, GetTextInit, GetTextReset, GetTextPos

 

Example:

 

GetTextInit

GetTextAtPoint>200,400,strText,nChar
 if>nChar>-1
   MidStr>strText,nChar,1,sChar
 Endif
 MessageModal>%strText% (%sChar%)