yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] RobTsintas:
reidler: I did play around with display formats, and got the values down to:

0 / 20 / 40 / -40 / -20 / -1

But that still can't be used to create a stripe due to the positive/negative switch (similarly, multiplying by -1 would just reverse the problem).

ZuinigeRijder: Thanks for the test version. I will give it a try when I get a chance (which won't be until some time next week now).

In the meantime, I have managed to create a workaround with the help of mortscript. I created a script that runs every 10 seconds, reads the volume key and applies one of two formulas depending on whether the value is +ve or -ve.

This then gives me the consistent values I need:

0 / 20 / 40 / 60 / 80 / 100 (and should also work for values in between).

The script then writes this to a new registry key, which is now the key I've told battclock to use. This works, with the following disadvantages:

1. The stripe can only update at 10 second intervals when the key gets updated.

2. I've got a script permanently running in the background, using resources, which I need to remember to run at each reset.

I could reduce the update period in the script, but want to keep the resource drain to a minimum. I'm sure there's also a way to autorun the script, but I haven't looked into it.

Here is the code I used to calculate the "good" values:

While (1)

VolVal = RegRead("HKCU","ControlPanel\Volume","Volume")+"."

VolPercA = VolVal/10000

If (VolVal<0)

VolPerc = Round((VolPercA+429497)/4295)

Else

VolPerc = Round(VolPercA/4295)

EndIf

RegWriteDWord("HKCU","ControlPanel\Volume","VolumePerc",VolPerc)

Sleep(10000)

EndWhile​

If Volume were to be added as a permanent option in Battclock (rather than going via Regkey), would it be possible to integrate the calculation formula above, to bypass the need for my Mortscript?
[Windows Mobile Apps and Games] ZuinigeRijder:
Yes, I meant to use one of the items you do not use and use the display format to get your fixed text. You can best use an item which does not take much time to compute, so a date is fine.

You can post a screenshot of what you have now, so people can react on what is cool and what can be improved. And it can give ideas for others.....

Yes, WM 5 and onwards is supported.

However, on non-touchscreen phones, probably BattConfig will not work, because not all controls are available on that phone type. BattConfig uses .NET 2.0 CF, but non-touchscreen phones do not have all controls. So in that case you need to configure BattClock.exe via the registry. Probably a version which still has all the registry settings in the registry is than more handy.

I looked up the spec for the Palm Treo Pro. It has a 320x320 touchscreen. So this will work with BattClock.

You can try the zip version for experimenting. Because that is just copy/paste to your phone memory and starting it manually. If everything is working fine, you can remove the copied files and install the CAB version.

No, the + sign is not working. I will fix that in a next update. However, you can just type in the needed value. Thanks for pointing out.
[Windows Mobile Apps and Games] ephestione:
exactly, mostly for the un-filled stripes; not that I need them as much as the digits, yet since they're there, it would be a waste not to use them for some graphic pimping ;)

This of course makes sense onnly if styling the stripes with background bitmaps doesn't bloat the need for resources.
[Windows Mobile Apps and Games] RobTsintas:
PS. I had to update my code in the post above, as it wasn't working properly for all values. Seems to be fine now.
[Windows Mobile Apps and Games] sxtheone:
Hi,ZuinigeRijder,

Currently I set the content column's height to 12, only to find it's very difficult to click on the area to trigger a command. The problem is, after two years heavy usage, my device's LCD screen isn't as accurate as it used to be.

If I change the column's height to 46, it's ok. But I wonder if there is something inside battclock that can be tuned for old LCD screens.

Thanks.
[Windows Mobile Apps and Games] reidler:
I wonder if there was also an ADD and SUBTRACT option available besides the Multiply and Divide options - would that help you? Once you get your numbers down to 40 20 0 -20 -40 etc You can add an addition factor - in my example of +40 to bring your numbers to 0 20 40 60 80). I'm sorry to give more wish list items to ZuinigeRijder - especially since I also have that registry problem wish list to fix.

Your Mort Script idea is quite good and thanks for sharing the code. (Could you also please post the updated code?). I understand your concern with resources.

Maybe I should invest time in to reading the Mortscript manual. I wonder if I would be able to build a program to do the vibrations in a more desired way. Do you know how strong Mortscript's abilities are? Would I be able to accomplish such a goal?

