Help - Search - Member List - Calendar
Full Version: Simple self-made profile support
PPCSG > Power Up Your Devices > Tips & Tricks
jShun
I tried PocketZenPhone, annony by the huge number of settings and problems with WM5. In addition, I want something that can work from "Start Menu", "Task Manager" or integrate into other Today Application Launcher (eg. cLaunch).

So, I figure out a quick and dirty method, simple but not easy, needs a little file and registry manipulation.

Step 1:

Download TRE from http://www2r.biglobe.ne.jp/%7Etascal/downl...ketpc/tre_e.htm

Step 2:

Create profile registry files. For examples:-

SOFT.PRF - Ring 1

REGEDIT4

[HKEY_CURRENT_USER]

[HKEY_CURRENT_USER\ControlPanel]

[HKEY_CURRENT_USER\ControlPanel\Sounds]

[HKEY_CURRENT_USER\ControlPanel\Sounds\RingTone0]
"Script"="apw3r"

[HKEY_CURRENT_USER\ControlPanel\SoundCategories\Ring]
"InitVol"=dword:1

OUTDOOOR.PRF - Ring 4 and Vibrate

[HKEY_CURRENT_USER]

[HKEY_CURRENT_USER\ControlPanel]

[HKEY_CURRENT_USER\ControlPanel\Sounds]

[HKEY_CURRENT_USER\ControlPanel\Sounds\RingTone0]
"Script"="av0pw3r"

[HKEY_CURRENT_USER\ControlPanel\SoundCategories\Ring]
"InitVol"=dword:5


Step 3:

Create commands to import the files sliently. For examples:-

"\Windows\TRE.EXE" -s "\Windows\SOFT.PRF"
"\Windows\TRE.EXE" -s "\Windows\OUTDOOR.PRF"

Assign the commands to Shortcuts, "Task Manager" or "Application Launcher" according to your preferences. Attach is a screen shot of my Today screen with 3 profiles integrated into cLaunch.


That's all on profiles. This method can be use for alerting the registry for any purposes, have not think of what to do next, :)
desigrid
Very interesting :) Just what I was looking for, a simple profile changer.

But, a few questions:

1. How do I go about doing step 3?

2. Instead of using TRE, can this be done using PHM RegEdit?

3. Instead of PRF files, which I am guessing is specific to TRE, is it possible to create a file that when clicked in File Explorer, will load the settings to the registry (like a .reg file on Windows)?
jShun
1. For Start Menu, use Total Commander to create a shortcut of TRE.EXE in \Windows\Start Menu, then edit the shortcut and append the arguments to the command. Remember to enclose the TRE in ", like the examples in my 1st post. Lastly, rename the shortcut.

For cLaunch, go to Options, add an item, set the Name, set File Path to TRE and set Command Line to the arguments. For example:

Name: Outdoor Profile
File Path: \Windows\TRE.EXE
Command Line: -s \Windows\OUTDOOR.PRF

2. No, PHM RegEdit can't import in the current version.

If TRE stays in memory, it will open the registry file instead of importing it silently. To prevent that, I use PHM RegEdit to edit registry and restricts TRE to do silent import.

3. Yes, the default extension is .REG.
cheongseeker
I want to change the volume of the pda sound, which registry key should I change?

I want to disable incoming SMS notification but not incoming call. Is it possible to do the same as above?
jShun
I'm still tuning my device to use the right soft key as a toggle between 2 most used profiles, hope that you don't mind looking for the registry yourself or lookup from msdn.microsoft.com.

Anyone who knows the registry to cheongseeker's request please help too, :)
cheongseeker
Hi jShun,

Thanks for the reply. I'll hunt around and if I find it will post here for everyone.

Cheers.
desigrid
cheongseeker,

For system volume, look in [HKEY_CURRENT_USER\ControlPanel\Volume], "Volume" key.

For incoming call volume, there are two keys: "InitVol" in [HKEY_CURRENT_USER\ControlPanel\SoundCategories\Ring] and "Ringer" in [HKEY_CURRENT_USER\ControlPanel\Volume].

