View unanswered posts | View active topics It is currently Thu Jul 29, 2010 2:29 pm



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 29 posts ]  Go to page 1, 2  Next
 BBnettraffic 
Author Message
BBSage
User avatar

Joined: Mon Aug 14, 2006 10:44 pm
Posts: 183
Location: Czech Republic
Reply with quote
Post BBnettraffic
Hello,
there's one more of my plugins. Try it if you want and if you find it usefull, but I am sure it must be full of bugs. :) It cannot be slitted for now, because I have problems with making plugins slittable (if you're interested, see here: http://www.lostinthebox.com/viewtopic.php?t=2372). Enjoy!

:arrow: http://pitris.me.cz/?view=BBlean

Image

_________________
BBlean plugins @ http://pitris.info/BBlean


Sat Feb 03, 2007 11:37 pm
Report this post
Profile WWW
Sponsored Links
Google Adsense


Boy meets Box
User avatar

Joined: Fri Dec 29, 2006 2:47 am
Posts: 623
Location: in front of the monitor.
Reply with quote
Post 
Very nice, looks like it has a lot of potential. I don't have need of it myself, but I remember a number of people requesting something exactly like this. Nice one. :wink:

_________________
attack of the mini-man!
bb4win FAQs
mini-man-land


Sun Feb 04, 2007 3:45 am
Report this post
Profile YIM WWW
Moderator

Joined: Tue Jan 25, 2005 1:13 am
Posts: 595
Reply with quote
Post 
Beautiful!


Sun Feb 04, 2007 11:23 am
Report this post
Profile
BBWise
User avatar

Joined: Thu Jul 07, 2005 12:13 pm
Posts: 61
Location: Germany / Cologne
Reply with quote
Post 
nice plugin...

but it is not slitable...

Cheers,


Tue Feb 06, 2007 2:03 pm
Report this post
Profile ICQ YIM
Site Admin
User avatar

Joined: Sun Dec 05, 2004 8:59 pm
Posts: 1316
Location: Boise, Idaho
Reply with quote
Post 
Not only not slitable but it will throw an error message if you even try and load it in the slit. It would seem better programming practice to just ignore the SlitWnd that's passed, not call SLIT_ADD, and then just call your beginPlugin.. Had to update bb4blux (a year since I did that last) just so it could work around that.. *sigh*

Other than that, great idea, awesome plugin!

_________________
-- Brian


Tue Feb 06, 2007 4:03 pm
Report this post
Profile ICQ YIM WWW
Boy meets Box
User avatar

Joined: Fri Dec 29, 2006 2:47 am
Posts: 623
Location: in front of the monitor.
Reply with quote
Post 
I might just use it if there was a 'slimmer' version of it...yes, yes, I did the rc config like mad...but it looks choppy when it's slimmed down..as in...height. :P

_________________
attack of the mini-man!
bb4win FAQs
mini-man-land


Tue Feb 06, 2007 4:06 pm
Report this post
Profile YIM WWW
BBSage
User avatar

Joined: Mon Aug 14, 2006 10:44 pm
Posts: 183
Location: Czech Republic
Reply with quote
Post 
@ tresni:
See, at least you updated. ;) I'll correct it soon.

@ /\/\inimal:
What exactly do you mean with choppy? Can you give a screenshot?

_________________
BBlean plugins @ http://pitris.info/BBlean


Wed Feb 07, 2007 11:31 am
Report this post
Profile WWW
Site Admin
User avatar

Joined: Sun Dec 05, 2004 8:59 pm
Posts: 1316
Location: Boise, Idaho
Reply with quote
Post 
Sorry about that pitris, my post was a little more..rude.. than I intended it to be. But yeah, if you don't want to use beginSlitPlugin or beginPluginEx do I what I did in WorskpaceStyle
Code:
int beginSlitPlugin(HINSTANCE hinstance, HWND slit)
{
  return beginPlugin(hinstance);
}
int beginPluginEx(HINSTANCE hInstance, HWND slit)
{
  return beginPlugin(hInstance);
}

Works like a charm and users usually don't know the difference (except that even if they load it with & it won't go in the slit).

P.S. that code is from memory as I am at school atm.

_________________
-- Brian


Wed Feb 07, 2007 11:01 pm
Report this post
Profile ICQ YIM WWW
BBSage
User avatar

Joined: Mon Aug 14, 2006 10:44 pm
Posts: 183
Location: Czech Republic
Reply with quote
Post 
BBnettraffic 0.0.2 is now slittable.

_________________
BBlean plugins @ http://pitris.info/BBlean


Sun Feb 18, 2007 12:45 am
Report this post
Profile WWW
BBTeen

