Here is how I made mine work with one button:
add these lines(or similar) to your exectbl.ini:
Code:
"BBCONNECT","RUNq;$RRPATH$\Connect.bat||SETVAR;BBCONNECTED;1||SETIND;!BBCONNECTIONSTATUS;ON"
"BBDISCONNECT","RUNq;$RRPATH$\Disconnect.bat||SETVAR;BBCONNECTED;0||SETIND;!BBCONNECTIONSTATUS;OFF"
And your button code would look something like this:
Code:
B,271,182,252,65,"BYVAR;BBCONNECTED;BBCONNECT<<BBDISCONNECT",
I also use an indicator to know when it's connected:
Code:
I,239,178,26,24,"!BBCONNECTIONSTATUS:b"
I just added the icon to menu_on.png
I know this method may get out of 'sync' because it just toggles, and doesn't actually know the status of the connection... I just don't know how to check to see if the connection was initiated.