| Author |
Message |
|
pkt-zer0
BBDinosaur
Joined: Wed Feb 15, 2006 4:57 pm Posts: 249
|
ser VI wrote: I see, could not use the way I want. Need to use tcl-bb. I want to make a BBInterface with full BBInterface scripts, but need a test with a variable.
At the moment, you can only do it like this:
@BBInterface Set TempVar "<your condition comes here>"
@BBInterface Set ChosenPath MyScript_Path$TempVar$
@BBInterface Plugin Load [$ChosenPath$] from scripts.rc
Then in scripts.rc you'd have to put two tagged sections, [MyScript_Path0] and [MyScript_Path1] - the appropriate one would be chosen depending on whatever condition you evaluated in setting TempVar.
Yes, I realize it's probably more trouble than it's worth. Not sure if it's faster than using TCL (doubtful), but uglier, that's for sure.
_________________ Dislike the lack of documentation for bb4win? You have the power to change this... Help out on the bb4win wiki.
|
| Thu Aug 24, 2006 11:18 pm |
|
 |
|
Google
Sponsored Links
|
|
 |
|
ser VI
BBDinosaur
Joined: Thu Dec 09, 2004 5:18 pm Posts: 491
|
I will try this solution and give you a return.
Another thing: Now with the new shadows on fonts, others plugins needs to be updated too, like BBSysmonPlus, BBMuse etc...
|
| Thu Aug 24, 2006 11:26 pm |
|
 |
|
Nightbreed
Moderator
Joined: Wed Jan 26, 2005 8:04 am Posts: 2252 Location: Philadelphia, PA
|
I think both bbi's built in variable system combined with tcl works great. The external bbi files I mainly use for settings with particular modules.
A great way to see how to use the expression engine and variable system is to browse through UnkHz's MenuEx files. http://www.lostinthebox.com/viewtopic.php?t=1655
Some expressions maybe incompatible atm but it's still a great resource.
_________________ if you can not believe it's not butter, then help out with the blackbox Wiki http://wiki.bb4win.org/wiki/Main_Page
|
| Fri Aug 25, 2006 1:52 am |
|
 |
|
ser VI
BBDinosaur
Joined: Thu Dec 09, 2004 5:18 pm Posts: 491
|

Is it possible to turn all icons to a certain size? Something like a bro@m to a *Button so all buttons that ends with this name change the icon size?
Is it possible to get the icon name that you are pressing?
I am trying the script below, and the "$DefaultIcon$" show, but "$IconName$" don't.
I am trying to do a totally BBInterface Script, using only BBInterface, but maybe in this case I need to use tcl4bb?
Should I use another name for the variables? They are to be used in another way?
In BBInterface:
Code: @BBInterface Plugin OnLoad "@BBInterface Plugin Load [Variables] from Controls.bbi" ... ... @BBInterface Control SetAgent ShowMultimediaButton LeftMouseDown Bro@m "@BBInterface Set FrameName Multimedia" @BBInterface Control SetAgent ShowMultimediaButton LeftMouseUp Bro@m "@BBInterface Plugin Load [HideFrame] from Controls.bbi" In BBInterface Script Controls.bbi: Code: [Variables] @BBInterface Set IconPath C:\BBLean\Icons\Element_icon\Blue
@BBInterface Set MiscIcon $IconPath$\drive.ico @BBInterface Set OfficeIcon $IconPath$\drop.ico @BBInterface Set InternetIcon $IconPath$\control_panel.ico @BBInterface Set GraphicsIcon $IconPath$\folder.ico @BBInterface Set MultimediaIcon $IconPath$\music.ico @BBInterface Set DefaultIcon $IconPath$\element.ico
[HideFrame] @BBInterface Set IconName $FrameName$Icon @BBInterface Control SetWindowProperty :$FrameName$Frame IsVisible false @BBInterface Control SetAgent :Show$FrameName$Button Image Icon "$IconName$" @BBInterface Control SetWindowProperty :Show$FrameName$Button Style "Toolbar" @BBInterface Control SetAgent :Show$FrameName$Button LeftMouseUp Bro@m "@BBInterface Plugin Load [ShowFrame] from Controls.bbi"
[ShowFrame] @BBInterface Control SetWindowProperty :$FrameName$Frame IsVisible true @BBInterface Control SetAgent :Show$FrameName$Button Image Icon "$DefaultIcon$" @BBInterface Control SetWindowProperty :Show$FrameName$Button Style "Sunken" @BBInterface Control SetAgent :Show$FrameName$Button LeftMouseUp Bro@m "@BBInterface Plugin Load [HideFrame] from Controls.bbi"
... ...
|
| Fri Aug 25, 2006 2:00 pm |
|
 |
