yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] ephestione:
I see what you mean, gotta give it a shot, will remove battclock from the startup folder and test it out ;)

ehr :rolleyes:

Ok, call me silly, I deserve it :D

Anyway, another request is just popping out of my mind: since the silly WM5 architecture, which is at the base of Wm6.5 as well, centers around the concept of virtual memory, in a way that the physical free ram doesn't matter that much (in fact I get apps being closed when I have as much as 210MB free ram), is there a way to let battclock show "free virtual memory" as well?
[Windows Mobile Apps and Games] ZuinigeRijder:
Normally, the phone should go into a deep sleep and then will only use battery for the radio reception. However, if your phone awakes often then it will also use more battery.

I do not see that BattClock uses much more CPU when the stripes are shown. The battery drainage will be mainly because the LCD screen is on. And yes, over time the battery becomes less.

You can try to enable logging to file, to see if the phone awakes regularly when it should not, e.g. at night. Just enable the Battery consumption in mA and you will see in the log file when it awakes.

But probably your battery is not good enough anymore.
[Windows Mobile Apps and Games] jcmm:
Hello ZuinigeRijder,

Although my battery does not have much time (13 months), if I use the device enough, so yesterday I proceeded to change the battery for a new one, and observe if after several loads (normal for new battery) lasts longer than usual load of use that I put into my device.

I try to have the screen brightness as low as possible, not to have active programs in the background (except their own operating system and any pending alarm, is less than half a dozen), and not completely turning off the device, only the screen (button normal graceful, not total). The radio (phone) I have it off at night (except when I'm traveling), and the Wi-Fi / Bluetooth always off when not in use. GPS also off forever. Not think of more to save battery consumption.

The query range of the battery in BattClock I have it set to 120 seconds, is that correct?.

Sincerely,
[Windows Mobile Apps and Games] Tubgirl:
Hi there... I've just changed ROM on my HD2 from WM6.5 to WM6.5.x.

Now since the taskbar is more narrow I'll need to go from 3 rows to only 2 rows in the BattClock area.

Not sure if I can configure it like this, but it it possible to show the Time and Battery% on the first row and the Date on the second row?

Something like this...

13:45 98%

19/07 w29

Format String 1 would start with %H:%M but what should I type to get the Battery% on the same row?

Format String 2 would of course look like this... %d/%m w%W

Brgds... /Tubgirl
[Windows Mobile Apps and Games] ephestione:
uhm... not possible afaik, yet Zuinige has the last word.

If it can't be made now tho, yours would be a great feature suggestion, adding other arbitrary values inside format strings, not only datetime but also system info :)
[Windows Mobile Apps and Games] helix111:
Hi ZuinigeRijder,

I have a real quick question. You know how WM 6.5 Titanium shows the underlying pictures in the top bar via their transparency effect? Well, does BattClock have the ability to take advantage of this transparency and allow the underlying picture to show thru?

I know you have the "detect background" feature, but somehow I haven't yet been able to make it work to show the background. Is that what this feature is supposed to do, show the background graphic?

If so, how'd I make it work? Thanks for your help.

BTW, I see you answered my previous post about the formatting. Sorry for not replying sooner. I increased the size of the font and I believe I kept the same font, Tahoma. I don't remember if this was the default font.
[Windows Mobile Apps and Games] ZuinigeRijder:
You cannot get real transparency, but you can just configure a background matching your theme. But that means some work for you to get the same theme you have by some Photo Shopping ;)

Like this one:
[Windows Mobile Apps and Games] ZuinigeRijder:
Once per 2 minutes is Ok.
[Windows Mobile Apps and Games] ZuinigeRijder:
I had that idea in the beginning, but then all the updates need to be done by substituting values runtime each time. With the current approach I know exactly what to write where and this gives less overhead (CPU cycles).

However, I am thinking about configuring the number of Rows AND Columns. Now you have only 1 row with multiple columns or 1 column with multiple rows.
[Windows Mobile Apps and Games] helix111:
About background transparency...

Hello ZuinigeRijder,

Thanks for replying to my previous post about background transparency. Since this doesn't support transparency, then what is "detect background" all about?
[Windows Mobile Apps and Games] ZuinigeRijder:
It detects automatically the color of the pixel (the background color) you specify and uses this. Also when it is changed dynamically. This is only helpful if you have a solid color which changes.
[Windows Mobile Apps and Games] GLO:
Hi Everyone,

I need some help sorting out landscape mode when using 'line'.