For the "InitVol" key in [HKEY_CURRENT_USER\ControlPanel\SoundCategories\Ring], the possible values are 0x00000000, 0x00000001, 0x00000002, 0x00000003, 0x00000004, 0x00000005. As for the keys in [HKEY_CURRENT_USER\ControlPanel\Volume], the possible values are 0x00000000, 0x33333333, 0x66666666, 0x99999999, 0xCCCCCCC, 0xFFFFFFFF. These values correspond to each level from 0 to 5 when you set the volume manually using the speaker icon.

To disable incoming SMS notification but not incoming call, I would guess you can set the system volume key to 0 and the two incoming call keys to the level you want.

FYI, I got these information by setting my system and incoming call volume to the highest and then exporting my entire registry to a file, before doing the same again after setting the volumes to the lowest. With the two registry files, I did a text-based compare (using a software called ExamDiff) to find out which keys had changed after I made the volume changes.

However, trying this out on my Dopod 818 Pro, I was not able to get it to work. While I could change the volumes, the setting would not stay. After a few seconds, the settings would be lost. Not sure if I did things correctly though, so I decided to skip this method for the time being, perhaps till I have more time to experiment.
jShun
I've tried modifying the readings in [HKEY_CURRENT_USER\ControlPanel\Volume], don't work. Try a soft reset, the system doesn't take the readings too. Therefore, we are conclude that these readings are just a reflection of the current volume level, they are not used to determine the volume level.

As for [HKEY_CURRENT_USER\ControlPanel\SoundCategories\Ring], it does work on my 838. The script in [HKEY_CURRENT_USER\ControlPanel\Sounds\RingTone0] works too.

To modify SMS notification, the key on my 838 is [HKEY_CURRENT_USER\ControlPanel\Notifications\{A877D65A-239C-47a7-9304-0D347F580408}], change "Options" value. I'm not sure whether the key is unique to my PPC or common to all PPC, so adjust according to your PPC if necessary. To find out the "Options" value, change the settings from \Settings\Sounds & Notifications\Messaging: New text messaging, then go back to the registry to take the value.

The system volume must be stored in other place. Logically, it should be in the registry too. However, if for some unknown reason, the setting is not store in registry, then this method will not do for system volume, probably have to go through an API calls lor, :(

There are definitely some limitation, not everything can be change by modifying the registry... :)
jShun
I have manage to use a soft key to toggle between Normal Profile and Meeting Profile. The trick is to modify the soft key settings too when switching profiles. Following is an example using the right soft key:-

SKNORM.PRF - Ring 4, right soft key shortcut to switch to Meeting Profile

REGEDIT4

[HKEY_CURRENT_USER]

[HKEY_CURRENT_USER\ControlPanel]

[HKEY_CURRENT_USER\ControlPanel\Sounds]

[HKEY_CURRENT_USER\ControlPanel\Sounds\RingTone0]
"Script"="apw3r"

[HKEY_CURRENT_USER\ControlPanel\SoundCategories\Ring]
"InitVol"=dword:4

[HKEY_CURRENT_USER\Software\Microsoft\Today\Keys\113]
@="Meeting"
Open="\\Windows\\skmeet.lnk"


SKMEET.PRF - Ring 1, Vibrate, right soft key shortcut to switch to Normal Profile

REGEDIT4

[HKEY_CURRENT_USER]

[HKEY_CURRENT_USER\ControlPanel]

[HKEY_CURRENT_USER\ControlPanel\Sounds]

[HKEY_CURRENT_USER\ControlPanel\Sounds\RingTone0]
"Script"="av0pw3r"

[HKEY_CURRENT_USER\ControlPanel\SoundCategories\Ring]
"InitVol"=dword:1

[HKEY_CURRENT_USER\Software\Microsoft\Today\Keys\113]
@="Normal"
Open="\\Windows\\sknorm.lnk"


SKNORM.LNK - "\Windows\tre.exe" -s "\Windows\SKNORM.PRF"

SKMEET.LNK - "\Windows\tre.exe" -s "\Windows\SKMEET.PRF"
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.