Jump to content

Two scripts, one GUI (;D)


MrNoJK
 Share

Recommended Posts

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
Link to comment
Share on other sites

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

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