I have set it to 480 wide but when i go to landscape mode, it stays at that width. I had initially thought that putting it into lanscape mode then changing the setting to 800 wide would work, but it didnt.

Your help is appreciated.
[Windows Mobile Apps and Games] pupakota:
I do not remember, if i asked about this already, but i would like to solve my problem.

I am using WWE rom with regional settings set to polish(only);

for some weird reason GUI of config is still...WWE, so i am unable to verify my translation..

It makes further translation/fixes impossible, and to be honest, i do not understand this situation...

(post is made for explaining potential ridiculousness of my translation...).
[Windows Mobile Apps and Games] ZuinigeRijder:
You can set the Stripe Width to 0, that way it counts from the left and will take into account the portrait/landscape.
[Windows Mobile Apps and Games] ZuinigeRijder:
First time BattConfig is started after installation, it will remove all not used languages from the installation directory. So if the regional setting is wrong then, it will remove polish.

When you reinstall BattClock you will see in the installation directoy all languages available. So there should be a directory pl.

You can copy this directory to another name, to have a backup.

Make sure your regional settings is set to polish, before you start BattConfig the first time. If alright, it should leave only 1 language directory, namely the directory pl. If not, your regional language setting is apparently not recognised as Polish :confused:
[Windows Mobile Apps and Games] pupakota:
hmm, there's pl folder(only lang there), and plk res inside, but for some reason lang is not activated, config GUI is still wwe.

this is puzzling situation, I was just curious. Personally i prefer WWE.

system: 6.1, 21057.
[Windows Mobile Apps and Games] GLO:
thanks heaps, i will add that since changing that value to 0 my 3 data display has dropped the top data value off, even though the line height hasnt changed from 1 pixel high.

edit. i just had to re-enable the top value, for some odd reason it change to battery from time.
[Windows Mobile Apps and Games] khaeid:
Any new version coming out soon??
[Windows Mobile Apps and Games] gzcyk:
excellent！！tks for your work！
[Windows Mobile Apps and Games] ZuinigeRijder:
Strange that it does not with you. I reinstalled BattClock, changed the setting to Polish and then started BattConfig. And it was polish in BattConfig. Even the day name was in polish :D

So I do not understand why it does not work with your phone. I have a Touch Diamond 6.1. But I have a Dutch ROM. not WWE. But that should not make a difference.
[Windows Mobile Apps and Games] ZuinigeRijder:
I am busy on my work for some time already. So I did now spent only answering support questions. I will pick it up when the project on my work is Released. Hopefully within a few weeks. I have a prototype which measures Wifi and GSM speed/bytes. So be patient.

So Coming soon Version 2.2 *NEW* Wifi/Mobile internet monitor is less soon than I hoped.
[Windows Mobile Apps and Games] pupakota:
ok, let's skip it;

i am just not able to check my translation, so i cannot to make further progress.

I will leave it to someone else then.

i am ok with wwe version.

g'luck, ZuinigeRijder, it's good app.

only thing i would add:

click on sth=launch sth.

effect: ultimate solution for handling things from taskbar.
[Windows Mobile Apps and Games] davidle24:
Looks great,I'm gonna give it a go
[Windows Mobile Apps and Games] sxtheone:
Looking forward to it. :)

Thanks.
[Windows Mobile Apps and Games] helix111:
Change fonts?

ZuinigeRijder,

Your support for the sw is appreciated :-) BTW, I'm curious, can you change the font. Mine defaults to Tahoma, but when I tap on that field to change it in the "fonts" section, the sw locks up, and I have to do a force quit to get out of settings.
[Windows Mobile Apps and Games] ZuinigeRijder:
Yes, I do not have problems.

The available fonts are written in the registry key. You can export the Registry via BattConfig -> About -> Export

My \BattClock.reg.txt in the root of my Phone memory tells me the following fonts are available:

FontsAvailable = "HelveticaNeue LT 35 Thin,Regular;Digital-7,Mono;Tahoma,Standaard;Courier New,Standaard;"

I am curious what is available on your phone. Maybe that gives me a clue :confused:
[Windows Mobile Apps and Games] helix111:
Fonts....

ZuinigeRijder,

Well, all it has listed is Tahoma, with the FontsAvailable showing just 2 double quotes.

I know for a fact that I have NewtonUI font, because I use that on the today screen. Is the reg file that it sspits out supposed to list all the fonts that're available? Also, to change the font in the settings, are you just supposed to tap in the Fonts section on the font listing (ie Tahoma), and it's supposed to list all available fonts? Because again, mine locks up when I do that...or is tgere some other method to change fonts?
[Windows Mobile Apps and Games] helix111:
Update to fonts problem....