Good luck.

Eli
[Windows Mobile Apps and Games] reidler:
I'm glad that I figured out your idea correctly for the letters.

Umm, I'm sorry I don't know how to post a screen shot from my phone.

I'm glad Battclock will work on the Palm Pro. Yes, he does have a touch screen as you discovered. I'll email him the cab. My old phone was a Treo Palm 800w with the same 300x300 resolution & touchscreen. Maybe I'll test it out there.

About that plus sign. I've been doing so much experimenting that I think I've touched every area of the program. (Actually I know I haven't). I'm sorry to point out bugs. (I did type the number in that field the way you said).

Using your ideas and some of the other ideas I've read in this forum I set up for my message alert fields to go grey when the number is 0 and then go bright green when it's 1 or more. I love that feature. Thanks to the user who pointed it out. That gets my attention easily. The ability to be able to quickly and easily see what messages I have really helps me a lot to notice that important information if I leave the phone on my desk and come back to see what messages, missed calls, etc happened while I was away. Seeing the actual number suits best. I'm not sure I'll continue the stripes for that purpose but I'm glad I experimented with stripes. Now I learned how to set that up when I think of the next idea to use it for.

As I mentioned, when my phone starts in the morning the Reminders number does not get updated since the Registry key starts off undefined. So what I do is I wait for a reminder to come and then I start Battconfig and adjust something - anything - like I'll adjust a stripe by checking and unchecking the solid stripe box. Soon as I do that Battclock immediately wakes up to find the registry entry for Reminders and then it is able to display and keep track of it immediately. It makes it look so easy! Albeit still with the 0/1 problem. But at least I know if it's 2 or more that it's accurate. Hmm. I wonder if I should also build a Mortscript script to monitor that registry key and build another key for Battclock to use? I would also have the resource drain question.

And to think of it - all I was looking for a few weeks ago was a way to display the battery level and clock! And I discovered Battclock with so much more. Thank you very much again for the program and for your help/support and for your updates and fixes.

Eli
[Windows Mobile Apps and Games] Myster:
I have updated to latest version but for some reason my WiFi meters do not respond anymore . I reset settings , restarted but no luck

I am on a HTC Topaz with cooked ROM , but i think this is not the reason since it worked in previous version

Any ideas ??
[Windows Mobile Apps and Games] RobTsintas:
Mortscript is pretty versatile. I've used scripts for various things, like bringing up the lockscreen (or not, if my media player is running) before putting my phone to standby (or screen off). This also included varying length vibrations. But this is off topic for this thread now - yes you should read the manual and also look here for suggestions & solutions:

http://xdaforums.com/showthread.php?t=289197

Regarding addition - that still wouldn't be ideal, since the resulting scale would be reversed with no volume at 0 and full volume at 100.

I'm happy with my workaround for now, but I'd be even happier if it was just integrated into BattClock as a preset option....

Maybe a donation is in order! :D
[Windows Mobile Apps and Games] ZuinigeRijder:
Did you try to recalibrate/align the Touch Screen?

You can do that via WM -> Start -> Settings -> System -> Screen -> Align screen

or something like that (I have a dutch phone, so I do not know if the translation is ok).
[Windows Mobile Apps and Games] ZuinigeRijder:
I use MyMobiler for that. You can run MyMobiler on a windows PC and via Activesync you can control your mobile phone and make screenshots.

Here are other tools described, I am sure there are more around.
[Windows Mobile Apps and Games] ZuinigeRijder:
Wifi meters are working on my Touch Diamond. Did you try to install an older version of BattClock (that worked), because it can be related to your cooked ROM. If that is also not working, you can enable debug logging, reproduce the scenario and post it here.
[Windows Mobile Apps and Games] reidler:
Could you please elaborate on "varying length vibrations" that you did. I'm so glad I found Battclock. The next thing that would just about make me completely happy with my phone would be a program to control vibrate patterns.

I looked at the Mortscript site you suggested. That took me to a third site on treocentral. A guy named Hannip did a lot of work with Mortscripts and is a big fan of it. I think Hannip might be the guy who wrote Treo Alert. That's an excellent program I used on my old Treo 800w (Windows Mobile) phone. It worked perfectly and allowed me to perfect all of the alerts, vibrations, LEDs, etc. I guess I need to find time to invest in studying the manual. The mortscript program I downloaded is 67K. Is that right? When I ran it it ended immediately and I don't see anything running in the task manager. It seems to have just assigned the .mscr extensions to something. I did run a quick .mscr that worked.

Anyway, back to Battclock. I did set it up on my old 320x320 Treo 800w and it works! My friend is happy to hear that. He'll set it up on his Palm Pro.

I am so happy with my phone now that I've got all the normal information displayed on it. Day, date, time and number of reminders, emails, texts, missed calls, voice mails. The way Battclock lets me grey it out when 0 and turn bright green when it's 1 or more - is just great. I left the stripes on as well. Because it looke so nice. Thanks.
[Windows Mobile Apps and Games] ZuinigeRijder:
I have a solution for the Volume problem. I tested locally and it works.

What I have changed is to do unsigned integer arithmetic instead of signed in "Multiply By/Divide By" calculation. So that makes it possible to show registry key HKCU\ControlPanel\Volume\Volume as a number between 0 and 100 (configure registry key and "DivideBy" 42949672).

Did you already check if the test version with unsigned stripes is working?
[Windows Mobile Apps and Games] RobTsintas:
I'm not sure what "unsigned" means - can you elaborate?

I have now tried the test version, which allows me to divide by 42949672. This still does not work, for the following reasons:

1. Resulting values (displayed in a box) are now:

Vol --> Value

0% --> 0

20% --> 20

40% --> 40

60% --> -40

80% --> -20

100% --> -1

Still not 0 to 100!

2. When displayed as a stripe, it does not seem to respond to the divide-by value. Even for 0/20/40, which should be fine, I get empty/full stripe/full stripe. So it looks like the stripe is still using the original registry values.

3. Other than using a conditional 2-part formula (as in my MortScript workaround), I can't see any way to convert the actual registry values to a uniform scale:

Using a simple multiply, divide, or even add/subtract just isn't going to work.

This is why it needs a built-in Volume value that BattClock calculates programatically.

UNLESS it's possible to query the HEX values in the registry rather than the decimal values.

Does this make sense, or am I missing something? :confused:
[Windows Mobile Apps and Games] ZuinigeRijder:
FFFFFFFF as registry value means:

for signed: -1

for unsigned: 4294967295

You can check in Windows PC Calculator what that means.

Windows PC -> Start -> Programs -> Accessories -> Calculator

Switch to Scientific (View -> Scientific)

Enter -1 and switch to Hex by selecting that. You will see a lot of F.

No, I have a local version where that is working for. The test version was only about the stripes being able to show info between 0 and 100.

Correct, the DivideBy is only applicable for BattCLock info items, not for the stripes. For the Stripes you should input the High value in the Stripes Setting screen:

4294967295

So it will scale between 0 and 100%.

I have a local fix which works and will be in the next update of BattClock, by doing unsigned arithmetic.
[Windows Mobile Apps and Games] reidler:
I hope this does get fixed. I would love to have a volume meter (stripe) next to the Sound/Vibrate symbol. It's good information to be able to see at a glance.

Which volume are you talking about? There are several. Earpiece, Ring, System alerts, Speaker and maybe more.

Good luck. Please let us know. I'm sure many people would like to add such a feature.

Eli
[Windows Mobile Apps and Games] ZuinigeRijder:
Current approach of DivideBy and Multiply is done only for the battclock info. It makes sense to do the same for stripes (use the same info). In stripes you can still specify the Min/Max, so it can scale between 0 and 100. What do people think, does that make sense to apply also the DivideBy and Multiply on the stripe value?

I tested with setting the registry key 3 to HKCU\CurrentControl\Volume\Volume.
[Windows Mobile Apps and Games] countalmaviva:
reidler, I use My Mobiler, as ZuinigeRijder suggested, but I also have G-Trigger on my phone, which, among many other things, will save screenshots to your memory card. It is an excellent app - almost as excellent as BattClock! ;)
[Windows Mobile Apps and Games] ephestione:
as a non-stripe-user (would like skinnable BG to play with them) I don't think multiplication would make the difference.

