Jump to content

ControlGetText dont get the text


shai
 Share

Recommended Posts

i try get text from Quinnect application:

see details here:

http://www.remoteutilities.com/support/kb/50/

and the download is here:

http://www.remoteutilities.com/download/QAgent.exe

here is my code:

WinActivate ('Quinnect',"")
WinWaitActive ('Quinnect',"")
$hHandle = WinGetHandle('Quinnect')
$var = ControlGetText($hHandle, '', '[CLASS:TPanel; INSTANCE:5]')
ConsoleWrite($var & @CRLF)

but i get in Console "pnState".

i want get the "Ready for connection" text.

thanks for any your help

Link to comment
Share on other sites

Maybe this could simplify your approach:

WinActivate ('[TITLE:Quinnect]',"")
$hHandle = WinWaitActive ('Quinnect',"")
$var = ControlGetText($hHandle, '', '[CLASS:TPanel; INSTANCE:5]')
ConsoleWrite($var & @CRLF)
Edited by MKISH

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Link to comment
Share on other sites

:think: I'm just getting suspicious (I think Quinnect uses some other GUI API)... What does AU3Info Tool tell about the Quinnect Window?

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

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

×
×
  • Create New...