Just an update:

I decided to go thru the backdoor, and went to the battclock entries in the registry, esp the fonts.

There, I changed the value of font 2 (for day of the week) from "tahoma" to "newtonUI".

I then terminated "Battclock" and restarted it, but it still showed the day in Tahoma.

HOWEVER, in going into Settings, under Fonts, I see NewtonUI listed for font #2! So why doesn't it then change the day to that font?

Incidentally, Font 2 is for the day, because changing the font size changes the size of the day marker.

I thought for sure this'd do the trick, but not. The puzzling thing is the font listing in settings now shows NewtonUI, but the day is still in Tahoma (??)
[Windows Mobile Apps and Games] ZuinigeRijder:
Apparently, then the Font list I get programmatically is not working on your phone.

HDC hdc = GetDC(NULL);
EnumFontFamilies(hdc, NULL, (FONTENUMPROC)FontEnumProc, NULL);
ReleaseDC(NULL, hdc);

int CALLBACK FontEnumProc(const ENUMLOGFONT FAR *lpelf, const TEXTMETRIC FAR *lpntm, int FontType, LPARAM lParam) {
LOGDEBUG2("Facename", (WCHAR*)lpelf->elfLogFont.lfFaceName);
LOGDEBUG2("Style", (TCHAR*)lpelf->elfStyle);

WCHAR fontsAvailable[1024];
GetSetRegValue(g_lockSettingsKey, "FontsAvailable", fontsAvailable); // get till now

wcscpy(&fontsAvailable[wcslen(fontsAvailable)], (WCHAR*)lpelf->elfLogFont.lfFaceName);
wcscpy(&fontsAvailable[wcslen(fontsAvailable)], L",");
wcscpy(&fontsAvailable[wcslen(fontsAvailable)], (TCHAR*)lpelf->elfStyle);
wcscpy(&fontsAvailable[wcslen(fontsAvailable)], L";");

int len = wcslen(fontsAvailable);
if (len > 255) {
LOGDEBUG2("Fonts available string too large, skipping", len);
} else {
SetRegValue(g_lockSettingsKey, L"FontsAvailable", fontsAvailable); // Write back added info
GetSetRegValue(g_lockSettingsKey, "FontsAvailable", fontsAvailable); // log till now
}
return TRUE;
}

You can enable debug logging, reboot your phone and post the log file. The LOGDEBUG messages in code fragment should be in the logging. Maybe this gives me some extra clue. At least strange it is empty.

Because the list is empty, I expect it therefore clicking the font will freeze the BattConfig program.
[Windows Mobile Apps and Games] helix111:
My bad...

ZuinigeRijder,

I, uh, mispelled the name of the font :O I decided to check the name right after I'd posted. The registry edit works now. BTW, is that the only way to change font? Because I just don't have any success doing it thru Battclock config. It still locks up on me when I tap on the font name.
[Windows Mobile Apps and Games] helix111:
ZuinigeRijder, just saw your post...

I'm doing this on my pda and unfortunately for some reason, I don't see all posts.

Anyway, gathering from your response, tne config program isn't supposed to lock up & the available fonts list isn't supposed to be blank with two empty quotes. I will post logfile.
[Windows Mobile Apps and Games] helix111:
Zuinige Rijder attached, zip of logfile.txt

I had to zip the txt file because it was greater than limit
[Windows Mobile Apps and Games] ZuinigeRijder:
In the log file I see the available fonts logged:

2010-08-07 07:04:13 -317591082 FontsAvailable: Microsoft Sans Serif,Regular;Ipa-sams Uclphon1 SILSophiaL,Regular;Wingdings,Regular;Tahoma,Regular;Courier New,Regular;NewtonUni,Regular;

And I see 5 seconds later is is empty and not filled anymore:

2010-08-07 07:04:18 -317591082 BattClockVersion: *FREE* 2.1.2

2010-08-07 07:04:18 -317591082 FontsAvailable:

I will have to look into my source code why it does not do it the second time.
[Windows Mobile Apps and Games] ZuinigeRijder:
I debugged the source code and I do not know why the FontsAvailable was made empty again. I changed the code however a bit, so it will definitely not be cleared anymore. So that fix will be in the next version.