|
Nightbreed
Moderator
Joined: Wed Jan 26, 2005 8:04 am Posts: 2252 Location: Philadelphia, PA
|
Wouldn't that be just
@BBInterface Set IconSize <size>
Least that's what I would think it is.
_________________ if you can not believe it's not butter, then help out with the blackbox Wiki http://wiki.bb4win.org/wiki/Main_Page
|
| Fri Aug 25, 2006 7:11 pm |
|
 |
|
whorse
BBNewborn
Joined: Thu Aug 17, 2006 3:44 pm Posts: 2
|
Strange, I thought I had posted this yesterday but it never was apparently.
Anyway, this one should be really easy to answer:
Is it possible to make a control transparent but not its children? I'm building a fold-out quicklaunch thing and it would be great to have just the icons (buttons) visible.
|
| Sat Aug 26, 2006 12:01 pm |
|
 |
|
Nightbreed
Moderator
Joined: Wed Jan 26, 2005 8:04 am Posts: 2252 Location: Philadelphia, PA
|
The answer to that is no.. There is more info on that through out the various bbi threads
_________________ if you can not believe it's not butter, then help out with the blackbox Wiki http://wiki.bb4win.org/wiki/Main_Page
|
| Sat Aug 26, 2006 12:54 pm |
|
 |
|
pkt-zer0
BBDinosaur
Joined: Wed Feb 15, 2006 4:57 pm Posts: 249
|

whorse wrote: Is it possible to make a control transparent but not its children? I'm building a fold-out quicklaunch thing and it would be great to have just the icons (buttons) visible. Yep, use the style "None" for the parent frame. First set things up while it's visible, it's pretty hard to select it afterwards.  Nightbreed wrote: The answer to that is no.. There is more info on that through out the various bbi threads It's the OTHER way around that it doesn't work... since Style-None frames happily paint their magic pink on their parent controls, regardless whether their parent is actually transparent or not. Works in the former case, looks ugly in the latter. I have an idea as to how I could make it work better, but you'll know it anyway if it works. ser VI wrote: Is it possible to turn all icons to a certain size? Something like a bro@m to a *Button so all buttons that ends with this name change the icon size? No, unless you manually keep track of all the controls you want to manipulate. Quote: Is it possible to get the icon name that you are pressing? Nope, but when creating a control through a script, it is possible to link in the name of the control directly, thereby saving you the trouble of having to do it by hand. And example of this is in that dropwharf script I've posted some time ago, I think. Quote: I am trying the script below, and the "$DefaultIcon$" show, but "$IconName$" don't.
I think the problem is that you're not setting the FrameName variable before calling the [ShowFrame] / [HideFrame] scripts.
_________________ Dislike the lack of documentation for bb4win? You have the power to change this... Help out on the bb4win wiki.
|
| Sat Aug 26, 2006 6:31 pm |
|
 |
|
ser VI
BBDinosaur
Joined: Thu Dec 09, 2004 5:18 pm Posts: 491
|
Quote: @BBInterface Control SetAgent ShowMultimediaButton LeftMouseDown Bro@m "@BBInterface Set FrameName Multimedia"
When I press leftdownbutton I set the FrameName variable.
|
| Sat Aug 26, 2006 10:22 pm |
|
 |
