Jump to content

Recommended Posts

Posted

Hi. I would like to know how to get the text (refer to attached image, "Project Name" column)? The Window Info is shown below.

 

>>>> Window <<<<
Title:    Utility To Change Project's Attribute
Class:    #32770
Position:    550, 268
Size:    501, 324
Style:    0x94C800C4
ExStyle:    0x00050101
Handle:    0x0010035C

>>>> Control <<<<
Class:    Button
Instance:    5
ClassnameNN:    Button5
Name:    
Advanced (Class):    [CLASS:Button; INSTANCE:5]
ID:    
Text:    Projects
Position:    9, 12
Size:    476, 228
ControlClick Coords:    191, 100
Style:    0x50000007
ExStyle:    0x00000004
Handle:    0x000D0280

>>>> Mouse <<<<
Position:    753, 405
Cursor ID:    0
Color:    0xFFFFFF

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
List3
&Register
&Change
&Delete
&Exit
Projects


>>>> Hidden Text <<<<
 

Capture.JPG

Posted

try out this script https://www.autoitscript.com/forum/topic/164226-get-all-windows-controls/

 

it might be able to show you more window options to interact with.

If @error Then
    MsgBox(262192, "", @ComputerName & " slaps " & @UserName & " around a bit with a large trout!")
EndIf

"Yeah yeah yeah patience, how long will that take?"  -Ed Gruberman

REAL search results  |  SciTE4AutoIt3 Editor Full Version

Posted
On 2/19/2019 at 4:59 PM, alienclone said:

try out this script https://www.autoitscript.com/forum/topic/164226-get-all-windows-controls/

 

it might be able to show you more window options to interact with.

Thanks for the information.

I tried but I still cannot get the Project Name information. Below is the results using the above script.

Func=[GetAllWindowsControls]: ControlCounter=[  1] ControlID=[46071] Handle=[0x001302E0] ClassNN=[            Button1] XPos=[  86] YPos=[ 255] Width=[ 105] Height=[  23] IsVisible=[1] Text=[&Register].
Func=[GetAllWindowsControls]: ControlCounter=[  2] ControlID=[46072] Handle=[0x0011025C] ClassNN=[            Button2] XPos=[ 201] YPos=[ 255] Width=[  98] Height=[  23] IsVisible=[1] Text=[&Change].
Func=[GetAllWindowsControls]: ControlCounter=[  3] ControlID=[46073] Handle=[0x001B04E0] ClassNN=[            Button3] XPos=[ 312] YPos=[ 255] Width=[  86] Height=[  23] IsVisible=[1] Text=[&Delete].
Func=[GetAllWindowsControls]: ControlCounter=[  4] ControlID=[    1] Handle=[0x004C044A] ClassNN=[            Button4] XPos=[ 410] YPos=[ 254] Width=[  79] Height=[  23] IsVisible=[1] Text=[&Exit].
Func=[GetAllWindowsControls]: ControlCounter=[  5] ControlID=[   -1] Handle=[0x001C02D2] ClassNN=[            Button5] XPos=[   9] YPos=[  12] Width=[ 476] Height=[ 228] IsVisible=[1] Text=[Projects].
Func=[GetAllWindowsControls]: ControlCounter=[  6] ControlID=[    0] Handle=[0x0019047A] ClassNN=[       SysHeader321] XPos=[  21] YPos=[  32] Width=[ 449] Height=[  16] IsVisible=[1] Text=[].
Func=[GetAllWindowsControls]: ControlCounter=[  7] ControlID=[46065] Handle=[0x000B02D4] ClassNN=[     SysListView321] XPos=[  18] YPos=[  29] Width=[ 453] Height=[ 197] IsVisible=[1] Text=[List3].

 

 

  • 1 month later...
Posted (edited)
#include <MsgBoxConstants.au3>
MsgBox($MB_SYSTEMMODAL, "", ControlListView("Utility To Change Project's Attribute", "", "46065", "GetItemCount"))

 

Edited by alienclone
If @error Then
    MsgBox(262192, "", @ComputerName & " slaps " & @UserName & " around a bit with a large trout!")
EndIf

"Yeah yeah yeah patience, how long will that take?"  -Ed Gruberman

REAL search results  |  SciTE4AutoIt3 Editor Full Version

Posted (edited)
#include <MsgBoxConstants.au3>
MsgBox($MB_SYSTEMMODAL, "", ControlListView("Utility To Change Project's Attribute", "", "46065", "GetText", 1))

 

Edited by alienclone
If @error Then
    MsgBox(262192, "", @ComputerName & " slaps " & @UserName & " around a bit with a large trout!")
EndIf

"Yeah yeah yeah patience, how long will that take?"  -Ed Gruberman

REAL search results  |  SciTE4AutoIt3 Editor Full Version

Posted

Have you tried WinGetText?

Opt("WinDetectHiddenText", 1)
$info = WinGetText("Utility To Change Project's Attribute")

MsgBox(4096, 'Result', $info)

 

Posted

If you do the Au3Info on the actual List, what is it?  Listbox, listview, ?

I've had to deal with some Listbox controls that will not give up their text unless the row is selected using _GuiCtrlListBox_SetCurSel()  only then will the ControlGetText() return the  text from that selected row.

Need to loop through to get the text from every row.

  • 2 weeks later...
Posted
On 3/29/2019 at 6:26 PM, Belini said:

Have you tried WinGetText?

Opt("WinDetectHiddenText", 1)
$info = WinGetText("Utility To Change Project's Attribute")

MsgBox(4096, 'Result', $info)

 

It shows the following

List3
&Register
&Change
&Delete
&Exit
Projects

 

Above result is the same as what I got from using AutoIt Windows Info. 

Posted
On 3/29/2019 at 11:25 PM, BigDaddyO said:

If you do the Au3Info on the actual List, what is it?  Listbox, listview, ?

I've had to deal with some Listbox controls that will not give up their text unless the row is selected using _GuiCtrlListBox_SetCurSel()  only then will the ControlGetText() return the  text from that selected row.

 Need to loop through to get the text from every row.

I tried _GuiCtrlListBox_SetCurSel() and unable to select the row.

Posted
10 hours ago, junkew said:

Did you try my suggestion?

Sorry. I missed your earlier post. 

I am not able to find the suggested tool (faq 31) online

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
  • Recently Browsing   0 members

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