Jump to content

GUICtrlRead does not work although handle is available


mort
 Share

Recommended Posts

Hi all,

first of all: I really like AutoIt!

However, I got a little problem when trying to read data from the Gui using the following snippet:

$handle = ControlGetHandle("[CLASS:TMainForm]", "", "[CLASS:TStaticText; INSTANCE:1]")
$var = GUICtrlRead($handle, 1)

Obtaining the handle for the control works, but at the end of the snippet, war will be 0! What am I doing wrong here? The AutoIt window info app does show the correct values!

Thanks,

mort

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