|
iElectric
BBWise
Joined: Mon Feb 06, 2006 7:02 pm Posts: 49
|
Is it possible to switch with this between output audio channels. I want to make a button, that would switch from 2.1 to 5.1 and the other way.
|
| Fri Sep 01, 2006 3:32 pm |
|
 |
|
Nightbreed
Moderator
Joined: Wed Jan 26, 2005 8:04 am Posts: 2252 Location: Philadelphia, PA
|
You would need to access the windows mixer controls for that. Not hard depending on if the soundcards control allows that through the mixer itself. That would show up in the audio options in bbi.
If not, you'll have to either create a vb script or a tcl script to access that part of the mixer and link a button to it.
With my Audigy and live cards I use KX Audio drivers and I set a button to a preset to switch those values.
_________________ if you can not believe it's not butter, then help out with the blackbox Wiki http://wiki.bb4win.org/wiki/Main_Page
|
| Fri Sep 01, 2006 3:43 pm |
|
 |
|
spchtr
BBWise
Joined: Mon Feb 13, 2006 12:18 am Posts: 65
|
 BBInterface 099 not keeping loaded modules?
I'm back and saw the new versions so I thought I'd try to catch up a bit.
I'm having a bit of trouble updating my old bbinterface.rc file.
load bbinterface, then add 2 modules. tlc and trc. I then unload bbinterface to get it to write to the .rc file. I then write protect the rc file(to keep it from changing inadvertently) Later I load bbinterface, but trc and tlc are no longer loaded modules, but when I check the .rc file I still have this section in it...
Code: !---- Loaded modules ---- @BBInterface Module Load "plugins\BBI099\Corners\TLC.rc" @BBInterface Module Load "plugins\BBI099\Corners\TRC.rc"
Any Ideas?
|
| Sat Sep 02, 2006 4:43 am |
|
 |
|
pkt-zer0
BBDinosaur
Joined: Wed Feb 15, 2006 4:57 pm Posts: 249
|
Evil syntax change has happened.
Should look something like this:
Code: !---- Loaded modules ---- @BBInterface Module Load "C:\blackbox\plugins\bbInterface\bbistyler.rc" @BBInterface Module Load "C:\blackbox\plugins\bbInterface\wharf.rc"
!---- Active modules ---- @BBInterface Module Toggle bbiStyler @BBInterface Module Toggle DropWharf
_________________ Dislike the lack of documentation for bb4win? You have the power to change this... Help out on the bb4win wiki.
|
| Sat Sep 02, 2006 10:05 am |
|
 |
|
spchtr
BBWise
Joined: Mon Feb 13, 2006 12:18 am Posts: 65
|
 Any way?
Any way we can get it to accept relative paths? After all most of the rest of BBlean takes them, and since I use this primarily from a portable drive on multiple computers it's really a big help if it can be.
Especially since in the same file I also have the following:
Code: !---- bbishell::ExternalPlugins ---- @BBInterface Control ExternalPlugin bbishell Load "plugins\bbsysmonplus010b\BBSysmonPlus.dll" @BBInterface Control ExternalPlugin bbishell SetProperty BBSysmonPlus IsVisible true @BBInterface Control ExternalPlugin bbishell SetProperty BBSysmonPlus Position 104 3
That part works fine. It's just on the @BBInterface Module Load "" where it's not accepting the relative path...
|
| Sun Sep 03, 2006 8:52 am |
|
 |
|
pitkon
Site Admin
Joined: Tue Jan 25, 2005 1:13 am Posts: 741
|
Finally back after some long vacations and a treat was waiting for me... Great work, pkt-zer0, works like a dream for me... Now, if we could only have spherical objects, the bliss would be complete... Anyway, kudos and keep up the great work... 
|
| Wed Sep 06, 2006 5:04 am |
|
 |
|
Google
Sponsored Links
|
|
 |
|