Little Help on Simple IF

Christie Widget Designer Version 6 - Q&A

Moderator: Moderator Group

Forum rules
When asking make sure to include the operating system and the revision of Widget Designer you are using.

Little Help on Simple IF

Postby jaykoller » Tue Aug 22, 2017 6:47 pm

Hello,

I know this is pretty simple, however I can not seem to figure out how to do this through nodes or a simple IF statement.

I have a script timer. I want to change the text of a button when the timer is active, and change it back when the timer is not active. For example:

When script timer is not active Button A says "Not Active" once the script timer is clicked it changes to "Active" and turning off the timer changes it back.

I have done this before with toggle buttons, however I cant figure out how to do this with relation to a script timer.

Any help is appreciated .

Thanks!
jaykoller
 
Posts: 32
Joined: Wed Apr 02, 2014 9:42 pm
Location: Albuquerque, New Mexico, USA

Re: Little Help on Simple IF

Postby Mike Mengen » Wed Aug 23, 2017 9:08 am

Hi,

I think the easiest way would be to use an Action Node. You can find that under Nodes, Scripts, Action.
There you can use the Action Script ScriptTimer1.Started/ScriptTimer1.Stopped which executes your Button Scripts.

Regards
User avatar
Mike Mengen
 
Posts: 18
Joined: Thu Aug 13, 2015 1:50 pm

Re: Little Help on Simple IF

Postby jaykoller » Wed Aug 23, 2017 4:14 pm

This worked so simple I feel like I lost hours of my life.... Thanks!

I am still getting used to WD 6 and nodes. I appreciate your help.
jaykoller
 
Posts: 32
Joined: Wed Apr 02, 2014 9:42 pm
Location: Albuquerque, New Mexico, USA


Return to Widget Designer V6

Who is online

Users browsing this forum: No registered users and 1 guest