Delai Posted August 8, 2010 Share Posted August 8, 2010 I am wondering please if is there an example of someone to copy the whole text from windows update on windows 7 to a text file. I have used this expression but it gives a blank text.$Text = ControlGetText("Seleccionar actualizaciones para instalar", "", "[CLASS: WuDuiListView; INSTANCE: 1]")MsgBox(0, "Text read was:", $text)the controls given by autoitinfo are:>>>> Window <<<< Title: Seleccionar actualizaciones para instalar Class: CabinetWClass Position: 0, 0 Size: 800, 560 Style: 0x14CF0000 ExStyle: 0x00000100 Handle: 0x00070078 >>>> Control <<<< Class: WuDuiListView Instance: 1 ClassnameNN: WuDuiListView1 Advanced (Class): [CLASS:WuDuiListView; INSTANCE:1] ID: Text: Position: 103, 85 Size: 477, 387 ControlClick Coords: 110, 199 Style: 0x50200100Here is the image: Link to comment Share on other sites More sharing options...
PsaltyDS Posted August 9, 2010 Share Posted August 9, 2010 I assume "WuDuiListView" is similar to a SysListView32 class control. Try ControlListView(), or the _GuiCtrlListView_* functions of the GuiListView.au3 UDF. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Delai Posted August 10, 2010 Author Share Posted August 10, 2010 I have tried this simple script to see if it finds firstly the windows but it gives me no text. Global $Title = "Seleccionar actualizaciones para instalar" Global $listview_test = "[CLASS: WuDuiListView; INSTANCE: 1]" Global $hWnd = WinGetHandle($Title) ConsoleWrite("$hWnd = " & $hWnd & @LF) Global $hLV = ControlGetHandle($hWnd, "", $listview_test) ConsoleWrite("$hLV = " & $hLV & @LF) Link to comment Share on other sites More sharing options...
PsaltyDS Posted August 10, 2010 Share Posted August 10, 2010 You missed the point. I assumed you got valid identities for the window and control. ControlGetText() doesn't work on a listview control. Period. Even if you correctly identified it.So let's try again: I assume "WuDuiListView" is similar to a SysListView32 class control. Try ControlListView(), or the _GuiCtrlListView_* functions of the GuiListView.au3 UDF. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now