Code: Select all
PixelSearch, Px, Py, 131, 302, 214, 316, 0xCEFFCE, 3, Fast RGB
;first it searches the color of the control in the given coordinates on the screen
sleep 100
mousemove %Px%, %Py% ;then the mouse pointer moves to that control
sleep 100
MouseGetPos, X, Y, WIN, CONTROL ;then classNN is retrieved by Mousegetpos command
sleep 100
ControlGetText, OutputVar, %CONTROL%, Finacle - Microsoft Internet Explorer
;then text is retrieved from controlgettext command using classNN
sleep 100
msgbox the text of the control is %OutputVar%