While you read numbers in the data areas, and you are supposed to understand those numbers right away (hence dividing by 3600*24 if you want to display days starting from seconds), when you display a stripe you are showing an analogic representation of a value between two known, minimum and maximum values.

So, as you could multiply by X the value of the stripe, you could as well divide by the same X the value of the minimum and maximum instead ;) Result would be the same.
[Windows Mobile Apps and Games] RobTsintas:
ephestione: I appreciate that the result is the same, but when the values are large (as for volume), it is difficult to enter these figures in the the stripe min/max boxes (box is too small to check that the whole number is entered correctly), so I would still prefer the multiply/divide settings to be reflected by the stripe.

ZuinigeRijder: I look forward to the next update! Thanks for your work on this.
[Windows Mobile Apps and Games] ephestione:
in that case, making the box larger with a simple UI width change would still be simpler than implementing a whole new function :D

You're not a programmer are you ;)
[Windows Mobile Apps and Games] reidler:
To stick my 2 cents in - (I am a programmer but don't know how to program for phones). There will still be programming needed to change it to do the unsigned arithmetic. Still it makes sense to add the multiply/divide to the stripes just as it is in the other fields. More options are better. You never know if someone finds another register that needs it.

Though it might be nice if volume became a pre-set field (which may be a nice idea also), still there will be other registers that need to be adjusted. Having the tools to be able to adjust them helps for the future for other things.

A quick example is: there is more than one volume register. One for earpiece, speakerphone, system speaker, ring volume, etc.

I'm sorry to suggest more work but this is a great product. VERY robust. This seems like a logical request to make it even that much better.

Eli
[Windows Mobile Apps and Games] reidler:
It's been quiet the last two days. Any news on updates for the unsigned mathematics?

Any news on disappearing registers?

We're snowed in here in Baltimore, Maryland. 12 inches. Not as bad as last year's 30 inches.

Someone mentioned something about the mobile and wifi registers. My mobile registers have some questionable numbers in them.

Mobile Kbytes received total: -938688512

Mobile kbytes sent total: 259981485

Mobile kbytes total: 1224736932

Mobile connect time total: 30.

Are these numbers being gotten from the right registers? The connect time of 30 for example has not moved since last night and I've been on the phone for a while.

Take care,

Eli
[Windows Mobile Apps and Games] Tokl:
Hi,

Hmm, mine is counting Mobile time and kb correctly, and im using it alot (GB/always ON).

Seems like yours is counting TB :D

Wifi im not sure - not often used.

Did you reset the counters and looked if they count right again?

Snow, jeah its snowing also little here (Germany), but today its to warm to let it stay ~+1°C

Greetz Tokl
[Windows Mobile Apps and Games] reidler:
It says kbytes and I didn't change anything to show bytes. There was also a negative number there. ? The negative number might have something to do with signed/unsigned numbers but I don't believe I could possibly be using that much data. Also the phone usage was on 30 and not changing as I was on the phone. I clicked on RESET and they were all zeroed out. No I don't see the numbers changing. I wonder if on my phone (Sprint Touch Pro 2) if the registers might be different registers. These are preset fields and I don't know which registers Battclock is looking at for these numbers.

Warmed up here too and the snow is melting. A lot of work to shovel out the car.
[Windows Mobile Apps and Games] Tokl:
1224736932 KB / 1024 = 1196032 MB = 1168GB = 1,14 TB :eek:

Hmm, I want to have your Phone and Provider !!! :p

No, just kidding, maybe that is possible in 10 Years with LTE-Advanced (600Mbps:eek:)

So, for whatever reason, there was an wrong entry...

If i remember right, its counting only when you have activated some contend who shows up Mobile Data (cant test right now because im Booted to Android;) )

