Setting up TCL4BB
Hello all! I thought I would give a brief tutorial on setting up TCL4BB. I want to make this
easy for folks who stayed away from it because they believed it to be too difficult.
First lets get the goods
1. You'll need the actual plugins
You can grab the plugin at this thread:
http://www.lostinthebox.com/viewtopic.php?t=698
2. Grab active tcl. Some would say you don't need it but it's a great tool to have.
You can get that here:
http://www.activestate.com/Products/Dow ... =ActiveTcl
3. Get a copy of twapi. Another very useful tool as I'll show in up coming examples.
http://twapi.sourceforge.net/
Now the setup

Very easy to do...
1. Install activeTCL.
I installed mine in the root directory of the main drive.. C:\tcl for example
2. Install the twapi. This should be installed in the same directory as your activeTCL
Now there is no installer for twapi. I just openned it in my archiver (winrar) and dragged it to
the lib folder of tcl
3. Place the tcl4bb plugins into your blackbox plugins folder. i.e "blackbox\plugin\tcl4bb"
Now we need to edit the tcl4bb.tcl file. Go to your tcl4bb plugin folder and open this file in your
favorite text editor. After this go to the end of the file and add the following line.
source C:/tcl/lib/twapi/twapi.tcl
The source path may be different depending on where you installed activetcl
However note the '/' for the directory listings... make sure you use those and not the '\' or tcl wont
use the source path.
Ok. You're ready to go. Load the plugin into your box of choice.
At this time nothing happens

so, we'll need something to test our set up on.
I'm using bbinterface in this example for now.
1. Create a button and name it to Hello1. Don't give it any functions or title text at this time.
2. Open your text editor again and create a new file. Add the following lines:
Code:
proc Hello1 {} {
tcl-bb::broam "@BBInterface Control SetAgent Hello1 Caption StaticText \"Hello!\""
}
Save this file to Hello1.tcl It's easier to put it in the same folder as your tcl4bb plugin.
Reopen your tcl4bb.tcl file again and add the following at the end of the file..
source C:/blackbox/plugins/tcl4bb/Hello1.tcl
Again.. the drive and path may differ depending on where you installed blackbox and where you put the plugin.
Unload and reload the tcl4bb plugin
Now, for our button.
ctrl+right click the Hello1 bbinterface button you've created and navigate to the MouseDown/Blackbox Bro@m/Entry
and place...
press enter
Now click the button... If everything worked ok, you should now see the label Hello! on the button.
That's all for now as I'm falling asleep.. I'll write more later...
Be sure to check this thread once you get things going..
http://www.lostinthebox.com/viewtopic.php?t=698[/code]