Jump to content

How to obtain the text of application with the code of the Autoit v3 Windows Information - (Moved)


Go to solution Solved by Andreik,

Recommended Posts

Hy my friend

 

Just to ask about to obtain the text of application with the code of the Autoit v3 Windows Information.

i need the combobox section.

 

the code of the Autoit v3 Windows Information is the next

 

>>>> Window <<<<
Title:    BluffTitler Windows
Class:    BluffTitler
Position:    0, 4
Size:    1212, 789
Style:    0x14CF0000
ExStyle:    0x00000110
Handle:    0x0000000000051F6A

>>>> Control <<<<
Class:    ComboBox
Instance:    1
ClassnameNN:    ComboBox1
Name:    
Advanced (Class):    [CLASS:ComboBox; INSTANCE:1]
ID:    
Text:    
Position:    0, 36
Size:    1196, 21
ControlClick Coords:    804, 2
Style:    0x50000242
ExStyle:    0x00000000
Handle:    0x000000000001201C

 

im going to try using the code:

$name_bluff = ControlGetText("BluffTitler Windows", "", "[CLASS:ComboBox; INSTANCE:1]")

but not working

 

 

best regards

Edited by Netol
Link to comment
Share on other sites

  • Developers

Moved to the appropriate AutoIt General Help and Support forum, as the Developer General Discussion forum very clearly states:

Quote

General development and scripting discussions.


Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums.

Moderation Team

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

He told you where to look, so have you attempted anything ?  Show the code you tried that is not working.

And when you post code, even if it is very small, use the method shown in the link.

Link to comment
Share on other sites

  • Solution
Posted (edited)
On 4/11/2024 at 5:06 AM, Netol said:

im going to try using the code:

$name_bluff = ControlGetText("BluffTitler Windows", "", "[CLASS:ComboBox; INSTANCE:1]")

but not working

Because BluffTitler it's the window class. Try this:

$hWin = WinWait('[CLASS:BluffTitler]')
ConsoleWrite('Window handle: ' & $hWin & @CRLF)

$sText = ControlGetText($hWin, '', 'ComboBox1')
ConsoleWrite('ComboBox Text: ' & $sText & @CRLF)

or directly using the window's class instead of the handle:

$sText = ControlGetText('[CLASS:BluffTitler]', '', 'ComboBox1')
ConsoleWrite('ComboBox Text: ' & $sText & @CRLF)

 

Edited by Andreik

When the words fail... music speaks.

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