Greetz Tokl
[Windows Mobile Apps and Games] mastered000:
How do i reset battclock if uninstall and install same valute are there.

It tells inhoud is not good i type something wrong now i can't chance stuff when i do it locks down.

it works good but i use 1 2 3 4 5 6 regkey to see it but down. SO need a reset or remove some regkey or files. what must i do?

How do i chance the language in english have english rom but it go to dutch???

Hoe kan is het software resetten.

Het werkte helemaal goed het programma, maar ik testen de regkey's 1 2 3 4 5 6 om te zien wat ze doen.

Programma werkt nog maar ik kan niets meer veranderen.

Soms krijg ik fout melding inhoud is te groot of zo iets.

Heb alles al uninstall gedaan en weer install en bestanden weg gehaald in programma's files.

Moet ergens nog iets staan wat weg moet iets van regkey ofzo.

Ik heb een engels rom en alles is engels maar dit programma naar zelf naar nederlands hoe kan ik dit in engels zetten.

bedankt
[Windows Mobile Apps and Games] ZuinigeRijder:
You can remove with a registry editor Reg Key 1 till Reg Key 6 under:

HKEY_CURRENT_USER\Software\ZuinigeRijder\BattClock3

Total Reset of settings is possible via BattConfig -> About -> Reset

Or with a registry editor remove the registry tree:

