|
parrotslave Wanderer
Joined: 01 Jul 2002 Posts: 81 Location: USA
|
Posted: Sun Aug 08, 2004 2:33 am
toggle button |
I use some toggle buttons to turn different classes on and off and execute commands.
Is there a command to make sure all the buttons are in the button up state when I connect to the mud? Perhaps using an atconnect alias?
Thanks! |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Aug 08, 2004 6:24 am |
Assign a variable to each button, using the Variable field on the Advanced tab in the Settings Editor or the Variable-name field of the #BUTTON command. Give each variable a default value of 0 or 1, whichever makes the button the way you want it to start.
|
|
_________________ LightBulb
Senior member
Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious. |
|
|
|
parrotslave Wanderer
Joined: 01 Jul 2002 Posts: 81 Location: USA
|
Posted: Sun Aug 08, 2004 10:17 am |
I tried as you suggested.
The button won't stay depressed in the button down position when I have the default at 0. It only stays in state 0 when the default is 0.
However, thanks to your tip, I was able to create an atconnect alias that assigns the value of 0 to the variable.
Thanks for all the help! |
|
|
|
|
|