Jump to content
Sign in to follow this  
MrNoJK

Two scripts, one GUI (;D)

Recommended Posts

MrNoJK

Hi,

Lets say I have this script:

$MainForm = GUICreate( "MainForm", 200, 200 )
$lblTest = GUICtrlCreateLabel( "Test", 75, 75, 50, 50 )
GUISetState( @SW_SHOW )

While True

Sleep ( 100 )

WEnd

Would it be possible to change this label with another autoit script?

Edited by MrNoJK

Share this post


Link to post
Share on other sites
MrNoJK

Okay so I actually already figured it out.

For the people who want to know, this script would change this labels text:

ControlSetText( "MainForm", "", "[ID:3]", "Text changed!" )

Here 3 is the ID of the control which can be obtained by writing and reading from a file or using the autoit window info tool

Share this post


Link to post
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
Sign in to follow this  

×