HKEY_CURRENT_USER\Software\ZuinigeRijder\BattClock3

You can remove the language files in the subdirectory nl in the location where BattClock is installed (e.g. Program Files\BattClock\nl)

Je kunt met een register editor Reg Key 1 tot en met 6 verwijderen onder:

HKEY_CURRENT_USER\Software\ZuinigeRijder\BattClock3

Totale herstellen van settings is mogelijk via BattConfig -> Over -> Herstellen

Of met een register editor verwijder de register boom:

HKEY_CURRENT_USER\Software\ZuinigeRijder\BattClock3

Je kunt de taal files verwijderen in subdirectory nl in de locatie waat BattClock geinstalleerd is (bijvoorbeeld Program Files\BattClock\nl)
[Windows Mobile Apps and Games] ZuinigeRijder:
I am busy at work sorting out new things, so I had not much time to spent time on BattClock. I am busy with the transparent stripes. I made changes for the unsigned stuff and it is now possible to have an non existing registry value. But I need to test those.

Those huge numbers (or negative) means that somehow the registry values for the counters contain huge numbers. You can reset those (via registry editor or BattConfig).

Indeed counting only works if your monitor those values.
[Windows Mobile Apps and Games] reidler:
Thanks very much. I await the fixes to come. Thanks so much for working on them. When the unsigned stuff is able to work I will change my stripes to show the volume settings. Before I do I hope to install My Mobiler so I can take a snapshot of the stripes I have now for the alerts so I can show you what I did. I might try to keep it the same format for the stripes when I switch them to show volume settings. We'll see when we get to it.

Thanks for working on it. Have a nice weekend.

Eli
[Windows Mobile Apps and Games] DennisSclan8:
THE BEST

Most awesome work sir, THANK YOU, enjoying your app to the fullest (aside from the learning curve and configuration), however brillant piece of work that accentuates my TP2 running 6.5 / Sense configuration Long Live Windows!!!

THANK YOU !!!!!:D:D:D
[Windows Mobile Apps and Games] pupakota:
..this is funny, new wm users do not know, that good apps were nothing special until HTC took market.

ehhh.

btw screenshot from my BC config(all i need is..a clock):
[Windows Mobile Apps and Games] mastered000:
Thx for the reset tips work great now.

Is there a way to automatic the reset of the wifi and mobile data?

Let say every 12 off the month?
[Windows Mobile Apps and Games] Tokl:
Hi,

No there is no option inside BattClock to do that...

Another possibility is to set up an Mortscript for clearing those registry entries.

But its a bit tricky...

Greetz Tokl
[Windows Mobile Apps and Games] ephestione:
Quick bug report, using the latest version and tried to enable logging of battery current (so that there's a check on the side of "log to file" just for "battery current" and none of the remaining values).

What happens is that when I close battconfig and re-open it, battery current logging is disabled and instead I see the check on "battery current force"; anyway, nothing gets really logged, as the battclock.csv file is always 0 bytes.

And since I'm at it, fast request: would it be possible to enable a "log only if value canged" option? Especially useful if you want to log like me battery stats (current and percentage).
[Windows Mobile Apps and Games] Tokl:
Hi,

make sure battclock is not running while opening the battclock.csv -> or just copy it to another place and then open it (file its already opened by battclock and because of this not accessible, so you see an empty file)

Indeed there is an bug with changing/saving the checks on battconfig when using logs. i have to "play around" a while for changing the actual value what should be logged...

after some opening and closing of battclock and battconfig it is accepting the new values what should be logged :confused:

Greetz Tokl

Edit:

Mine is only adding an new entry in logfile when the value has canged (like ZuinigeRijder write in documentation):