Joined: Wed Sep 27, 2006 3:05 am
Posts: 18
Location: Khabarovsk, Russia
Reply with quote
Post feature request
BBNetTraffic is very useful for me, but i can`t find out, is there any way to config cost value, for example, im paying 5.95 RUR per 1 meg, but looks like plugin doesnt undestand dots, so it counts only 5.
Also the final cost is displaying for example as "30.20", but the real cost is 3.02 how can i tune it?
If you will continue developing this great plug, can you add a feature to count traffic this way:
i pay from 7:00 to 24:00 - 6 RUR, and from 0:00 to 7:00 - 3 RUR
can you add this feature? Sorry for my bad english.
P.S. Your screensaver is also very nice.


Mon Feb 19, 2007 3:25 am
Report this post
Profile ICQ
Moderator
User avatar

Joined: Mon Dec 06, 2004 12:06 am
Posts: 405
Location: Kungsbacka, Sweden
Reply with quote
Post 
pitris wrote:
BBnettraffic 0.0.2 is now slittable.

Looking great pitris, however I found two minor bugs/issues:

(1) The beginPluginEx entry point is not handled correctly. You see, while it may not have been documented properly in the SDKs, use of beginPluginEx assumes that the plugin handles its own slit status, i.e. whether it should be docked or not, rather than relying on the loading parent to do that (as was the case with the older beginSlitPlugin which was used if the plugin was &-loaded in plugins.rc). In other words, the plugin should not automatically dock itself to the slit when the beginPluginEx entry point is used (as was the case with the older beginSlitPlugin), but based on a setting in its own configuration file.

(2) The plugin does not seem to properly remove itself from the slit when it is unloaded. Make sure you're performing a...
SendMessage(hwndSlit, SLIT_REMOVE, NULL, (LPARAM)hwndPlugin);
...during endPlugin().

That said: Nice plugin, keep up the good work! :D

BR//Karl -> qwilk


Mon Feb 19, 2007 8:47 pm
Report this post
Profile WWW
Boy meets Box
User avatar

Joined: Fri Dec 29, 2006 2:47 am
Posts: 623
Location: in front of the monitor.
Reply with quote
Post 
pitris wrote:
@ tresni:
See, at least you updated. ;) I'll correct it soon.

@ /\/\inimal:
What exactly do you mean with choppy? Can you give a screenshot?


Sorry about the late reply. :oops: Totally forgot about this thread.

Well, I unloaded the plugin a few days back to try and set up a BBI to keep the "full" nettraffic (default) sitting next to some other of my BBI scripts, and it's still a WIP so I haven't fiddled with it much, yet. One time I did and blackbox crashed..ah well.

So I think I'll be able to live with the default version. :D

Awesome plugin, tho, now I know when my modem lags and I have to restart it... :shock:

_________________
attack of the mini-man!
bb4win FAQs
mini-man-land


Tue Feb 20, 2007 2:58 am
Report this post
Profile YIM WWW
BBSage
User avatar

Joined: Mon Aug 14, 2006 10:44 pm
Posts: 183
Location: Czech Republic
Reply with quote
Post 
@a43:
The plugin really doesn't take floating point numbers . I'll change it in the next version.

@qwilk:
qwilk wrote:
(1) The beginPluginEx entry point is not handled correctly. You see, while it may not have been documented properly in the SDKs, use of beginPluginEx assumes that the plugin handles its own slit status, i.e. whether it should be docked or not, rather than relying on the loading parent to do that (as was the case with the older beginSlitPlugin which was used if the plugin was &-loaded in plugins.rc). In other words, the plugin should not automatically dock itself to the slit when the beginPluginEx entry point is used (as was the case with the older beginSlitPlugin), but based on a setting in its own configuration file.

So when it's loaded with beginPluginEx the being/not being in the slit should be controled by its own flag/settings and while it's loaded with beginSlitPlugin it should add itself to slit no matter what its own slit settings say?

qwilk wrote:
(2) The plugin does not seem to properly remove itself from the slit when it is unloaded. Make sure you're performing a...
SendMessage(hwndSlit, SLIT_REMOVE, NULL, (LPARAM)hwndPlugin);
...during endPlugin().

Oh my god! I totally forgot! :oops:

_________________
BBlean plugins @ http://pitris.info/BBlean


Tue Feb 20, 2007 3:38 pm
Report this post
Profile WWW
Site Admin
User avatar

Joined: Sun Dec 05, 2004 8:59 pm
Posts: 1316
Location: Boise, Idaho
Reply with quote
Post 
According to qwilk that's how beginPluginEx should work, but none of my plugins do that, :D I'm evil though :evil: see :D

It is not improper to have it forced into the slit if you ask me, but me and qwilk have agreed to disagree on that :P Unless qwilk changed xoblite so it try to load everything using beginPluginEx first, in which case I'll have to agree with him.. Damn politicians!

_________________
-- Brian


Tue Feb 20, 2007 4:02 pm
Report this post
Profile ICQ YIM WWW
Moderator
User avatar

Joined: Mon Dec 06, 2004 12:06 am
Posts: 405
Location: Kungsbacka, Sweden
Reply with quote
Post 
Hmm, with all due respect I do not think we have disagreed on that Tres`ni... have we? ;) :)

Anyway, the way I see it, yes, when beginPluginEx (which I introduced in xoblite bb1 for this exact reason) is used, the plugin should keep track of its slit status and dock to the slit accordingly. beginSlitPlugin, on the other hand, is (as far I know) only used when the plugin has been &-loaded, i.e. when the user wants to force the plugin into the slit, whereas beginPlugin is used when the plugin has not been &-loaded. The drawback with this approach, however, was that there was an ambiguity about where the user should look for the "dock to slit or not" setting. Should he/she use a config item in the plugin menu or have to manually open plugins.rc (soooo last century! 8)) and add/remove the & character? Please note that this ambiguity is removed by explicitly requiring that the plugin keeps track of its own slit status when beginPluginEx is used; otherwise it would be no more than a duplicate of beginSlitPlugin.

The entry points are tried in the following order:

Code:
if (beginPluginEx) beginPluginEx(hModule, pSlit->hSlitWnd);
else if (beginSlitPlugin && EnableDockToSlit) beginSlitPlugin(hModule, pSlit->hSlitWnd);
else if (beginPlugin) beginPlugin(hModule);
else if (beginSlitPlugin) beginSlitPlugin(hModule, pSlit->hSlitWnd);

http://xoblite.net/source/PluginManager.cpp.html

BR//Karl -> qwilk


Wed Feb 21, 2007 10:24 am
Report this post
Profile WWW
Sponsored Links
Google Adsense


Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 29 posts ]  Go to page 1, 2  Next


Who is online

Users browsing this forum: Google [Bot] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.