Tip - How to Disable Clock - Windows Mobile Development and Hacking General

Hi folks,
You guys might already know about this but I just discovered how to do it after doing some heavy googling over the past couple of days. Many thanks to the guy at this link who made the discovery!
How to lock down the clock on Windows Mobile devices
I was reading through some of the messages on the microsoft.public.dotnet.framework.compactframework newsgroup when I came upon a real gem of a message.
The key piece of knowledge being, that there is a special registry key, that will disable GUI access for the clock on Windows Mobile devices.
Application State Registry Key for Windows Mobile Clock
HKEY_LOCAL_MACHINE\Software\Microsoft\Clock\
If this is set to 0x11 the clock is enabled, as by default. If it is set to 0x30, or probably anything not 0x11, it is disabled and ignores any attempts to run.
If you are writting any kind of salesforce automation applications, or route management software, then you can see just how useful this feature is. You just add a special admin feature to enable and disable the ability to set the time, or handle it entirely from within your application.
Now I just need to find out why this key even exists, since I hate to find out the OS likes to change it under circumstance X.
// disable clock
System.Byte[] offValue = new byte[1];
offValue [0] = 0x30;
OpenNETCF.Win32.RegistryKey registryKey =
OpenNETCF.Win32.Registry.LocalMachine.OpenSubKey(@"\Software\Microsoft\Clock\", true);
registryKey.SetValue("AppState", offValue);
registryKey.Close();
// enable clock
System.Byte[] onValue = new byte[1];
onValue[0] = 0x11;
OpenNETCF.Win32.RegistryKey registryKey =
OpenNETCF.Win32.Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\Clock\", true);
registryKey.SetValue("AppState", value);
registryKey.Close();
Click to expand...
Click to collapse
And the link to the original source -
http://www.cjcraft.com/Blog/PermaLink.aspx?guid=0b590db3-cc90-45fa-822e-acf91f031052
I was pulling my hair out over that one the last couple of days!
Cheers,
Dav

Hi dav!
I am sorry to burst your bubble, but I tried this registry hack, and found there is an easy way around it, with out editing the registry.
If you hold the OK hardware button (in the center of the joystick, on those devices that have it) then tap and hold the clock (in the task bar) you get a little menu with 2 options: Run and Clock.
If you choose clock from this menu, the app will start and the registry setting will automatically be altered so you will be able to open clock settings normally from now on.
Further investigation showed that the lower 4 bit of the AppState walue (ones digit) simply selects on what tab the clock app will open. Legal values are 1-3. Any illegal value (like 0) will jam the app preventing it from opening by tapping the icon in settings. I suspect that if a command line switch is specified it overwrites the registry value and the app opens any way. (that’s how the menu works)
Just thought you should know.

Hi levenum,
Thanks for the insights! I just tried it too and sadly that is the case ;-( Mmmh, I wonder if there is a way to hide 'Clock' from the Run\Clock thingy? or disable the Clock in some other way?
mmh, back to the drawing board...
Dav

Here's what you might try:
Create a cab that deploys an empty clock.exe to windows directory on the device.
Clock.exe is a ROM file, but a cab should be able to overwrite it (it won't work manually). This way no matter who calls it (menu or control panel) they will see the empty exe and nothing will happen.

Sounds like a good idea to me! I'll give it a try and see how it goes. Thanks for your continued help
Dav

Worked nice Thankyou!
btw, do you think that overwriting the Clock.exe would have any effect on the 'displaying' of the date in the Today Screen? By clicking the date we launch the Clock.exe program, but something else other than Clock.exe must control what shows the current date, right? I mean, the current date wouldnt just stay on the date on which we delete Clock.exe?
Cheers and thanks again,
Dav

Actually, if the exe was responsible for the date on the today screen, you wouldn't see anything once you overwritten it. Today date is just another plug-in. I think its clockdll.dll but I am not sure. Whatever the file name, it takes the date directly from the system clock.
As I understand it clock.exe is just a little GUI utility for setting system time, and alarms.

That sounds right and what i was thinking, always good to have a second opinion for confimration.
All the best,
Dav

seems like you guys might know what your doing, so do you know how to get the battery removed and the clock back on the today screen of WM5 latest rom releases....

levenum said:
Hi dav!
I am sorry to burst your bubble, but I tried this registry hack, and found there is an easy way around it, with out editing the registry.
If you hold the OK hardware button (in the center of the joystick, on those devices that have it) then tap and hold the clock (in the task bar) you get a little menu with 2 options: Run and Clock.
If you choose clock from this menu, the app will start and the registry setting will automatically be altered so you will be able to open clock settings normally from now on.
Further investigation showed that the lower 4 bit of the AppState walue (ones digit) simply selects on what tab the clock app will open. Legal values are 1-3. Any illegal value (like 0) will jam the app preventing it from opening by tapping the icon in settings. I suspect that if a command line switch is specified it overwrites the registry value and the app opens any way. (that’s how the menu works)
Just thought you should know.
Click to expand...
Click to collapse
wow..thanx for this. worked like a charm on my wing (and 2 yrs after it was posted i might add =P). i thought my alarm clock was lost FOREVER!

Hi,
I found the following code in this discussion thread:
// disable clock
System.Byte[] offValue = new byte[1];
offValue[0] = 0x30;
OpenNETCF.Win32.RegistryKey registryKey =
OpenNETCF.Win32.Registry.LocalMachine.OpenSubKey(@"\Software\Microsoft\Clock\", true);
registryKey.SetValue("AppState", offValue);
registryKey.Close();
It looks pretty useful to me but It has some OpenNETCF keyword.
Please suggest me what is OpenNETCF? Is it an additional third
party compact framework and how can I get this?
Also, if it is inbuild reference by Microsoft, from where to get it?
-Abhishek Maitrey

OpenNETCF is an extra SDK for WiMo devices. Search for it....
In this situation it's not needed.

Related

Remap Softkey and volume button

Hi,
Here is my contribution. The program will remap the softkey buttons and volume buttons:
tap soft key = orginal soft key functions
tap and hold left soft key = start menu
tap and hold right soft key = close/ok button
volume slider at the left = page up/down
You can also use the DPAD to do some extra actions in phone app.
NOTE: If you got notification error, please run smartskey.exe and then run smartskey.exe to close the app. The program will now close all notification that relate to smartskey when it is closed.
Update:
0.60 (2007-08-23)
Fixed: Make DPAD function work on WM6
Fixed: Fix DPAD function not compatible with TomTom
0.56 (2006-11-17)
Fixed: Fix compatibility with CeleDial
0.55 (2006-11-15)
Fixed: Compatible with CeleDial
Fixed: DPAD function will call default Contacts/Text Messaging instead of calling original Contacts/Text Messaging directly. So if you have installed any third party replacement, it will be called when DPAD in Phone app is pressed.
0.54 (2006-11-06)
Fixed: Endless loop when using “OK” button of keyboard in Wizard.
0.53 (2006-06-23)
Fixed: DPAD on will not affect TomTom and calendar
Fixed: remove notification routine will remove all paths so that it will not prompt wrong notification path anymore when user change the location of the smartskey.exe
0.52 (2006-03-26)
Fixed: DPAD functions still apply in SmartDial dialog.
0.51 (2006-03-20)
Fixed: Can use volume key to switch to vibrate, off mode by volume slider
Fixed: Exception List will not check the classname of the window as well, so you can also put applications that will change title in the list.
Added: change the behavior of the dpad, and user can set the action for each direction using DUP, DDOWN, DLEFT, DRIGHT
0.5 (2006-03-19)
Add: DPAD, use dpad for additional action (call log, messaging, programs, contacts) in phone app.
Add: VOLUMEONTODAY, volume key will check the topmost app is today or not
Fxied: improve force closed function.
0.41 (2006-03-11)
Fixed: will not overwrite ini files
Fixed: make executable smaller
Added: PAGEONEXPLORE, use soft key to scroll page in “Programs”
0.4 (2006-02-25)
Fixed: rewrite force closed function again
Added: VOLUMEONPHONE, volume key will check the topmost app is phone or not
Added: REMOVEDUPSDDAEMON, automatically remove duplicated sddaemon events.
Added: OMAPCLOCK, omapclock wrapper to set clock automatically after wake up.
Added: STARTMENUMETHOD, provide alternate method to popup start menu.
...
water
THanks!
Great!
Hi Water,
Great little program! Very useful!
Wouter
very good. With your soft and with xbar I can use my wizard with one hand only...
thanks
does "close" function really close the app, or it is a standrad Windows "close"?
And... If you share the source code... ;-)
Now do exactly as pressing the OK button on the keyboard, so hide only. Actually close is much easiler in programming aspect
[feature request]
is there a chance then that at some stage of the development of the tool it would actually ok/close, and not ok/hide the apps?
[/feature request]
That is a nice idea (I just got my 8125 and I was thinking of that EXACT setup)
One thing I would ask for, if its not too much trouble...
Can you make another progy that does everything (start menu and ok/minimize) except the volume scroll? I like to change the volume while in a call and such.
Thanx and really nice job; Lew
EDIT: Better idea.
Include a config file for the program, here's an example.
Code:
LeftSoftKey = 1 // 0 = default 1 = hold for start menu
RightSoftKey = 1 // 0 = default 1 = hold for ok/minimize 2 = hold for ok/close
VolumeScroll = 0 // 0 = default (volume control) 1 = Scroll
I think that's a good idea. Let me know what you think?
Later; Lew
Is it easy to re-configure the tap and hold functions??
okay, add one more version without volume keys remap. For close button request, I may do it when I am free.
The program cannot be configured because actually no interface.
wow man. thanx for such a fast response . I was just in bed when I decided to check one last time (from my wizard of course)
So can the settings for the program be set by a config file? Can it read the the cfg file and use the settings in it as variables for how it will handle the different key press events?
Thanx again... awsome sauce man!
Later; Lew
Is it possible to automaticly switch beteween volume when using the telephone and prev/next page if the telephone is not used.
This would complete your program.
Ferry
This is one of the mose useful bits of software I have come across for the Wizard. Simple but oh so effective Like others have said, one-handed operation is now much more simple.
Well done water
This is one of the mose useful bits of software I have come across for the Wizard. Simple but oh so effective Like others have said, one-handed operation is now much more simple.
Well done water
This is fantastic! Thank you very much water.
I have what I think is a simple question.
I have put the smartkey in my startup, now lets say I don't want it to start up any more. How can I get it out of start up?
I already tried deleting it it says access denied on the Wizard and if I try from PC.
Any thoughts?
Later; Lew
lewcamino said:
I have what I think is a simple question.
I have put the smartkey in my startup, now lets say I don't want it to start up any more. How can I get it out of start up?
I already tried deleting it it says access denied on the Wizard and if I try from PC.
Any thoughts?
Later; Lew
Click to expand...
Click to collapse
delete the shortcut from startup, and then restart the phone.
Yeah... that means im an idiot...
I didn't put a shortcut in the startup folder... I put the exe int he startup folder. Go ahead... point an laugh, lol, I would.
So now knowing that, any other suggestions?
Later; Lew... the dork of the day.
lewcamino said:
Yeah... that means im an idiot...
I didn't put a shortcut in the startup folder... I put the exe int he startup folder. Go ahead... point an laugh, lol, I would.
So now knowing that, any other suggestions?
Later; Lew... the dork of the day.
Click to expand...
Click to collapse
you can't delete it because it is running. stop the process (memory cp app) and then delete it.

Launch 'Connecttion Manager' from Wireless Today Plug-in

Hi all,
Hopefully somone is able to help me with this.
Before i flashed my ROM last night, i had the 'Wireless' today plug-in (the one showing your provider, BT status and WiFi Status) set up to launch the connection manager when it was tapped.
I am sure that i set this up by adding a DWORD titled 'Selectability' with a vlaue of '1' to the Wireless section in the registry.
However, i have tried putting this entry back in with a new rom, and it dosent launch the connection manager anymore
Any ideas???
Found this in another thread!
cellneuron said:
It's easy. just need modify registry
HKLM/CONTROLPANEL/wrlsmgr
New string "Redirect", make the value any program you like, such as
Redirect = "\windows\commmanager.exe" will open the commmanager.exe when you tap it.
Click to expand...
Click to collapse
also the selectability makes it selectable in the front screen by touch and d-pad (set it to 2)

HTCHomeplug revealed

OK I was working in the customization of the HTCHomeplug.
What is HTCHomeplug? If you own a HTC X7500 Advantage (the HTC make of Athena or Ameo) then in the Today screen you got a plugin that shows some icons like Battery, Rotation, Comm Manager, Screen Light, Quick GPS and TVOut. What I discovered is who to deal with this plugin in order to change the icons and applications associated there.
I used PHM Registry to edit entries at the PPC registry, but you can use the editor of your like.
First is access using the registry editor to this entry:
/HKEY_LOCAL_MACHINE/SOFTWARE/HTC/HTCHomeplug
There is the configuration of the plugin. There we will find two entries pointing to the first two icons (Battery and Rotation) that seems to be configured in a different way that the rest of the icons. Those are the two DWORD entries:
PowerIconSlot with value of 0 (this means the first position in the plugin)
RotateIconSlot with value of 1 (this means the second position)
The rest of the positions in the HTCHomeplug appears like KEY entries with names from 2 to 5 meaning positions 3 to 6 in the plugin bar.
Inside each key (2 to 5) we find 3 values (or entries):
1- iconindex DWORD type of Decimal which contains 103 in the case of entry KEY 2
2- LaunchApPath STRING contains the path to the executable file associated to the icon
3- ResPath STRING contais the path to the resource file which contais the icon image poited by iconindex entry. This path points to a DLL or EXE file containing the icon image.
So... since we want to add a icon/application we need to create the entry KEY 6 and we must create both STRING entries and DWORD one inside the KEY 6.
To add Tomtom Navigator in the HTCHomeplug (as an example) I added:
iconindex = 101
LaunchApPath = \Program files\Navigator\Tomtom Navigator.exe
ResPath = \Program files\Navigator\Tomtom Navigator.exe
So I'm using the icon storaged in the Tomtom Navigator executable file itself and my Tomtom is in the path I show in the entry. Off course this could not match your installation.
How I found the iconindex information that points to the icon in the Tomtom's EXE file??? Easy I used a program called RViewer (for PPC) develop by Vicott Wong. The program can by found in Google or in the web page shown in the About screen.... http://mobile-sg.com
Running that program and browsing the EXE file (or a DLL) we can see the index for each resource and if it's an image the image is display in the screen, so I found the 101 is the index for the Tomtom icon inside de EXE file.
Once the entries in the Registry are done the rest is easy. Just go into Start - Configuration - Personal - Today and int the Elements Tab. There unmark the HTCHomeplug and exit the configuration going into the Today screen to check that the plugin is not in the screen. Then we back to the Today configuration and select again the HTCHomeplug to mark it. Once we are back into the Today screen we will see the new icon.
(OK in the previous paragraph I'm translating the menu options and clicks from my spanish release of WM5 into english one so the names could not match... what you need to do is configure Today screen to remove the plugin and to configure again to insert the plugin, that way the plugin is reseted and the new icons loaded).
I did several tests and looks like the HTCHomeplug only supports 7 icons (0 to 6) but since many of the original icons are not use on daily bases we can setup up to 5 programs in that plugin leaving the Battery and Rotary icons in its place.
I hope this is useful... and I beg your pardon for my poor english.
Regards,
mahjong
P.S.: I posted this first at todopocketpc.com in spanish. If you know that language maybe you prefer read it in my mother language. For sure will be much better written.
mahjong said:
OK I was working in the customization of the HTCHomeplug.
What is HTCHomeplug? If you own a HTC X7500 Advantage (the HTC make of Athena or Ameo) then in the Today screen you got a plugin that shows some icons like Battery, Rotation, Comm Manager, Screen Light, Quick GPS and TVOut. What I discovered is who to deal with this plugin in order to change the icons and applications associated there.
I used PHM Registry to edit entries at the PPC registry, but you can use the editor of your like.
First is access using the registry editor to this entry:
/HKEY_LOCAL_MACHINE/SOFTWARE/HTC/HTCHomeplug
There is the configuration of the plugin. There we will find two entries pointing to the first two icons (Battery and Rotation) that seems to be configured in a different way that the rest of the icons. Those are the two DWORD entries:
PowerIconSlot with value of 0 (this means the first position in the plugin)
RotateIconSlot with value of 1 (this means the second position)
The rest of the positions in the HTCHomeplug appears like KEY entries with names from 2 to 5 meaning positions 3 to 6 in the plugin bar.
Inside each key (2 to 5) we find 3 values (or entries):
1- iconindex DWORD type of Decimal which contains 103 in the case of entry KEY 2
2- LaunchApPath STRING contains the path to the executable file associated to the icon
3- ResPath STRING contais the path to the resource file which contais the icon image poited by iconindex entry. This path points to a DLL or EXE file containing the icon image.
So... since we want to add a icon/application we need to create the entry KEY 6 and we must create both STRING entries and DWORD one inside the KEY 6.
To add Tomtom Navigator in the HTCHomeplug (as an example) I added:
iconindex = 101
LaunchApPath = \Program files\Navigator\Tomtom Navigator.exe
ResPath = \Program files\Navigator\Tomtom Navigator.exe
So I'm using the icon storaged in the Tomtom Navigator executable file itself and my Tomtom is in the path I show in the entry. Off course this could not match your installation.
How I found the iconindex information that points to the icon in the Tomtom's EXE file??? Easy I used a program called RViewer (for PPC) develop by Vicott Wong. The program can by found in Google or in the web page shown in the About screen.... http://mobile-sg.com
Running that program and browsing the EXE file (or a DLL) we can see the index for each resource and if it's an image the image is display in the screen, so I found the 101 is the index for the Tomtom icon inside de EXE file.
Once the entries in the Registry are done the rest is easy. Just go into Start - Configuration - Personal - Today and int the Elements Tab. There unmark the HTCHomeplug and exit the configuration going into the Today screen to check that the plugin is not in the screen. Then we back to the Today configuration and select again the HTCHomeplug to mark it. Once we are back into the Today screen we will see the new icon.
(OK in the previous paragraph I'm translating the menu options and clicks from my spanish release of WM5 into english one so the names could not match... what you need to do is configure Today screen to remove the plugin and to configure again to insert the plugin, that way the plugin is reseted and the new icons loaded).
I did several tests and looks like the HTCHomeplug only supports 7 icons (0 to 6) but since many of the original icons are not use on daily bases we can setup up to 5 programs in that plugin leaving the Battery and Rotary icons in its place.
I hope this is useful... and I beg your pardon for my poor english.
Regards,
mahjong
P.S.: I posted this first at todopocketpc.com in spanish. If you know that language maybe you prefer read it in my mother language. For sure will be much better written.
Click to expand...
Click to collapse
Excellent post and thanks for your efforts and sharing! I'll be trying this out later. Just what I was looking for.
I'll report my experiences later.
Excellent! I will try this!
When using TrueVGA, does anybody know a way of making the icons work? I see only 1/4th of an icon, and it's even the wrong icon. The only icon is the one for the Light Settings...
Anybody know the iconindex for Opera so i can have the Opera icon instead of Web&Walk icon!
Mahjong tells you how to find it...
mahjong said:
How I found the iconindex information that points to the icon in the Tomtom's EXE file??? Easy I used a program called RViewer (for PPC) develop by Vicott Wong. The program can by found in Google or in the web page shown in the About screen.... http://mobile-sg.com
Click to expand...
Click to collapse
No Joy I'm afraid...
I'm afraid that it hasn't worked for me on the Ameo. Maybe it's due to how T-Mob have configured/altered things with their customisation of their ROM.
I reverted to using the TrayApplet in the same regedit folder that the HTCHompeplug resides in, but to no avail.
Quote "Just go into Start - Configuration - Personal - Today and int the Elements Tab. There unmark the HTCHomeplug and exit the configuration going into the Today screen to check that the plugin is not in the screen. Then we back to the Today configuration and select again the HTCHomeplug to mark it. Once we are back into the Today screen we will see the new icon.
(OK in the previous paragraph I'm translating the menu options and clicks from my spanish release of WM5 into english one so the names could not match... what you need to do is configure Today screen to remove the plugin and to configure again to insert the plugin, that way the plugin is reseted and the new icons loaded). " End Quote.
No HTC Plugin on the Ameo Today settings menu either, but visible in HLKM...software etc...as the HTCHomeplug.
I can get some of my choice of programs in the TrayApplet, but not the associated icons!!??!!
Same as before when I tried. Anyone else with an Ameo who has had success in getting it to work with the right icons?
Hi,
Thanks for the tip, it's really useful! I wanted to customize the plugin but didn't have the patience to go through all the registry.
Twp questions though:
- I made a shortcut for the calculator (calc.exe) but the icon is too big (both res. index 0 or 100 in calc.exe). Is there a way to scale it down, or a smaller calculator icon in another file? What's the "main" icon library for Windows Mobile (the equivalent of shell32.dll under Windows)
- I tried to make a shortcut to the phone application, but I can't find the exe file (the Start menu shortcut doesn't point to an exe file, but to :MSCProg?......). And I can't find the icon either...
Please help.
Regards,
Silviu
Hi silviu.h.
Which Athena device do you have, Advantage, Dopod or Ameo?
Hi, I have the HTC Advantage (not Ameo, not Dopod), and the vanilla french ROM.
silviu.h said:
Hi, I have the HTC Advantage (not Ameo, not Dopod), and the vanilla french ROM.
Click to expand...
Click to collapse
Thanks for the reply. That would explain why to a large extent it works on your device.
P.S. try \Windows\HTCICON.dll (I think that is the equivalent to shell32.dll)
Let us know how you get on.
Thank you for your answer.
The hack from mahjong works OK, except for the quirks I have already posted above (the Calc.exe icon is too big and I can't find the main icon store). htcicon.dll doesn't exist
However it's OK for Tomtom.
I'll keep you posted on my findings (I'm not giving up, I just have to go to bed )
See you,
Silviu
mackaby007 said:
No HTC Plugin on the Ameo Today settings menu either, but visible in HLKM...software etc...as the HTCHomeplug.
I can get some of my choice of programs in the TrayApplet, but not the associated icons!!??!!
Same as before when I tried. Anyone else with an Ameo who has had success in getting it to work with the right icons?
Click to expand...
Click to collapse
Yeah that was the reason for adding this to my note: "If you own a HTC X7500 Advantage (the HTC make of Athena or Ameo) then in the Today screen you got a plugin..."
Only for HTC users I'm afraid.
Best Regards,
mahjong
mahjong said:
Yeah that was the reason for adding this to my note: "If you own a HTC X7500 Advantage (the HTC make of Athena or Ameo) then in the Today screen you got a plugin..."
Only for HTC users I'm afraid.
Best Regards,
mahjong
Click to expand...
Click to collapse
Well, you can simply enable it on the T-Mobile Ameo using the following Reg-Keys:
- Navigate to: HKLM\Software\Microsoft\Today\Items
- Create a new Key named: HTC-Homeplug (or whatever you like)
- Navigate into that key
- Create the following items under that key:
String: DLL
Value: htchomeplug.dll
DWORD: Enabled
Value: 0 (or 1 if you want to enable it directly)
DWORD: Flags
Value: 0
DWORD: Options
Value: 0
DWORD: Order
Value: 0
DWORD: Type
Value: 5
After doing the above go to your today-screen settings and the Homeplug plugin is there...
Cheers
I seem to have BOTH HTCHomeplug and Trayapplet on my Ameo
It seems that there is a today item [email protected] or something I can turn on/off that doesnt appear to do anything, I beleive this is turning on/off the HTCHomeplug.
Because Trayapp is already on, and overwriting the HTChomeplug you only see its icons, therefor the homeplug is hidden.
I will experiment with turning off trayapp then turning on the @home today item and see what happens, but it looks like a lot of the confusion for Ameo users is the fact both are installed.
I did a hard reset, and didnt fiddle with the home/tray stuff, so this is how the rom set it up!
HKLM/software/htc/HTCHomeplug
HKLM/software/htc/TrayApplet
Both have keys of (and ONLY of),
PowerIconSlot=0
RotateIconSlot=1
In them.
Under HKLM/software/microsoft/today/items/[email protected]
DLL=hztdplug.dll
enabled=0
flags=0
options=0
order=1
type=5
Pyrofer said:
I seem to have BOTH HTCHomeplug and Trayapplet on my Ameo
It seems that there is a today item [email protected] or something I can turn on/off that doesnt appear to do anything, I beleive this is turning on/off the HTCHomeplug.
Because Trayapp is already on, and overwriting the HTChomeplug you only see its icons, therefor the homeplug is hidden.
I will experiment with turning off trayapp then turning on the @home today item and see what happens, but it looks like a lot of the confusion for Ameo users is the fact both are installed.
I did a hard reset, and didnt fiddle with the home/tray stuff, so this is how the rom set it up!
HKLM/software/htc/HTCHomeplug
HKLM/software/htc/TrayApplet
Both have keys of (and ONLY of),
PowerIconSlot=0
RotateIconSlot=1
In them.
Under HKLM/software/microsoft/today/items/[email protected]
DLL=hztdplug.dll
enabled=0
flags=0
options=0
order=1
type=5
Click to expand...
Click to collapse
The T-Mobile plugin has nothing to do with the HTC-Homeplug. HTC-Homeplug provides the sam functionality as the TrayApp.
The [email protected] Today Plugin is only useful for T-Mobile customers as it provides functions for HomeZone users.
The dll name hztdplug.dll means HomeZoneTodayPlugin...
If you want to use the HTC-HomePLug plugin you have to create the registry key I've posted above.
Cheers
Ok, I dont want the homezone rubbish.
But im still stuck with both HTCHomeplug and Trayapp
How do I enable/disable the trayapp? That doesnt seem to have any today element to it. I cant get icons working at all in trayapp and wanted to try the HTCHomeplug as that looks a much more userfriendly app.
Pyrofer said:
How do I enable/disable the trayapp?
Click to expand...
Click to collapse
Go to HKLM\init
Delete the Launcher for TrayAp.exe. On mine it is Launch92...
Make a Softreset after you changed this setting and the TrayAp is gone.
Cheers
Thanks!
I now have the HTC Homeplug working, and the trayapp gone! W00t!
I like the bigger icons, and now I can edit them better im happy. Much nicer.
Anyone thought about coding a contol panel applet for this homescreen plugin??
Moskus said:
Excellent! I will try this!
When using TrueVGA, does anybody know a way of making the icons work? I see only 1/4th of an icon, and it's even the wrong icon. The only icon is the one for the Light Settings...
Click to expand...
Click to collapse
If you use combination of Spb pocket plus and Commmgrpro, you don't need to deal with these problems of wrong size icons in the comm manager and home plug. Both of these need not be used at all.
I'm yet to find a replacement for Spb GPRS monitor though. SPb GPRS monitor also have problem displaying in true VGA. There are some but they do not show the kbps figure - only the downloaded volume.

noob help with Titanium Panel

I'm new to Titanium Panels and can't seem to find the "10,000 foot view" of how these work. I hope to do that here...
I'm now in "build the tutorial mode" so this post will change as I have time to fill it in.
As I see it, Titanium Panels fall into three categories:
Completely Static - A fancy button to launch an application.
Update on Demand - Static until you tap it and then it updates.
Automatically Updated - This model has a "free-running" background process that updates the panel contents on a regular basis.
The general model is something like this...
Create an app/script/etc. that puts data into the registry (when/if necessary.)
These values should be listed in subkeys in the registry under:
Software\Microsoft\CHome\PanelName\CondensedPage
Software\Microsoft\CHome\PanelName\Page1
Software\Microsoft\CHome\PanelName\Page2
etc.
to form what data will actually appear on each page.
There are special values in the registry that specify the Datasource, Tap actions, etc.
Create a resolution specific layout in the Titanium.cpr file.
When necessary, update the registry values and toggle a special registry entry:
Software\Microsoft\CHome\PanelName\Updated
to 0 and then back to 1. (Some languages (like c#) require that you flush() your changes in order for this to work.)
Also see the post later in this thread "Updating Panel".
Then Titanium renders the data items on the current page for this panel (CondensedPage and/or some Page1 ... PageN) using the layout items in the .cpr file.
I have the same problem - I don't know how to refresh a single page. Refreshing the entire HS by its GUID works, but the same trick won't work on a single page. Refreshing it by the panel GUID also don't work...
Updating Panel
Simply toggle the "Updated" registry key to 0 and then back to 1.
Sample c#:
Code:
rk = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\CHome\" + PanelName, true);
rk.SetValue("Updated", 0);
rk.Flush();
// update all of the data for this panel...
rk.SetValue("Updated", 1);
rk.Flush();
In any language the idea is the same. Originally I was having trouble when I was simply setting Update to 1 without toggling it.
Hope that solves it for you.
BTW - I have no idea how to refresh a single page of a single panel or if that's even possible.
So I wrote a simple updater:
Code:
RegistryKey klucz = Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\CHome\\SlidingAlbums", true);
klucz.SetValue("Updated", args[0], RegistryValueKind.DWord);
klucz.Flush();
I'm running it by Pocket Controller-Pro from the command line, and no respond.
So... I guess that you are calling it with a "0". Then changing some registry value. Then calling it again with a "1". And the data on the screen isn't changing?
This update only changes the data displayed, it does not cause a "reload" of the .cpr file.
How are you changing the registry values that relate to the data used by the panel? What is the "whole" picture here?
Also note that the panel name is case sensitive.
rakar said:
So... I guess that you are calling it with a "0". Then changing some registry value. Then calling it again with a "1". And the data on the screen isn't changing?
Click to expand...
Click to collapse
Yes, I've also tried to change it from .NET project but the effect is the same.
rakar said:
This update only changes the data displayed, it does not cause a "reload" of the .cpr file.
Click to expand...
Click to collapse
I know, I wanna refresh the data from registry.
rakar said:
How are you changing the registry values that relate to the data used by the panel? What is the "whole" picture here?
Click to expand...
Click to collapse
I'm changing TEXT1, TEXT2, TITLETEXT.
rakar said:
Also note that the panel name is case sensitive.
Click to expand...
Click to collapse
I know that
But there's one thing - I'm doing it on WM6.1 Standard. Maybe this is the main problem, but I think that CHome is working the same as it is on 6.5 Professional.

[REF] Rotating apps using registry and finding classes

Hi All,
I have written this little tutorial by piecing togethor bits of info from other forums and threads. Some of you will probably know this already but this is for those who are struggling:
To get the g sensor rotating any application that doesnt do so already you will need to edit the registry on your device.
Using your preferred registry editor navigate to:
HKCU\Software\HTC\HTCSENSOR\GSensor\ModuleName
Here you must create a new string value. The name of your string is whatever you want it to be. The value of your string would be the path to the exe of the program you wish to rotate.
Once this is done you must then navigate to:
HKCU\Software\HTC\HTCSENSOR\GSensor\WhiteList
Here you must again create a new string value.
The name again is whatever you want it to be... the value would be the class name of the application you are attempting to rotate.
For example.... to get excel rotating with the G sensor:
HKCU\Software\HTC\HTCSENSOR\GSensor\ModuleName
Create new string value... i named it Excel Mobile. Value is:
windows\pxl.exe
HKCU\Software\HTC\HTCSENSOR\GSensor\WhiteList
Create new string value... again i named it Excel Mobile. Value is:
BOOKWIN
Create second new string value... i named it Excel Mobile2. Value is:
PXLMainWnd
Exit your registry editor and soft reset the device. Job done. Excel will now rotate within the open file browser (PXLMainWnd) and also within any open workbook (BOOKWIN)
For any particular app you should be able to figure out what the full path is to your exe but to get class names use dotfreds task manager:
http://www.dotfred.net/TaskMgr.htm
Once the task manager is installed.... start your app... then start the task manger... go to applications tab and long press on your app which will be listed if it is still running... select details. Go to the windows tab... this screen will list all of the classes currently accessed by your app. Ususally the ones to add into the whitelist will be the ones that are preceded by the app name but not always.
To get you guys started here are the settings for word:
windows\pword.exe
and you need to add two classes to the white list:
WordPad
Pocket Word
Remember that class names are case sensitive.
disclaimer: I TAKE NO RESBONSIBILITY FOR ANY DAMAGE TO ANYONES DEVICE BY POSTING THIS QUICK TUTORIAL. YOU CAN SERIOUSLY DAMAGE YOUR DEVICE IF YOU EDIT THE REGISTRY INCORRECTLY... IF YOU DO NOT KNOW WHAT YOU ARE DOING LEAVE IT WELL ALONE!!!!
bump cos ive changed the title!
can you find the modulename/whitelist for the messaging (SMS/MMS) tab? It's the only one I have trouble rotating.
lude219 said:
can you find the modulename/whitelist for the messaging (SMS/MMS) tab? It's the only one I have trouble rotating.
Click to expand...
Click to collapse
ill have a look if i get some time.
im having trouble getting the lifestyle home page in spb shell rotating atm!
Audio Oblivion said:
ill have a look if i get some time.
im having trouble getting the lifestyle home page in spb shell rotating atm!
Click to expand...
Click to collapse
thank you, and take your time =) btw, I just wanna be clear that I didn't mean the messaging tab on the home/sense screen, I meant the default win6.5 screen.
Thanks for this post, I am trying to find the details for a new app called DynaInk. I've followed your instructions and I am about to see if it worked?
*** Drum Roll ***
It worked, I used #NETCF_AGL_BASE_
Thank You
I applied this trick for Notepad which is a simple text editor that doesn't even require installation:
http://www.shamasis.net/projects/notepad-mobile/
After installing Dotfred's Task manager it showed me several string values for Notepad.exe and one of them was same as Nighthawk's DynaInk: #NETCF_AGL_BASE_ so I added it for my Notepad.exe.
Now it rotates with G-sensor
Thank you, Audio Oblivion for this guide!
p.s. What kind of damage to the device could possibly be done by adding those strings with those values? One could delete them if there's no result ?!?
Great post, works very well except for 1 program.
Perhaps you can help me out with the class name of TomeRaider3.
Program is TomeRaider3AU.exe, but for the Whitelist entry I always get different ClassNames when I start it as just like: "Afx:83ab6eaa:0, next time I get Afx:d54d7832:0, and so on.
Can anyone please help me out with this ?
many thanx in advance
Edit: Found the solution. I have added a ModuleName Wikipedia with Value "\Programme\TomeRaider3\Wikipedia.tr3 and a Whitelist entry for Wikipedia called "Dialog", for the Whitelist entry of TomeRaider I also used "Dialog", now it works very well.
lude219 said:
thank you, and take your time =) btw, I just wanna be clear that I didn't mean the messaging tab on the home/sense screen, I meant the default win6.5 screen.
Click to expand...
Click to collapse
I launched the default wnimo messaging screen and saw a process called tmail.exe appear.
search for tmail.exe on you device and use its full path as the module name. its probably windows\tmail.exe
for class entry in whitelist try: Dialog
If thats not it then start messaging, lauch dotfreds task manager, long key press on tmail.exe... click on windows and try every class you see!
I have now found that gyrator works quite well if you want EVERY screen on your device to rotate with the acceleromter... however... even though it is set to rotate everything... not all windows work. I still had to add in certain aspects of SPB shell to the whitelist for instance. Also... HTC Sense homescreen doesnt like being rotated.
drkalo said:
p.s. What kind of damage to the device could possibly be done by adding those strings with those values? One could delete them if there's no result ?!?
Click to expand...
Click to collapse
You wont damage your device if you follow my instructions carefully. The values you are changing are safe to add, delete and edit at any time (although dont touch what is already in the registry before you started adding to it). The discalimer is there in case someone messes up their registry by doing something incorrectly!
What about the programs that have the same Class name eg. "Dialog".
As i noticed it's enough to add process name to ModuleName or Class Name to WhiteList. No need to put both.
Better to use ModuleName if you have several applications that both have eg "Dialog" but one of them you do not want to rotate.
Eg. Nimbuzz - Dialog, HTC phone app - also Dialog. I do not want to rotate Phone So for me works only the ModuleName for the Nimbuzz.
For other apss I only include data to whitelist In fact there is two lists - by process name and by Window class...
Is there a similar way to enable the "Pinch to Zoom" feature for programs by just adding the programm to some registry entries?
TomTom
This is great
added TT7 = MunichWinClass to the white list.. now I can use TomTom in landscape
Thank you for this information.
I've done 3 programs;
Resco Explorer 2008
ModuleName
\Program Files\Resco Explorer\Explorer.exe
WhiteList
RESCO_EXPLORER_CLASS
and
Palm Digital Media eReader for windows mobile
ModuleName
\Program Files\Peanut Press\eReader.exe
WhiteList
PalmDigitalMediaWin
IME
and
1-Calc
ModuleName
\Program Files\OmegaOne\1-Calc\1-Calc.exe
WhiteList
Dialog
I can't take responsibility if these changes don't work for someone or if they brick their device.
Google maps, OziExplorer, File Explorer & Garmin
Thanks for the detailed info
ModuleName
"GMaps"="\Program Files\GoogleMaps\GoogleMaps.exe"
"Ozi"="\Storage Card\OziExplorer 2\OziExplorerCE.exe"
"FileMan"="\Windows\fexplore.exe"
"Garmin"="\Storage Card\Garmin\Apps\WM\QuePPC.exe"
WhiteList
"GMaps"="GoogleMapsMobile"
"Ozi"="OziExplorer"
"FileMan"="FEXPLORE"
"Garmin"="QUE_SUBAPP_WND_CLASS"
Thanks for this have done tomtom too. Perfect!!
Edit: Could anyone put this in a cab for me please?
Dir of .exe = \Storage Card\Program Files\TomTom Navigator.exe
Value = MunichWinClass
Not working
Hi all,
I have tried to apply this procedure but my applications still do not rotate.
I have tried both modifying the registry by hand, and using BsB Tweaks to rotate Excel but with no success. Any suggestions to share?
EDIT: I have tried disabling and re-enabling the Rotate feature (AutoRotation -> 0 -> 1), resetting the phone after each change, and now NO APPLICATION will rotate: not even HTC messaging nor the Sense Pictures tab.
HELP!!!!
EDIT 2: Solved! I've just found out by pure chance that rotating works only counterclockwise, while I assumed it should work both ways!

Categories

Resources