View Full Version : WM2005 - Replacement for spb pocket plus battery meter
awojtas
19th May 2005, 01:36 AM
UPDATE: See below for cab file -- easy install, cheers mate
Hi guys,
I LOVE the spb pocket plus battery meter along the top. I feel NAKED without it.
But -- it doesn't work with WM2005 :(
So, here is a replacement. It shows battery and memory use at the top of the screen and works well with WM2005.
Copy to your \Windows\Startup.
You can run this first to make sure it's not a virus :) but for better proof please visit the page I found this on, and say thanks to Intek for making this!
http://www.pocketgear.com/software_detail.asp?id=17943
awojtas
19th May 2005, 01:37 AM
Source code follows (thanks Inteks!)
// powerstatus.cpp : Defines the entry point for the application.
//
#include "Windows.h"
int WINAPI WinMain( HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
// TODO: Place code here.
SYSTEM_POWER_STATUS_EX pst;
int i,cx,dx,ex,top,c;
HDC hdc = ::GetDC(NULL);
HPEN pe,pb,po,pm;
pe = CreatePen(PS_SOLID,2,RGB(50,200,50));
pm = CreatePen(PS_SOLID,2,RGB(250,150,50));
pb = CreatePen(PS_SOLID,2,RGB(80,80,80));
i=30;
top = 1;
c=0;
while(1)
{
i++;
if(i>15){
i=0;
GetSystemPowerStatusEx(&pst,true);
if (pst.ACLineStatus==1)
{
pst.BatteryLifePercent=c;
c+=25;if(c>100)c=0;
}
cx = GetSystemMetrics(SM_CXSCREEN) / 2;
dx = (int)(cx * pst.BatteryLifePercent / 100.0);
STORE_INFORMATION ss;
GetStoreInformation(&ss);
MEMORYSTATUS ms;
GlobalMemoryStatus(&ms);
float mfree;
mfree = 1.0f/(ss.dwStoreSize+ms.dwTotalPhys)*(ss.dwFreeSize+ms. dwAvailPhys) ;//+ ms.dwMemoryLoad) / 2;
ex = (int)(cx * mfree);
}
MoveToEx(hdc,0,top,NULL);
po = (HPEN)SelectObject(hdc,pe);
LineTo(hdc,dx,top);
SelectObject(hdc,pb);
LineTo(hdc,cx,top);
SelectObject(hdc,pm);
LineTo(hdc,ex +cx,top);
SelectObject(hdc,pb);
LineTo(hdc,cx*2,top);
SelectObject(hdc,po);
Sleep(100);
}
DeleteObject(pe);
DeleteObject(pm);
DeleteObject(pb);
::ReleaseDC(NULL, hdc);
return 0;
}
Shikra
19th May 2005, 10:49 AM
Here is inteks Powerstatus 1.0 as cab file. It is same file above but in cab format for easy installation.sorry earlier cab file i uploaded had setup.dll from AEBPlus
Uploaded corrected cab file. please download again. Sorry for the mess. :(
Dutchie
19th May 2005, 02:04 PM
:lol: :lol: missed it , not anymore :D
buzz_lightyear
19th May 2005, 02:39 PM
THANX guys...
PERFECT!!!!!
buzz
buzz_lightyear
19th May 2005, 02:47 PM
actually, what is it about those buttons after starting it?
THANX
buzz
Shikra
19th May 2005, 05:25 PM
[quote="buzz_lightyear"]actually, what is it about those buttons after starting it?
Sorry buzz it was my mistake. I was messing around with AEBplus and somehow the setup.dll from that cab got mixed up with that of powerststus cab file. The button dialog you were seeing was of aebplus. also when you uninstal this cab you get the dialog telling that AEBplus uninstalled ;)
Now I have corrected the cab file. Sorry for the mess :roll:
Rayan
19th May 2005, 07:55 PM
It's nice and all, but unfortunatley I see some flickering on the power/memory bars when Synchronizing, WiFi, and even in some full screen games the bars keep showing (which is somewhat cool, but they flicker oddly).
Is this a modified version of the original?
What changed?
Is it possible to make the bars just one pixel tall?
What are the increase/decrease increments? It would be nice to have it decrease/increase by one or two pixels and have a dashed line instead of a solid line don't you think?
Best regards,
Rayan
buzz_lightyear
19th May 2005, 10:00 PM
that solid line is what I like the most on it...
buzz
BGK
20th May 2005, 01:32 AM
Uhm,sorry, am I missing something? Just installed Powerstatus_corrected on my Magician (T-Mobile one with original ROM), but there's nothing to see (no bars... - even after soft reset... :cry: ). Do I have to activate (start) it somehow? Where is the program installed to?
Greetings,
BGK
Rayan
20th May 2005, 01:36 AM
Uhm,sorry, am I missing something? Just installed Powerstatus_corrected on my Magician (T-Mobile one with original ROM), but there's nothing to see (no bars... - even after soft reset... :cry: ). Do I have to activate (start) it somehow? Where is the program installed to?
Greetings,
BGK
Yes, copy the executable (or make a shortcut) and place it on the Windows/Startup folder so every time you soft reset it is automatically launched...
Greetings,
Rayan
BGK
20th May 2005, 01:39 AM
Sorry again, which exe? Guess I'm a little bit blind today... :roll:
TIA,
BGK
Rayan
20th May 2005, 01:43 AM
Okay BGK, disregard my last post... This new version installs automatically to the Startup folder, so the only thing you need to do is either use File Explorer on your PPC to navigate to Windows/Startup and click on the Powerstatus.exe file to launch it or turn off the PDA and then soft reset...
That's it...
Rayan
BGK
20th May 2005, 01:50 AM
Okay, I've got it. Obviousely while you where typing, I realised, that the exe was installed into /Windows/startup. As the autostartup-folder is named "Autostart" on german devices, the exe wasn't run on soft reset...
When running it manually, it works like a charm... :P
Anyway, thanks for the hint, Rayan.
Greetings,
BGK
Tekguru
20th May 2005, 06:16 PM
Is this WM2005 only or will it work on WM2003SE?
negatong
20th May 2005, 06:36 PM
How to uninstall it? :(
Rayan
20th May 2005, 07:04 PM
Is this WM2005 only or will it work on WM2003SE?
Yes, it runs under both OSes... :)
How to uninstall it?
Just take the .CAB file and copy it to your Pocket PC and then execute it from there... It will install to the Windows/Startup folder (or Autorun for German devices).
Soft reset the device by turning off then soft reset or simply navigate to the installed directory and execute it from there.
Tekguru
20th May 2005, 09:08 PM
Cheers for the quick reply, will be installing shortly!
CANADABAT
20th May 2005, 09:13 PM
It runs on my XDA IIi running 2003se!
buzz_lightyear
7th June 2005, 10:58 AM
Hi guys,
i liked this app so much, and i was so insolent, that i rewrote a bit... :o))
now those bars are shown at the bottom of the screen, coz it is not so busy there as at the top. That means not so much flickering... Of course, if you run full screen apps, it will mess with it, because it is drawing directly to screen...
Now there are four bars...
green -> main battery %
yellow -> backup batery % (this is 2 B changed to BatteryDrain l8r)
orange -> Free RAM %
red -> Free Storage memory %
i also changed the it's behaviour, while the device is cradled... now it looks more alive :o)))
oh yeah... i named it e_status (enhanced status??) :o)))))
hope. U'll like it...
buzz
pschoch
7th June 2005, 02:08 PM
Buzz, you're the best! I also liked this prog but the flickering of the icons was annoying.
One request: Can you make one simple version with only one line? I don't need to see storage etc. I rather see more of the beautiful soft buttons.
Cheers
Pat
buzz_lightyear
22nd June 2005, 04:37 PM
Buzz, you're the best! I also liked this prog but the flickering of the icons was annoying.
One request: Can you make one simple version with only one line? I don't need to see storage etc. I rather see more of the beautiful soft buttons.
Cheers
Pat
...so what would you like to be monitored with that one line??
buzz
victoradjei
22nd June 2005, 05:37 PM
Just battery and memory indicator, non-flickering(like previous batt status indicator), and at bottom like your current.
Victor
(on vaccation accross 3 continents now :wink: )
Sergio_Bandeira
22nd June 2005, 06:45 PM
Hi all!
I think the best option is to have a little configuration screen where we can choose what lines / options we want to see.
An example:
- [ ] Battery
- [ ] Backup Battery
- [ ] Storage
- [ ] Memory
- [ ] Other Stuff that Buzz will add :P
With checkboxes (show or not) or comboboxes (to choose the order to display).
It can also have a color chooser to wich option.
Another subject:
I know a little of programming but I don't know how to begin to do stuff like that.
May you help me?
What do I need to start doing Windows Mobile applications?
- MS Visual Studio .NET
- Windows Mobile SDK
- A little base template
- And your help :wink:
ravelcop
23rd June 2005, 02:40 AM
i love this software, just wana be notified of the progress
Rabia
27th June 2005, 10:27 AM
thanks guys you are the best but what if i want only battery status?
phey_05
13th July 2005, 05:20 AM
pls help,
im a newbie, i cant install the cab file, can anyone please help me?
thanx in advance
Pope
20th July 2005, 04:08 PM
Here ya go... a slight variant I made.
http://www1.cmshostix.net/images/batterystatus.gif
- Just shows battery status
- Multi-coloured bar - red section is 10%, yellow section is 15% more, green is the rest
- Bar starts to the right of the "Start" button as per the pocket plus version
- When on battery power, it "does less work" in order to preserve the battery, this does mean however that it updates the screen less often and so any flickering may be more apparent.
Also BatteryStatus2002 is a slightly different version which will run on PPC2002 :)
lutzh
20th July 2005, 05:12 PM
good work, guys, keep it up! i always hated to install spb plus on my 2003se since it was just too big and too much stuff i did not need - but i liked the power bar! now i found the perfect replacement :-)
cheers, lutz
Sergio_Bandeira
20th July 2005, 05:38 PM
I have to say this...
I use the SPB power bar and a love it.
It don't crash on my WM5 or I don't have detected it.
One of the pros on BatteryStatus is that I can see it in all screens, in games and in applications.
Sometimes it isn't necessary... I think...
The only suggestion I have to it is a better and discrete design.
For example, it can be 50% transparent green in GOOD, 75% transparent yellow in LOW and when it come to VERY LOW it changes to 100% RED.
Do you understand me?
Thanks for this application and all your job!
G-Star
20th July 2005, 06:36 PM
good work, guys, keep it up! i always hated to install spb plus on my 2003se since it was just too big and too much stuff i did not need - but i liked the power bar! now i found the perfect replacement :-)
cheers, lutz
that's exactly my opinion - but I didn't install spbPlus cos of the other stuff ...
tried to recover and extract it from the Spb CAB - but failed :x
now I'm VERY hapy to see this tiny thing :D
jelp
22nd July 2005, 02:18 AM
Hi all!
I think the best option is to have a little configuration screen where we can choose what lines / options we want to see.
An example:
- [ ] Battery
- [ ] Backup Battery
- [ ] Storage
- [ ] Memory
- [ ] Other Stuff that Buzz will add :P
With checkboxes (show or not) or comboboxes (to choose the order to display).
It can also have a color chooser to wich option.
...
Excellent idea that I was to suggest while I read the posts.
I'll add the option to choose:
() display on top of screen
() display on bottom of screen
as I use GigaBar and it does cover the top and does it OVER any other utils.
TIA.
humayunl
2nd August 2005, 05:27 PM
There is this very interesting blog on the various SLEEP states of WM5 on the MS Blog site.
Here's the link.
http://blogs.msdn.com/windowsmobile/archive/2005/08/01/446240.aspx
I thikn since we were talking about the battery drain with the e_status utility. I think if the concepts discussed in this blog are incorporated into e_status (that means you BUZZ, please please cause i love that e)status utility)... then it would be too awesome!
humayunl
2nd August 2005, 05:43 PM
Hey pope,
I like the new version you have made. Especially the newer and more power efficient version you posted on Buzz.dev
The only thing is that on the top bar, it causes a lot of flicker due to lots of activity in that area. Can you please make a variation with the bar showing at the bottom?
I think this tool is awesome and I am very eagerly waiting for this little flicker resolution (by placing it at the bottom) so I can start using it again.
Thanks alot.
Pope
3rd August 2005, 11:14 AM
Here ya go - a version to sit at the bottom of the screen.
I haven't tested the CAB file which I quickly knocked together to install it, but it should work fine - any problems let me know
humayunl
4th August 2005, 07:54 AM
Thanks Pope. It works perfectly and looks great at the bottom too!
I just hope it consumes less battery :) Only been installed for 45 seconds so far, so I cant tell. But i'll let you know if the power consumption is high and noticeable.
phey_05
5th August 2005, 06:59 AM
can please anyone share how to install CAb file to my XDAII?
I been searching a topic for this almost a day.
thank in advance
rhmartin
5th August 2005, 07:40 AM
can please anyone share how to install CAb file to my XDAII?
I been searching a topic for this almost a day.
thank in advance
'tol,
just copy the cab file to your device & run it, it'll install it 4 you. good luck.
phey_05
5th August 2005, 12:45 PM
i got it.
I thought I need to unzip the files in my desktop then place it to the device.
He he he.
Another problem.
I cant remove the other battery indicator in my device pls help
phey_05
5th August 2005, 12:49 PM
the first application that i install is powerstatus.exe
pls help me on how to remove this appli.
thanx in advance
spliffyhead
5th August 2005, 08:07 PM
hi :roll:
go to start/ settings / system/ remove programs
Viola
phey_05
6th August 2005, 12:27 AM
Sir spliffyhead have you ever try the powerstatus.exe appli?
I cant locate it to the remove programs.
That’s why im asking for some more information about removing this kind of application.
thanx
phey_05
6th August 2005, 01:51 AM
can anyone pls help me?
thanx in advance
Putra
6th August 2005, 09:18 AM
Here ya go - a version to sit at the bottom of the screen.
I haven't tested the CAB file which I quickly knocked together to install it, but it should work fine - any problems let me know
Thanx Pope for the nifty mod. But I discovered a bug. If I switch to landscape and back to potrait, the bar is no longer at the bottom, but about 1/3 screen from the bottom. Does it do the same thing on yours?
I'm still on 2003SE, btw. Thanx.
pschoch
6th August 2005, 09:55 AM
I'm on WM5 1.60a. The battery meter shows on portrait, it does not show on landscape. Cheers Pat
rhmartin
6th August 2005, 05:39 PM
can anyone pls help me?
thanx in advance
Have you checked our PM & tried my advice?
rhmartin
6th August 2005, 05:39 PM
can anyone pls help me?
thanx in advance
Have you checked your PM & tried my advice?
phey_05
6th August 2005, 11:50 PM
yes sir, you have PM
phey_05
7th August 2005, 02:04 AM
I’m trying your suggestion, I already soft reset my device by pressing the soft reset button in the lower part of my XDA, and right after that, I locate the file using file explorer in the startup folder under the windows
It says here
Cannot delete ‘power status’
There has been sharing violation.
The source or destination file may be in use.
I hope I can solve this problem, rather than making a hard reset.
Please Help…
OT:
Sir what software are you using to convert DVD movies to PPC format?
I downloaded the DVD to PocketPC 1.2.4 software and its crack, suddenly the crack wont work perfectly, that’s why the my DVD to PocketPC 1.2.4 software is just a demo version until now.
phey_05
7th August 2005, 02:05 AM
I’m trying your suggestion, I already soft reset my device by pressing the soft reset button in the lower part of my XDA, and right after that, I locate the file using file explorer in the startup folder under the windows
It says here
Cannot delete ‘power status’
There has been sharing violation.
The source or destination file may be in use.
I hope I can solve this problem, rather than making a hard reset.
Please Help…
OT:
Sir what software are you using to convert DVD movies to PPC format?
I downloaded the DVD to PocketPC 1.2.4 software and its crack, suddenly the crack wont work perfectly, that’s why the my DVD to PocketPC 1.2.4 software is just a demo version until now.
rhmartin
7th August 2005, 09:38 AM
It says here
Cannot delete ‘power status’
There has been sharing violation.
The source or destination file may be in use.
I hope I can solve this problem, rather than making a hard reset.
Please Help…
you have to delete the powerstatus link at \windows\startup & soft reset (using software tools, not through the reset hole) before you can remove the exe file.
phey_05
8th August 2005, 01:05 AM
you have to delete the powerstatus link at \windows\startup & soft reset (using software tools, not through the reset hole) before you can remove the exe file.
using software tools
like file explorer? that`s the procedure that im doing and yet i cant remove the appli.[/img]
phey_05
8th August 2005, 01:18 AM
here are the files:
http://image58.webshots.com/58/8/21/77/416082177bpFsfu_ph.jpg
i rename the powerstatus to power
eto link
http://community.webshots.com/photo/415872777/416082177bpFsfu
phey_05
9th August 2005, 12:36 AM
anyone?
phey_05
9th August 2005, 11:29 PM
problem solved thanx to sir ronald martinez
Mallow1
12th August 2005, 06:42 PM
Here ya go... a slight variant I made.
http://www1.cmshostix.net/images/batterystatus.gif
- Just shows battery status
- Multi-coloured bar - red section is 10%, yellow section is 15% more, green is the rest
- Bar starts to the right of the "Start" button as per the pocket plus version
- When on battery power, it "does less work" in order to preserve the battery, this does mean however that it updates the screen less often and so any flickering may be more apparent.
Also BatteryStatus2002 is a slightly different version which will run on PPC2002 :)
Hi and thanks to Awojtas/Buzz/Pope (and of course Intek),
I've been using Pope's last version (for WM5) and luv it. Any chance of a minor mod though? Such that when on charge the bar doesn't scan across the full width (0%-100%) but only from the current charge level onwards (%charged-100%) so that u can see how close to full charge u r without having to take it out off the cradle/ off charge?
If not nobody has time, I'm going to try it myself anyway but I have a lot to learn first so it may take me some time as I'm only starting out.
Many thanks once again.
Cheers - Mallow1
PS if you beat me to it I'd appreciate it if u wud post the code again so I can learn from the amendments
Tanker Bob
14th August 2005, 11:13 PM
Hey pope,
I like the new version you have made. Especially the newer and more power efficient version you posted on Buzz.dev
The only thing is that on the top bar, it causes a lot of flicker due to lots of activity in that area. Can you please make a variation with the bar showing at the bottom?
I think this tool is awesome and I am very eagerly waiting for this little flicker resolution (by placing it at the bottom) so I can start using it again.
Thanks alot.
Do you have a link for the version on Buzz.dev? Thanks.
Mallow1
15th August 2005, 12:03 AM
Do you have a link for the version on Buzz.dev? Thanks.
Can't swear to it as exactly the one you are looking for but it looks like it...
http://buzzdev.net/index.php?option=com_simpleboard&Itemid=&func=view&catid=26&id=1335#1335
Ignore the first download posting as it simply refs back to this site but the (currently) last post doesn't and looks like Pope's version for the bar set at the bottom (posting by pschoch, 2005/08/04 16:17). Off there myself now.
Pope, like it lots. Many thanks. Pschoch, thanks too.
Cheers - Mallow1
Tanker Bob
15th August 2005, 01:10 AM
Do you have a link for the version on Buzz.dev? Thanks.
Can't swear to it as exactly the one you are looking for but it looks like it...
http://buzzdev.net/index.php?option=com_simpleboard&Itemid=&func=view&catid=26&id=1335#1335
Ignore the first download posting as it simply refs back to this site but the (currently) last post doesn't and looks like Pope's version for the bar set at the bottom (posting by pschoch, 2005/08/04 16:17). Off there myself now.
Pope, like it lots. Many thanks. Pschoch, thanks too.
Cheers - Mallow1
Got it. Thanks to all for the great work!
rhmartin
15th August 2005, 12:48 PM
dear friends,
has anyone ever tested cpu load while using these various SPB replacement battery monitor programs?
my experience was that after synch with AS4 the cpu doesn't scale down to 0% load & stays at around 45%, that's what XCPUScalar is showing. it's draining the battery faster than if you don't have it or if using the orig SPB batt meter.
can anybody else confirm?
saifias
5th September 2005, 09:57 AM
u have to kill the powerstatus process to remove it. first try renaming it, softreset & then delete from windows/startup folder. if renaming doesn't work, use memmaid or PHM taskmanager to kill the process powerstatus.exe. then delete the exe file & softreset. u r clean!
cheers...
pschoch
15th September 2005, 03:49 PM
rhmartin, my XCPU scalar shows levels between 0% - 7%, so I can confirm that the last version uses very low CPU time.
Cheers
Pat
rhmartin
16th September 2005, 12:18 PM
Thanks for the info Pat.
I haven't got any info on anyone else on these kind of programs since the last time i tried one which loads the cpu up to 40%.
Cheers!
-rhmartin-
Mallow1
19th September 2005, 02:53 PM
I'm getting figures floating between 3%-8% (via XCPUScalar)
Doezel
18th November 2005, 11:30 AM
Hello,
Is it possible to add the following features:
1) add a textfile containing processnames. When one of this names is running, E_Status shouldn't write to the screen (for example when navigator.exe is running...)
2) make it possible to change the meaning and the amount of lines. (for example, I want just 1 pixel lines, one for main battery and one for total memory. (just add an ini file)
Is it possible that I get the latest source and make/support it myself (preferable the Buzz Source)?
Thanks,
Thijs.
Doezel
18th November 2005, 06:32 PM
I've been using Pope's last version (for WM5) and luv it. Any chance of a minor mod though? Such that when on charge the bar doesn't scan across the full width (0%-100%) but only from the current charge level onwards (%charged-100%) so that u can see how close to full charge u r without having to take it out off the cradle/ off charge?
I made it going from %charged-100% and back when charging.
Now I only have to figure out how to make it a .cab file, can anybody help?
things to do:
make a textfile next to it containg process names. When a listed process is running, the status shouldn't be drawn to the screen...
Bubisch
19th November 2005, 01:27 AM
Great work! Can you add a version with battery only?
Doezel
21st November 2005, 09:51 AM
Great work! Can you add a version with battery only?
Sure!
and here's the source: (ugly, I know....)
#include "windows.h"
#include "stdafx.h"
int WINAPI WinMain( HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
SYSTEM_POWER_STATUS_EX pst;
int i,j,cx,dx,ex,top,c,st,prc,redpart,grepart;
bool right,full,justbat;
float mfree;
HDC hdc = ::GetDC(NULL);
HPEN pe,pb,po,pm,pb1;
STORE_INFORMATION ss;
MEMORYSTATUS ms;
pe = CreatePen(PS_SOLID,1,RGB(0,255,0)); //green
pm = CreatePen(PS_SOLID,2,RGB(255,0,0)); //red
pb = CreatePen(PS_SOLID,2,RGB(0,0,0)); //black
pb1 = CreatePen(PS_SOLID,1,RGB(0,0,0)); //black
i=30;
top = 319;
c=0;
st=1;
right=true;
full=false;
justbat=false;
j=0;
while(1)
{
i++;
if(i>j){
top= GetSystemMetrics(SM_CYSCREEN)-1;
i=0;
GetSystemPowerStatusEx(&pst,true);
//pst.BatteryLifePercent=10;
if (pst.BatteryLifePercent==100&&pst.ACLineStatus==1) {
full=true;
pst.BatteryLifePercent=0;
} else {
full=false;
}
if (pst.ACLineStatus==1)
{
// when charging, increase cpu load for nice charging...
st=10;
j=10;
if (right) {
if ((pst.BatteryLifePercent+c)>100) {
c=100-pst.BatteryLifePercent;
right=false;
} else {
c+=2;
}
} else {
if (c<1) {
c=0;
right=true;
} else {
c-=5;
}
}
pst.BatteryLifePercent+=c;
if (pst.BatteryLifePercent>100) pst.BatteryLifePercent=100;
} else {
// when not charging, decrease cpu load
st=100;
j=15;
}
prc=pst.BatteryLifePercent;
if (prc>75) {
grepart=255;
redpart=0;
} else if (prc<25) {
grepart=0;
redpart=255;
} else {
if (prc>50) {
grepart=255;
// red should be 0 @ 75
// and 255 @ 50
redpart=(int)(255*(75-prc))/25;
} else {
redpart=255;
// green should be 0 @ 25
// and 255 @ 50
grepart=(int)(255*(prc-25))/25;
}
}
pe = CreatePen(PS_SOLID,1,RGB(redpart,grepart,0)); //green
if (justbat) {
cx = GetSystemMetrics(SM_CXSCREEN);
} else {
cx = GetSystemMetrics(SM_CXSCREEN) / 2;
GetStoreInformation(&ss);
GlobalMemoryStatus(&ms);
mfree = 1.0f/(ss.dwStoreSize+ms.dwTotalPhys)*(ss.dwFreeSize+ms. dwAvailPhys) ;//+ ms.dwMemoryLoad) / 2;
ex = (int)(cx * mfree);
}
dx = (int)(cx * pst.BatteryLifePercent / 100.0);
}
// begin linksboven
MoveToEx(hdc,0,top-1,NULL);
// groene lijn
po = (HPEN)SelectObject(hdc,pe);
LineTo(hdc,dx,top-1);
// zwarte lijn verder
SelectObject(hdc,pb1);
LineTo(hdc,cx,top-1);
if (!full) {
MoveToEx(hdc,0,top,NULL);
//groen
SelectObject(hdc,pe);
LineTo(hdc,dx,top);
//zwart
SelectObject(hdc,pb1);
LineTo(hdc,cx,top);
} else {
MoveToEx(hdc,cx,top,NULL);
SelectObject(hdc,pe);
LineTo(hdc,cx-dx,top);
SelectObject(hdc,pb1);
LineTo(hdc,0,top);
}
if (!justbat) {
MoveToEx(hdc,cx,top,NULL);
SelectObject(hdc,pm);
LineTo(hdc,ex +cx,top);
SelectObject(hdc,pb);
LineTo(hdc,cx*2,top);
SelectObject(hdc,po);
Sleep(st);
}
}
DeleteObject(pe);
DeleteObject(pm);
DeleteObject(pb);
::ReleaseDC(NULL, hdc);
return 0;
}
Doezel
21st November 2005, 04:26 PM
todo:
1) add an ini file with more processes
2) make an option to draw the lines: left, right, top, bottom?
3) add an option to configure what to show
4) implement a task manager/closer?
berkens
21st November 2005, 06:45 PM
Hi guys,
I LOVE the spb pocket plus battery meter along the top. I feel NAKED without it.
But -- it doesn't work with WM2005 :(
Nice program, but...SPB Pocket Plus works fine on my new T-Mobile MDA Vario (with WM2005). Did you try the SPB PP 3.04 (build 4195)?
Greetings Ben...
Doezel
21st November 2005, 08:02 PM
Hi guys,
I LOVE the spb pocket plus battery meter along the top. I feel NAKED without it.
But -- it doesn't work with WM2005 :(
Nice program, but...SPB Pocket Plus works fine on my new T-Mobile MDA Vario (with WM2005). Did you try the SPB PP 3.04 (build 4195)?
Greetings Ben...
Hello Ben,
the nice thing about this program is that it ONLY shows your battery and memory status, and that was the only thing I would use SPB plus for.
(and this program uses VERY little memory... :lol: )
Doezel
20th December 2005, 03:22 PM
following a question of SH500:
here's a version which only shows the battery meter, on top of the screen, and doesn't show an animation when fully charged.
DocteurN
23rd December 2005, 10:43 PM
Doezel > I'm using EE_Stat_JustBat_OnTop.exe on my Qtek 9100.
Could it be possible to do the same one but not visible when TomTom is launched ?
Another question : How do you kill this app ? I can't find a way...
Thanks :wink:
KTamas
23rd December 2005, 11:48 PM
Another question : How do you kill this app ? I can't find a way...
Delete it from \Windows\Startup.
DocteurN
24th December 2005, 08:28 AM
Thanks for your answer KTamas but this is how to unsinstall it.
I mean how to you stop the app when it's running without making a soft reset ? :idea:
KTamas
24th December 2005, 08:37 AM
Thanks for your answer KTamas but this is how to "desinstall" it.
I mean how to you stop the app when it's running without making a soft reset ? :idea:
Oh, sorry.
Get a task manager such as PHM Task manager, that is capabile to kill any process if i remember correctly.
DocteurN
24th December 2005, 08:43 AM
Unfortunately the task managers I tried, didn't see the app (XBar 3, PQz...) so I've got no solution...
I'm going to try PHM Task Manager but I thing it would be the same...
KTamas
24th December 2005, 08:45 AM
Unfortunately the task managers I tried, didn't see the app (XBar 3, PQz...) so I've got no solution...
I'm going to try PHM Task Manager but I thing it would be the same...
PHM Task Manager is different, it is much more like the "Task Manager" application in Windows NT/2000/XP.
DocteurN
24th December 2005, 08:49 AM
Just try PHM TM but unfotunately same result, the app is not seen... :cry:
Doezel
24th December 2005, 12:02 PM
Hi,
the application Memmaid will detect this application and can kill it.
And estat should stop when tomtom is running. Doesn't it do that?
DocteurN
24th December 2005, 01:35 PM
Ok, I'm going to test Memaid (I think it's WM5 compatible).
Thanks.
And estat should stop when tomtom is running. Doesn't it do that?No it doesn't...
See :
http://www.pbase.com/gpspassion/image/53861482/original.jpg
Doezel
25th December 2005, 12:59 PM
Well, the e_stat looks for a process named "TOMTOM NAVIGATOR.EXE".
When that process is running, it won't refresh the status.
Can you tell me how your tomtom is named?
I'll make you a custom version.
Bye and a happy christmas!
DocteurN
25th December 2005, 10:37 PM
The application name is TomTom Navigator.exe
Thanks for your proposition :wink:
Merry Christmas too !
Doezel
27th December 2005, 01:49 PM
The application name is TomTom Navigator.exe
Thanks for your proposition :wink:
Merry Christmas too !
This is weird, because it should detect that. Maybe WM5 does something different with the processlist.
I don't have a wm5 device here to debug it.
Once I get my hands on a wm5 device I'll debug it.
Bye!
DocteurN
27th December 2005, 02:06 PM
OK thanks :wink:
Doezel
4th January 2006, 04:41 PM
OK thanks :wink:
Hi,
take a look @ this version. I've tested it with a WM5 device with TomTom 5 running.
Bye,
Thijs.
P.S. be shure that there isn't an old version running!!!
This version is on top, and shows only battery percentage.
vijay555
4th January 2006, 04:44 PM
Doezel: any chance of you showing a screenshot (I'm at work and can't test :()
Is it very different to the original lines?
V
Doezel
4th January 2006, 04:57 PM
Doezel: any chance of you showing a screenshot (I'm at work and can't test :()
Is it very different to the original lines?
V
Hi,
it's not THAT different.
The differences are:
1) Stops when TomTom is running (or at least, it should stop...)
2) uses the same background colour as the statbar when located at the bottom
3) when charging it, it animates till the charged % and then back again to 100% (so not from 0% to 100%)
4) when 100% charged and connected to the power supply, it animates the battery bar with 2-1pixel lines
5) it now has a gradient colour from green, to yellow, to red
6) it contains boolean options in the source for: ontop, justbat and animateWhenFull... (ready to be changed from an INI file or registry or a settings screen or whatever....)
Most of these options are hard to show in a screenshot. You'd have to wait untill you're home :wink: . Here is the latest version with all options on:
EDIT: and now compiled in VS.NET 2005 prof....
EDIT2: and a screenshot...
vijay555
4th January 2006, 05:05 PM
Hmm, I'll look into it. Sounds great!
What's the second icon in your tray?
V
Doezel
4th January 2006, 05:08 PM
Hmm, I'll look into it. Sounds great!
thanks!
What's the second icon in your tray?
V
MortRing 0.97!!! (http://forum.xda-developers.com/viewtopic.php?t=20711)
App for assigning different Ringtones/SMS Tones to every contact.
Doezel
7th January 2006, 02:15 PM
Ok, I'm going to test Memaid (I think it's WM5 compatible).
Thanks.
And estat should stop when tomtom is running. Doesn't it do that?No it doesn't...
See :
http://www.pbase.com/gpspassion/image/53861482/original.jpg
Hi, could you confirm that it's working now?
Mallow1
4th February 2006, 02:02 PM
Hi and thanks to Awojtas/Buzz/Pope (and of course Intek),
I've been using Pope's last version (for WM5) and luv it. Any chance of a minor mod though? Such that when on charge the bar doesn't scan across the full width (0%-100%) but only from the current charge level onwards (%charged-100%) so that u can see how close to full charge u r without having to take it out off the cradle/ off charge?
If not/ nobody has time, I'm going to try it myself anyway but I have a lot to learn first so it may take me some time as I'm only starting out.
Many thanks once again.
Cheers - Mallow1
PS if you beat me to it I'd appreciate it if u wud post the code again so I can learn from the amendments
Hi Doezel,
I've been away from this thread for a while. Now I'm back, THANK YOU THANK YOU, THANK YOU, for creating your various versions (including my request). Works like a charm. Also many thanks for the posted code.
I'm up and running with VS too now and would love a copy of the latest code to carry on learning/ tweaking. Any chance you would post or PM?
Many thanks - Mallow1
PS just curios but when you tested it on WM5 was that via "WM5 Device Emulator" or on a physical machine?
GTASouthPark
20th August 2006, 02:44 AM
Here ya go... a slight variant I made.
http://www1.cmshostix.net/images/batterystatus.gif
- Just shows battery status
- Multi-coloured bar - red section is 10%, yellow section is 15% more, green is the rest
- Bar starts to the right of the "Start" button as per the pocket plus version
- When on battery power, it "does less work" in order to preserve the battery, this does mean however that it updates the screen less often and so any flickering may be more apparent.
Also BatteryStatus2002 is a slightly different version which will run on PPC2002 :)
hey i absolutly love your battery status bar, but there is one thing. can you make it so that it only shows up on the today screen?. that would make it a lot better. because it shows up on movies and everything. thanks.
MacGuy2006
21st September 2006, 10:27 PM
... can you make it so that it only shows up on the today screen?. that would make it a lot better. because it shows up on movies and everything. thanks.
Actually, I love the fact that it runs on other pages, particularly on the phone one (otherwise, I can just use the one that came with my Cingular 8125.)
This is the best and most stable battery indicator I have found (tried and got rid of Batti, since it screws up my background and it turns my backlight to 0.)
But perhaps it can be tailored so that it turns off when playing visual media (photos and movies, it's good to have it on for music though.)
zarraza
9th February 2007, 07:03 AM
How to uninstall it? :(
i just installed it just now, and was less than impressed - and coulnd't figure out how to uninstall
what i did was rename to test.ini (and it took on the name text.ini.exe)
then clicked on and CUT and pasted in another folder
then did a reset and it went away!
Gufer
11th February 2007, 07:27 PM
IT'S ... Wonderfulll . Yes , yes . And file so small .
MicrosoftBug
6th September 2007, 04:47 PM
Hi,
it's not THAT different.
The differences are:
1) Stops when TomTom is running (or at least, it should stop...)
2) uses the same background colour as the statbar when located at the bottom
3) when charging it, it animates till the charged % and then back again to 100% (so not from 0% to 100%)
4) when 100% charged and connected to the power supply, it animates the battery bar with 2-1pixel lines
5) it now has a gradient colour from green, to yellow, to red
6) it contains boolean options in the source for: ontop, justbat and animateWhenFull... (ready to be changed from an INI file or registry or a settings screen or whatever....)
Most of these options are hard to show in a screenshot. You'd have to wait untill you're home :wink: . Here is the latest version with all options on:
EDIT: and now compiled in VS.NET 2005 prof....
EDIT2: and a screenshot...
My question is... how does this work? I have tried making a .ini file with the same name as the .exe and no go. I've also tried putting switches in the shortcut. For example, "\Windows\ee_stat_161.exe" -ontop -justbat -animateWhenFull. I'm mainly just trying to get it to show up on the top. I would love some help on this, thank you!
speechman
21st January 2008, 03:51 AM
I think by boolean he means that it is an option during compilation of the program into an executable file...the switch is not available if it is already compiled and ready to run.
pra5508
27th January 2009, 10:01 PM
Hi. Found this earlier and thought some people may want it.:):)
http://forum.xda-developers.com/showthread.php?t=242892
Or you can download the file below:):)
150959
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.