Jump to content

Copy text from windows update


 Share

Recommended Posts

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:  0x50200100

Here is the image:

post-5223-1281265187847_thumb.jpg

Link to comment
Share on other sites

I assume "WuDuiListView" is similar to a SysListView32 class control. Try ControlListView(), or the _GuiCtrlListView_* functions of the GuiListView.au3 UDF.

:blink:

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

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

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.

:blink:

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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