:) Well, before I cold post it, I must add a bit of the comments, 
and must translate all the comments and variables to the English. 
Now, it is all in Croatian language. Now it is pretty much finished, 
I must just check some spots for correct rounding of the values.

Also, it requires one external program (DUmeter for tracking the 
data and time), plugin GetSystemPerformanceData.dll and two PP 
Sceduler commands (second one is to trigger the recalcualtion after 
a sleep so the data can be put to the PP Bar ToolTip). 

It is intended for a notebook with an extra key for dialling, and 
which is almost never turned off but is put to the hibernation/sleep.

I guess there are parts which might be used for learning if someone 
does not know the programming. This script is written relaxed and 
wide (for my taste) since I was not familiar with the language so it 
is for the most part very easy to read and understand. 

As for coding it better, I doubt much can be done. Except for the 
fact that this was my first program in the PP script language so it 
is written much more relaxed than I would normaly do it in a regular 
language (e.g. C), I have solved all the problems nicely. 

As from a programming point, I miss the ability to read the log file 
from the last line backwards (faster), and hate float plugin: it 
does not obey to my system's decimal separator (so I must convert . 
to , manually) and gives me the whole real result as 5. instead as 
5.0 (which I also must fix manually).

I guess in a couple of day (depending of my free time) I could 
transalte it and upload it. I can just upload it, without any 
additional procedure?

Regards,

Davor

--- In [email protected], [EMAIL PROTECTED] wrote:
> > I have made the complete script (now it is 11 k long) which: 
> > - calculates start and end of the monthly period (for me: 
> > 16th to the 15th next month), and calculates its lenght 
> > (28,29,30 or 31 day)
> > - uses DUmeter log as a soruce from which I total the data 
> > traffic in a period, and
> > - gives a display of planned average consumption for today 
> > and the current consumption (or the price if I went over the 
limit). 
> 
> Have you/are you willing to share the script? Some of your coding 
techniques
> might be good study material for others that are working at other 
similar
> projects. There should be enough room in:
> 
> http://groups.yahoo.com/group/power-pro/files/Scripts/
> 
> To post for others to look at if you're willing. Might have some 
others here
> find suggestions on how to code it differently/better :)





Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to