Actually I continued with the development of BattClock after a period of time not touching it. I had to find a nasty bug before I could continue but now the WIP version is working again. I still want to do an architectural change, namely doing as much as possible not on the UI thread, to keep the phone responsive.
[Windows Mobile Apps and Games] ephestione:
cheers! :D

Got a suggestion for you: add the device uptime (in number of hours) to the values that battclock can display :)
[Windows Mobile Apps and Games] Tubgirl:
Hey ZuinigeRijder

Have you ever thought about programming for Android? I've been playing a lot with Android lately on my HD2 and would LOVE to see a home page Widged that could display as much info as BattClock can. Right now it's pathetic how lame the widgets are. You can't find a widget that can display time, date & battery at the same time for instance. Sell it for a dollar or two at the Market and you'll probably earn some money :)

Brgds... /TubGirl
[Windows Mobile Apps and Games] PMoto:
You have been playing with Android in a HD2?

Great ROM you have.
[Windows Mobile Apps and Games] Tokl:
@ZuinigeRijder

Is it possible to show a new entry with the Milliwatt of the Battery?

Its quite simple: mA X mV \ 1000 = mW

example: 100mA X 3700mV = 370mW

and thx for this great pice of software!

greez tokl
[Windows Mobile Apps and Games] Tubgirl:
You haven't missed the massive Android for HD2 forum on XDA have you? Have a look here --> http://xdaforums.com/forumdisplay.php?f=735

Brgds... /Tubgirl
[Windows Mobile Apps and Games] PMoto:
Right... I know that. I have it to my Topaz too:

http://xdaforums.com/forumdisplay.php?f=623

Anyway... I haven't tested it... so far.

PMoto
[Windows Mobile Apps and Games] ZuinigeRijder:
Is the number of hours BattClock is started also good enough. I do not know if there is a registry key or API how long the device uptime is?
[Windows Mobile Apps and Games] ZuinigeRijder:
As for now I do it only as hobby and to keep in touch with Mobile developments. So I do not earn much with it. Actually, as a professional Software Architect I earn a lot more :rolleyes:

I did think of Mobile development for the iPhone (I did programming in Objective-C in the past) and Android is also popular. But I do not own one of those phones. But if one has a (used) HD to donate..... :D
[Windows Mobile Apps and Games] ZuinigeRijder:
Ok, I will put it on the wish list. Not so difficult ;)
[Windows Mobile Apps and Games] ephestione:
the compromise is good enough :)

The fact is that there is actually no registry key for uptime... or wait, maybe yes, let me check, I once saw it somewhere, I'll get back at you :p

Anyway, most of uptime checking programs write an entry at boot inside a log file, and then compare the current time to that recorded value to get the uptime, but "time since battclock start" sounds good, never ever had to restard battclock until now :D

EDIT: Came back at ya :D

Key is HKLM/System/Uptime/Clock, that's the number of seconds from last boot, at least it gives me 1 day and a half which is quite right, and it keeps increasing with time ;)
[Windows Mobile Apps and Games] Tokl:
Thanks alot :-)

greez Tokl
[Windows Mobile Apps and Games] bRkiX:
How can i change refresh rate of mA field. default is around 15 seconds... how to make it 1 second?

thanks

...read the manual. found solution...use force mode...

thanx
[Windows Mobile Apps and Games] ephestione:
still regarding the device uptime, I made an article about it on my blog: windows mobile uptime registry keys

So it seems you can add a couple more possible values to the info bar, both "uptime since reboot" and "uptime since battery swap" (which is the one I am actually looking for to measure the battery life)
[Windows Mobile Apps and Games] Tokl:
Go to the Registry:

HKLM>Drivers>Builtin>Battery

Change "batterypoll" to 5000 (default on my HD2 is 10000)

seems to refresh every 25 Sec, setting it to an lower value doesnt update faster on my Phone (even in force mode)...

Anyone found a solution how to update faster?

greez Tokl
[Windows Mobile Apps and Games] ZuinigeRijder:
I had a look on the registry values on my Touch Diamond.

Both (Clock and ClockSession) showed 5994. But I did not swap batteries.

