View Single Post
Old 07-22-2008, 11:40 PM   #13
barnyard
Constant Bitrate
 
Join Date: Jul 2006
Posts: 203
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.
Attached Images
 
__________________
VIA EPIA M10000
512 Megs RAM
8" Lilliput
Onstar GPS mod
XM
Visteon HDZ300
barnyard is offline   Reply With Quote