Jump to content

Problem with get text

Recommended Posts


I'm trying to capture text from a browser tab, the more I'm not getting. so I can find the browser information.

use code:

#include <MsgBoxConstants.au3>


Func Example()

    ; Wait 10 seconds for the Notepad window to appear.
    Local $hWnd = WinWait("[CLASS:IEFrame]", "", 10)

    ; Retrieve the text of the edit control in browser. The handle returned by WinWait is used for the "title" parameter of ControlGetText.
    Local $sText = ControlGetText($hWnd, "", "")

    ; Display the text of the edit control.
    MsgBox($MB_SYSTEMMODAL, "", "The text in Edit1 is: " & $sText)

EndFunc   ;

Window information:

>>>> Window <<<<
Title: TibiaME - Web Client - XHTML - Internet Explorer
Class: IEFrame
Position: 0, 0
Size: 662, 456
Style: 0x16CF0000
ExStyle: 0x00000100
Handle: 0x0004030A

>>>> Control <<<<
Class: SunAwtCanvas
Instance: 1
ClassnameNN: SunAwtCanvas1
Advanced (Class): [CLASS:SunAwtCanvas; INSTANCE:1]
Position: 3, 85
Size: 640, 360
ControlClick Coords: 255, 187
Style: 0x56000000
ExStyle: 0x00000000
Handle: 0x00040448

>>>> Mouse <<<<
Position: 266, 272
Cursor ID: 0
Color: 0x8A9BA3

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
Barra de Navegação
Barra de Endereços
Controle de Combinação de Endereços
Controle de Páginas
Favoritos e Barra de Ferramentas
TibiaME - Web Client - XHTML - Internet Explorer

>>>> Hidden Text <<<<

Share this post

Link to post
Share on other sites

For Browser Control*-Functions not working. You have to use one of the Browser-UDF's For IE the IE.Au3 is already installed with AutoIt3. Best start is with

_IE_Introduction() ;or


Share this post

Link to post
Share on other sites

how would my code?
I looked at some examples, but not understand how it works ...
can you help me?

Share this post

Link to post
Share on other sites


Once again you are asking for help with a game - how many times have we told you about the fact that we do not support game scripts to date?

This your last chance - one more game related question from you and sanctions will be applied.


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:


ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area


Share this post

Link to post
Share on other sites
This topic is now closed to further replies.