Actually, you can show these values already with BattClock, because there are 3 free programmable RegKeys. However, the bare value is shown and you can not do computation on it. Maybe that would be a good enhancement to BattClock, you can multiply or divide it with a value, before it is shown. So you can choose yourself how detailed you want the value to be :cool:
[Windows Mobile Apps and Games] ZuinigeRijder:
Probably this refresh is just the refresh rate of the Windows Mobile applications. BattClock, in force mode, polls every second for the value and it also forces not to use the cache. But apparently the battery driver does have an internal poll time, so despite BattClock asks every second for the non-cached value, the battery driver decides to give back not the latest up-to-date value. I can imagine that this is done to avoid stressing the battery too much. So I think it has all to do with the battery driver and you cannot control this from outside :mad:
[Windows Mobile Apps and Games] ephestione:
yeah I thought that exactly, that you coud show the "raw" number. But then, noone can really estimate a time value going by the tens of thousands of seconds, so simply adding a multiplier (even in the decimal range, which would be the same as dividing) should get the job done even without having to list "uptime" in the discrete values

BTW, yup, if you happen to reboot your phone you will see that "clock" starts again from 0, while "clocksession" continues from the previous value. If you switch battery (unless it's something that only hd2 does) they will be both reset to 0
[Windows Mobile Apps and Games] helix111:
Regarding disappearing fonts....

Hi Zuinige Rijder,

Caught your response about incorporating the correction in an upcoming version; looking forward to it :-)

Thanks for investigating the issue. Til the new version, I'll use the backdoor via the registry when needed.

Hey, one question, I know that in terms of backgrounds, you have Battclock set to detect solid colors, but with these wm 6.5 themes that extend completely from top to bottom with multicolored themes, is it possible to set the display of the characters so that they'll automatically reflect the underlying background colors, regardless of what and how many colors there are? Since you mentioned future releases, I thought I'd ask about the possibility of this feature
[Windows Mobile Apps and Games] ilordvader:
Hello

This is Amazing

I like it, works fine on HD2

Would be nice if we could see the Internet speed

we are getting on the phone :)

Thanks
[Windows Mobile Apps and Games] ZuinigeRijder:
I think this is a s difficult one, because you need to specify a gradient color.
[Windows Mobile Apps and Games] ephestione:
You're a hero :p

As soon as it gets released I'll have a look at the language file to provide you with the newest italian translation (in a timely fashion, at least I'll try ;))
[Windows Mobile Apps and Games] Tokl:
Cool, cant wait for the new Version!!!

If German Translation is needed i can provide support.

Not long ago i show all this things (without the nice Stripes) with HomeScreen++

Right now i use it only for counting the Data Connection and Calltimes, but now it seems everything is possible with BattClock.

Thats really great!

Whats next? Maybe adding Taskmanager funktions?

For now im Happy with BattClock, its one of the "Must have" Programs on my HD2.

Again, thanks for this usefull Software!!!

Greez Tokl
[Windows Mobile Apps and Games] helix111:
One more question...

Out of curiosity, if you need to specify a specific gradient, then how is it that WM and some of the other 3rd party developers who write apps that display info on the taskbar are able to make the background of the letters be transparent so as to show the underlying gradient, whatever it is? I mean, the letters are white, and the underlying background shows through, like for example Greenbattery:

http://xdaforums.com/showthread.php?t=267321&page=2

I'm not trying to annoy you with this Zuinige Rijder, I'm just curious, because it would be tough to have any kind of transparency effect if you had to specify a particular gradient background.

BTW, that is an IMPRESSIVE list of upcoming features :-)
[Windows Mobile Apps and Games] jonto:
With all the Over-Clocking going on now, could you add the CPU speed to the display? Quite a few folks would love ya for that!
[Windows Mobile Apps and Games] ilordvader:
Also make it finger friendly for the HD2 screen

Please
[Windows Mobile Apps and Games] ZuinigeRijder:
German translation would be cool.

I am sure there will be new wishes coming up, even with the new version. What sort of Task Manager functions do you want to be added?
[Windows Mobile Apps and Games] ZuinigeRijder:
The problem with real transparency is, that the information which is shown underneath should be overwritten by BattClock, at least if there is already information beneath (like icons). Although BattClock could have an option to grab the pixels beneath the area BattClock is covering, this will only be possible once and then it still grabs e.g. the icon with it.

So therefore BattClock has the possibility to use a background image. Just grab the background area of the exact BattClock area without BattClock running and use this as Background for the BattClock (Back Image (ClockBackImage = "Full path to image")). So then you will have the transparency effect.You can even photoshop the background image to have an icon look and feel ;)

This is an example how it could look:

Also it is possible already to specify a Gradient color, but it is still difficult to exactly match your theme:

G (ClockBackgroundRight = ClockBackGround)

You can specify a Gradient color, by selecting a different color for the lower right part. By default the color is a vertical gradient. If you change the Background color, automatically the Gradient color is reset. So first set the Background color and then set the lower right color to have a gradient color.