rodiney Posted February 28, 2016 Posted February 28, 2016 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çoshttp://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 <<<<
AutoBert Posted February 28, 2016 Posted February 28, 2016 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 _IE_Example()
rodiney Posted February 28, 2016 Author Posted February 28, 2016 how would my code? I looked at some examples, but not understand how it works ... can you help me?
Moderators Melba23 Posted February 28, 2016 Moderators Posted February 28, 2016 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 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Recommended Posts