Jump to content

Recommended Posts

Posted

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

Posted

Hi,

just found the solution myself: the key is to use ControlGetText since the GUICtrl functions are for use with AutoIt generated Gui only.

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
×
×
  • Create New...