Jump to content

Problem with get text


rodiney
 Share

Recommended Posts

Hello
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>

Example()

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
Name: 
Advanced (Class): [CLASS:SunAwtCanvas; INSTANCE:1]
ID: 
Text: 
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
http://www.tibiame.com/?section=webclient&markup=xhtml
Controle de Combinação de Endereços
Controle de Páginas
Favoritos e Barra de Ferramentas
TibiaME - Web Client - XHTML - Internet Explorer


>>>> Hidden Text <<<<

Link to comment
Share on other sites

  • Moderators

rodiney,

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.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

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

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...