|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: Tue May 18, 2004 10:43 pm
Toggle Buttons |
Is there a way to toggle a button without clicking it?
|
|
|
|
Aarlot Adept
Joined: 30 Dec 2003 Posts: 226
|
Posted: Wed May 19, 2004 12:35 am |
Give the button an ID, then:
#BU idofbutton
will toggle it just as if you had pushed it. |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Wed May 19, 2004 1:38 am |
From the Help page "Advanced Button" describing all the things on the Advanced tab of the button setting.
quote: If a Variable name is assigned to a button, zMUD automatically sets the variable value whenever the button state changes and whenever the variable changes the button state will change and commands for that state will execute. For toggle buttons 0=off, 1=on. For multistate buttons, main caption state has a value of zero, and all other states are numbered according to thier order. You can use the Default field of the Variable to specify the startup state of a button. Note that using this method will execute commands before a connection to the mud is established.
|
|
|
|
|
|