[07/08/2008] Sashimi Tips & Tricks - Windows Mobile Development and Hacking General

Hi all,
This thread will contain several posts where I'll add some tips & tricks for SASHIMI. These will be tips like what registry keys to export for keeping the keys of certain programs, using Mortscript to make some advanced changes to the device, using XML-provisioning to supply wifi and e-mail settings, and some default registry keys I use and others may provide. Please let me reserve the first threads for each of the before mentioned tips & tricks
For downloading SASHIMI and instructions (video & readme!), please refer to Bengalih's original thread:
http://forum.xda-developers.com/showthread.php?t=392983
Please do not use this thread for any questions or responses. Only use the Sashimi thread!
If you provide tips, please use the code tags, [ code ] and ending with [ /code ], around your registry keys and Mortscript Code...
Regards,
Nika.

Application registration keys
Thanks to Moe558 (see this post), here's some keys for saving registration information of many tools:
WebIS Pocket Informant 8
WebIS FlexMail
WebIS Toolbox
SBSH Pocket Weather
SPB Mobile Shell
SPB WALLET
SPB Traveller
SPB FINANCE
SPB PHONE SUITE
SPB POCKET PLUS
SPB MATCHES
SPB MINE SWEEPER II
SPB QUADRONICA
SKTOOLS
START MENU PROGRAMS MANAGER
All of the reg-files are in attached zip (Registration-keys-20080807.zip). Download the zip and take out the registry keys of the programs you use. Make sure to check the registry on your device (use dotFred's TaskManager) to check and replace XXXX with the key displayed in your registry (this may sometimes not be your actual registration key!). If you have more of these, let me know and I will add them to the zip (and rename it ).
Make sure to add the file to your SASHIMI\Auto\REG folder and your application will be automatically registered when hard-resetting your device !
Regards,
Nika.

Attached zip-file contains several registry files that enable automatic configuration of most of my application. Hopefully it helps you to figure out what keys to look at, and export using dotFred's TaskManager.
Please make sure you do not simply use my files as a guidline to configure your device. They're all setup to my preference and also depend on the applications you install!
The following list explains what each file does:
Associations.reg
This file contains done through KaiserTweak and AdvancedConfig to save files to my Storage Card locations instead of my device.
BackLight.reg
This contains my backlight settings.
Beejive.reg
This contains my default Beejive settings (make sure to read the section about file backup in one of my next posts!)
BlueTooth.reg
In this file I've only added the keys that I've exported to add my BlueTooth profiles (for my headset & carkit) automatically. I only have to connect once and enter the password (I think the association-keys cannot be exported, haven't been able to get it to work 100% automatically) instead of running discovery mode...
Calendar.reg
My default calendar settings (enabling the alarm icon and such).
Camera.reg
Setting the capture delay to 0, enabling 6 MP Panorama Shots and setting the correct rotation - all tweaks from KaiserTweak and Advanced Config.
CommManager.reg
I use the 6 button comm-manager and change the bottom two buttons to 3G and ActiveSync. Done using Schap's Advanced Config...
FdcSoft TaskManager.reg
Setting the registry editor as the default registered application for reg-files using this file (first 4 keys), and changing some default settings.
GPRSMonitor.reg
My default GPRS Monitor settings (turning icon off and such).
HTC TaskManager.reg
Turns off the HTC Task Manager (as I use WkTask and QuickMenu).
Internet Explorer.reg
Set my device to use Opera instead of Internet Explorer, change the cleartype setting and change the default Search URL.
Mail.reg
Change the default mail settings so attachments are stored on the Storage Card, the file sizes are correct for download messages, and for instance the account picker is off. Most settings come from the mail application, some are from Advanced Config and KaiserTweak.
Owner.reg
My Owner Information exported using SASHIMI!
Pocket Weather.reg
This is the backup of Pocket Weather, changed a little so it specifies the correct keys and can be automatically imported using dotFred's TaskManager and SASHIMI. Pocket Weather creates a file which contains the correct keys, except it misses HKEY_CURRENT_USER in the key name.
Power.reg
My default Power Settings.
QuickGPS.reg
Setting QuickGPS to auto download...
QuickMenu.reg
My default QuickMenu settings.
Regional Options.reg
My default Regional Settings.
S2U2.reg
My default S2U2 settings (for instance turning the wallpaper off).
SIP.reg
My default Secondary Input Panel (onscreen keyboard) settings.
Soft Keys.reg
Changes my Start Menu key to QuickMenu, my PTT button to the Comm Manager, longpress PTT button to VoiceCommand, my Left Softkey to the NowScreen of SPB Mobile Shell and the Right Softkey to the Menu Launcher of SPB Mobile Shell...
SP TimeSync.reg
Set SP TimeSync to automatically minimize & timesync - see also the later section of automatically loading the timesync at startup.
Spb Mobile Shell.reg
My default Mobile Shell settings (mainly weather location).
Today Items.reg
Turning on (enabled=1) and off (enabled=0) many items on my Today screen and setting the Wireless, HTC Home and SPB Mobile Shell to "movable" (Type=4) as done by KaiserTweak and Advanced Config.
Total Commander.reg
Setting my default Total Commander shortcut folders (double click the folder entry bar) and some other options.
Tweaks.reg
Many, many, tweaks gathered from programs like KaiserTweak and Advanced Config (for instance: changing default ringtone, power management settings, hsdpa on, etc.)
VoiceCommand.reg
Turning off most VoiceCommand automatic notifications.
Volume.reg
Setting my default volume.
Weather.reg
Setting my right HTC Home weather location.
WkTask.reg
Setting up the default launcher shortcuts and settings for WkTask.
Whew.....that was about it - hope it helps
Regards,
Nika.

[reserved]
I'll put the XML Provisioning tips in here...

I have a script (added to Auto\Scripts) that automatically loads my favorite theme (thanks to juju-35, read here):
SetStyle.mscr
Code:
Sleepmessage(3, "This script sets a new style...", "New Style", 1)
Run( "\WINDOWS\cusTSK.exe", "\WINDOWS\Nice.tsk" )
Sleepmessage(3, "Done...")
Regards,
Nika.

As mentioned above some more tips for some of the applications that I have provided default registry entries for.
JiveTalk
Add your JiveTalk.sdf to the Auto\Root folder. I have installed JiveTalk to "\Program Files\JiveTalk" and therefore I have "JiveTalk.sdf" in the "Auto\Root\Program Files\JiveTalk" folder - it then automatically copies my JiveTalk configuration.
I also have a fileset in my "filebackup.ini" that backups the current version of the file:
Code:
[FileSet1]
FileBackupDirMode=Auto
file1=\Program Files\JiveTalk\JiveTalk.sdf
TomTom Navigator
For TomTom I've added the TomTom settings file to my "filebackup.ini" as well. This makes a backup of all my settings and I do not have to click through the default screens anymore (like selecting the language, etc.):
Code:
file2=\Program Files\Navigator\*.dat
file3=\Program Files\Navigator\*.cfg
file4=\Program Files\Navigator\*.bif
SP TimeSync
To automatically start my SP TimeSync after my first reboot of the device, I have added a shortcut (copied from the Windows\Start Menu\Programs folder) to the "Root\Windows\Startup" folder
Today Theme
To automatically load the theme mentioned in the Mortscript section (above) I add the theme (Nice.tsk) by having it added to the "Root\Windows\Startup" folder.
Regards,
Nika.

Awesome work Nikagl - that was really quick! I been searching for the Resco key locations but I can't find a single one...yet!!!

Moe5508 said:
Awesome work Nikagl - that was really quick! I been searching for the Resco key locations but I can't find a single one...yet!!!
Click to expand...
Click to collapse
Don't forget that some application may use files for registration. I always do a before/after export of registry and a search "files changed during last day" using Total Commander...

Hi all,
I might be moving this to a wiki as it looks like the forum doesn't allow more than 10k characters per post and splits up the registry files for some reason... more news soon....
Regards,
Nika.

How about you zip the reg files?

Moe5508 said:
How about you zip the reg files?
Click to expand...
Click to collapse
Yup, will work, but will make explanation a little harder - give me some time (probably tomorrow) and I'll update the thread

Ok, I've added some stuff - more tomorrow

nikagl said:
[reserved]
I'll put the XML Provisioning tips in here...
Click to expand...
Click to collapse
Thanks nikagl.
I think this would be best in the Wiki...with the main SASHIMI thread still as a discussion thread. I was going to suggest it when you first mentioned making this thread.
I just don't want people posting here with feature requests, bugs, etc, instead of the main thread. Also, in the Wiki, this info won't get lost.
Let me know what you are doing and I will try to link it from the main SASHIMI thread.
Also... don't spend too much time on XML provisioning yet... the new version of SASHIMI will be coming with a new app I've written called Makisu which will create XML provisioning files for E-mail and wireless accounts (it runs on the device!). I was going to add it into SASHIMI , but I made it a stand alone that I will release it stand-alone and with SASHIMI .
I think you guys will like it

It keeps on getting better and better - awesome work Bengalih!!!!

I'll convert it soon to Wiki format and add other information too... does one of you have a good wiki converter I can use to change the current html page into wiki-format?

nikagl said:
Don't forget that some application may use files for registration. I always do a before/after export of registry and a search "files changed during last day" using Total Commander...
Click to expand...
Click to collapse
Hmmm, using Total Commander, huh? Let me try this process. I wanna hunt down those illusive Resco reg key locations (Resco Backup, Resco Explorer, Resco Brain Games etc etc)

reg settings
hello Nikagl, great work, this info combined with Sashimi is just awesome.
there are some reg setting that i have searched for but had no luck, one is the setting used with kaiser tweaks for the scroll bar width, i like mine set to 10 and then the setting for image, music and video to the storage card.
thanks
Lupe

Great thread. Personally the SPB registration entries are the most useful to me. Thanks for that.
The first time I configured Sashimi, I used the XML files from Kaisertweak and Advancedconfig to find registry entries. Maybe it's good advice for new users.
The XML files can be found and downloaded here:
http://wiki.xda-developers.com/index.php?pagename=KaiserTweak
http://wiki.xda-developers.com/index.php?pagename=AdvancedConfig

kaiser tweaks xml file
Dr. Strangelove said:
Great thread. Personally the SPB registration entries are the most useful to me. Thanks for that.
The first time I configured Sashimi, I used the XML file from Kaisertweak to find registry entries. Maybe it's good advice for new users.
Click to expand...
Click to collapse
thanks for the info on using the kaiser tweaks xml file, perfect,
thanks
Lupe

Some more reg key locations...
[HKEY_LOCAL_MACHINE\Software\Anton Tomov\Pocket Mechanic Professional]
"License"="xxxx"
[HKEY_LOCAL_MACHINE\Software\Apps\Resco BrainGames]
"RC"=dword:xxxx (format this to hexadecimal data type)
[HKEY_LOCAL_MACHINE\Software\Resco]
The whole string changed after registering Resco Backup, Explorer and BrainGain...
I just can't seem to properly isolate the Resco reg locations...

Related

BT Icon?

I search the link who launch the icon of BT on the botton right. I lost the icon and I don't want make an hard reset whith reinstall for retreive it.
Thank's
hope this help
try this:
There is a workaround for this problem.
It's not pretty, it requires hacking the registry, but it works.
I found it at http://www.ppc-welt.info/community/showthr...7403#post397403, but had to make a slight adjustment.
I assume that you know
- How to install form a CAB file
- How to create and edit a shortcut on your Pocket PC
- How to edit the registry on your Pocket PC
Ready? Here we go:
1) Download NoPluginsToday (you'll most likely want the ARM version) from http://www.ictinus.com/NoPluginsToday/
2) Install the CAB somewhere. Make sure you know the exact location of NoPluginsToday.exe (e.g. \Storage\NoPluginsToday\NoPluginsToday.exe)
3) Create a shortcut to NoPluginsToday.exe in \Windows\Startup. Name this shortcut ZzzNoPluginsToday, so that it is last in the list of shortcuts to be launched.
4) Start a registry editor, and go to HKLM\init. Look for keys named LaunchXX. You'll want to create a new String key named LaunchYY, where YY is a bigger number than any of the XX you found. I created Launch99. The value for LaunchYY is the exact location of NoPluginsToday.exe (e.g. \Storage\NoPluginsToday\NoPluginsToday.exe) you looked up earlier.
Now you're set! Do a soft reset, and see your Bluetooth icon again! You'll notice your startup time may be a little longer.
How does it work?
The BT icon disappears because of a timeout issue when loading plugins.
We solve this by using NoPluginsToday, which switches all Today plugins off, remembers the settings, and reactivates them the next time it is executed.
By calling NoPluginsToday twice, once via the registry (early) and then again via \Windows\Startup (late), we "postpone" the loading of Today plugins until after the BT icon has been activated. That's your longer startup time for you.
Hope this helps!
(from Pocket breeze website forum)
Thank's I try it when I have 20 minutes
Timon said:
Thank's I try it when I have 20 minutes
Click to expand...
Click to collapse
hi Timon,
you can maybe try this first:
http://forum.xda-developers.com/viewtopic.php?t=16252
buzz

Reg Tweak FILES: Post/Get them here

Let's start a thread of all the reg tweaks ppl have come up with. If they are saved as .reg files (to an SD), we can install them with a mere double-click by using TRE (options>associate), and anyone can contribute to this post WITHOUT having to build .cab files! Why is this kewl; cos when u hard reset it's a real ball-ache to go back into all the forums to find the tweaks u applied and to navigate thro TRE to re-apply them all. This applies particuarly to settings (Owner info etc). Over and above, we are no longer beholden to tweak shareware, but have full and instant control over our settings.
Each tweak should have 2 reg files; Apply the tweak, and remove the tweak (if possible). In this manner, we can have a directory of reg files, and can turn on and off tweaks with a simple d.click.
Attached is a basic set I've compiled. Please let everyone know if any are a problem (ie perhaps whole key gets replaced and overrides something u have already changed). Files described below:
[*]Reg Date_In_Titlebar ON.reg
Adds the date to the title bar, with format according to your short-date format under settiings>regional (or found manually changed in another Tweak I'll cover later). I do NOT have a .reg file that will undo (ie delete) this new key, but it's easy to see what key is being added so u can delete it. <Credit: Well known PPC tweak - I probably learnt from toenailed>
Can someone please find out where we can change the font for this - it's a horrible bold font that doesn't fit in the space available?
[*]Reg Font_Menu_+_Pop_700 ON.reg
Change menus and popups to a smaller font. Nice size, makes VGA look more VGA-like, yet not so small that it fails cleartype nor looks daft. Requires a reset. <Credit: Well known PPC tweak - I probably learnt from toenailed>
[*]Reg Font_Menu_+_Pop_900 DEFAULT.reg
Reset above change to default of 900
[*]Reg Font_System_700 ON.reg
Changes system font to 2 pts smaller. I find that dialog boxes with radio buttons got a bit wierd, and you don;t get much more screen estate height cos of icon sizes staying the same in file lists, so I don't bother with this tweak. Requires a reset. <Credit: Well known PPC tweak - I probably learnt from toenailed>
[*]Reg Font_System_900 DEFAULT.reg
Turn above off
[*]Reg GPRS_+_3G_Always _On DEFAULT.reg
Awesome tweak to make sure ur phone connects to GPRS/3G and stays there. However, you'll want to switch this off overnight etc, which is the main reason I created this post and these reg files. NOTE: you will absolutely HAVE to replace the "MTN SA Web" bit with the name of your connection which you will find in this key using TRE
<Credit: BrettS http://forum.xda-developers.com/viewtopic.php?t=30277>
[*]Reg GPRS_+_3G_Always _On ON.reg
Turn off the above. Remember to change connection name in file
[*]Reg PIE_Homepage_Default.reg
When u press the E (explorer) keyboard key u go to clubimate homepage - annoying. This resets that hard button to whatever u want (current reg file is windows\default.htm)
<Credit: I forget, someone on clubimate forums>
[*]Reg TerminalServices_Cache_Larger DEFAULT.reg
AWESOME improvement in Terminal Services client horrible black blocks. Increases cache sizez - I did not notice an increase in traffic/cost
<Credit: Carnivor from MS KB http://forum.xda-developers.com/viewtopic.php?t=29996>
[*]Reg TerminalServices_Cache_Larger ON.reg
Turns above off
More coming as I go thro the wiki and toenailed tweak posts and extract usefull ones for us lonely Universal users...
can you add the actual keys to here?
http://wiki.xda-developers.com/index.php?pagename=Universal_Registry
cos of this thread
http://forum.xda-developers.com/viewtopic.php?t=30396
Doh! That post came up after I started this thread.
Still this thread is useful for the actual .reg files to same n00bies some time (and to save me time too). I'll make sure everything here is duplicated there tho.
Here are a few more .reg files:
Several versions of date_in_title_bar (covered above)
Hide_Screen_Rotation icon
Hide that icon that allows u to rotate screen - but JJ does it automatically so Icon is not so necessary
Regional_settings
These are for me - u should edit file in text editor to customise 4 yourself. Best part is my short date format that keeps date in title bar small and visible
Ringtone_settings
Customise as above
Screen_Speed_Glyph_Cache
Double your screen cache. COsts a LITTLE memory, and improves screen size
Screen_font_'smaller'
Set screen font size to "smaller". This can be changed in "settings"m and I only include it here in line with my suggestion that we have a collection of files to run quickly on reset. You may want to customise as above
SIP_Settings. Ditto
All in updated zip file.
I would really appreciate if anyone can find a way to get rid of the Last Call in the dialer screen... I know its somewhere hidden in Registry, but I dont seems to be finding a way to get tru it...
Having the Last Dialed No. showing rite up on the Dialer Screen is really bothering and if you happened to press the phone button by mistake twice there we go the last dialed no. has been dialed already for you....
Bump: no-one contributing to this learning?
haven't found anything else worth posting yet m8, u got the best ones already :wink:
craigiecraigie4: Thanks for these - great idea!
I have a suggestion:
HKCU/ControlPanel/Backlight sets the backlight duration for the keyboard (in seconds). It's available through the control panel, but I like it set to more than the CP maximum of 10 seconds. Sorry - I don't know how to create a reg file.
To reset, choose another value in the backlight control panel applet.
Don't have any others to add though
Found another one:
Change the width of the vertical scroll bar and the height of the horizontal scroll bar so they take less room on the screen:
HKLM\System\GWE
Change cxVScr to (say) 10 to make vertical scrollbar narrower. Default value is 14
Change cyHScr to (say) 10 to make horizontal scrollbar narrower. Default value is 14
This change affects various scroll options in the system including the up/down arrows in selection boxes. 10 is a nice size.
This one is in this forum:
from davidberrysmith
--------------------------------------------------------------------------------
Any body remember these reg tweaks from himalaya? they still work
*** Speed Up Your Windows Mobile Pocket PC.
1. Open your registry editor o_n your Pocket PC
2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\GDI\GLYPHCACHE\
3. Change the value of 'limit' from 8192 to 32768
4. Close registry editor and soft reset.
*** disable start menu animation
Browse to HKEY_LOCAL_MACHINE\SYSTEM\GWE\Menu\
Change the "AniType" value from 6 to 0.
_________________
i-mate jasjar
Click to expand...
Click to collapse
SiliconS said:
Found another one:
Change the width of the vertical scroll bar and the height of the horizontal scroll bar so they take less room on the screen:
HKLM\System\GWE
Change cxVScr to (say) 10 to make vertical scrollbar narrower. Default value is 14
Change cyHScr to (say) 10 to make horizontal scrollbar narrower. Default value is 14
This change affects various scroll options in the system including the up/down arrows in selection boxes. 10 is a nice size.
Click to expand...
Click to collapse
Nice one dude. I can't make the .reg file cos I can only create reg files of the entire key, and there are too many other things under GWE that users may have changed.
Internet Explorer
Somewhere in those forums I found the IE reg hack to make mine 5.5, this helps connecting to my bank account and viewing other secured sites.
read this somewhere
To change the ability to receive files via Bluetooth (OBEX)
The setting is at 'HKEY_LOCAL_MACHINE\Software\Microsoft\Obex'
The 'IsEnabled' DWORD value should be set to '1' to enable OBEX and '0' to disable OBEX.
For example, to enable the ability to receive fles via Bluetooth
HKEY_LOCAL_MACHINE\Software\Microsoft\Obex\IsEnabled = 1
says receive so i dont know about send, try it!! might be it
But apparently now this is the same feature as the receive incoming beams setting in connections.
Yes, I know that's not free but 90% of all this hacks have been included in Tweaks2K2. And the other 10% are about to be included :twisted:
Yeah, true. Idea of this thread was to have a facility whereby a hard reset can be quickly restored to a working device - install a few basic apps, run the .reg files, and there u go. Takes me about half an hour from HR thro to up and running perfectly.
craigiecraigie4 said:
Yeah, true. Idea of this thread was to have a facility whereby a hard reset can be quickly restored to a working device - install a few basic apps, run the .reg files, and there u go. Takes me about half an hour from HR thro to up and running perfectly.
Click to expand...
Click to collapse
With your .reg files as inspiration I'm just about getting there in the same way. I've written down all the steps and I just run through them. I've done this since I had my XDA2 and it makes a hard reset so much less traumatic:
Code:
Hard reset. Wait for Today screen then soft reset.
Connect cable to ActiveSync. Set up guest connection.
Turn off beams, error reporting
Set basic clock accuracy
Copy Step 1 files to root of PPC [These are the CABs for the programs I install]
Run CABs. Leave O2 Connections CAB. Put gps.CAB and PIMAddin onto storage card
Run TRE registry editor. Associate .reg files to TRE
Open the .reg file [This applies my registry settings. See below]
Run O2 connections CAB
Copy all Step 2 files to root of PPC [This adds shortcuts to StorageCard-installed programs to my Start Menu and gives me my freeware email client and PZP icons and profiles]
Run SDK Certs CAB
Run OzVGA. Change all fonts to same size as qVGA
PPC: edit registry: browse to HKLM\ControlPanel\GPS Settings. Delete the DWORD marked "hide"
CPL > Personal > Buttons: match Button 2 to [Task switcher], Button 4 to <Rotate Screen>; Set button lock
CPL > Personal > Menus: ActiveSync, File Explorer, Internet Explorer, nPOPw, Pocket Informant, Task Manager, TomTom Navigator
CPL > Personal > Owner: set owner information
CPL > Personal > Phone: change band to GSM
CPL > Personal > Today: set items to Date, PZP, PocketPlus, PocketBreeze, Messaging; set theme to Windows Default
CPL > System > Clock: Show time on all screens
CPL > System > Regional: Set locale to UK
CPL > Connections > GPS: set program port COM0
Soft reset
Set password for PPC
PC: backup previously sync'ed files folder
PC ActiveSync: delete previous partnership. Don't delete sync'ed files folder
CPL > System > About: Set DeviceID = XDAExec
Connect PPC and PC with cable
Sync only Contacts, Calendar (all), Tasks, Favourites
Sync files. Replace the items on the device
PocketBreeze: import settings
PocketPlus: import settings
PocketInformant: run and let it fanny about
PocketWeather (on PocketBreeze tab): import settings
Run ListPro. Enter registration code
Disconnect from PC
Set up phone speed dials
Set up voicedial tags
Set up ActiveSync via Bluetooth to Workstation
Set up bond to headset
Set up bond to GPS thingy. Choose Serial Port as profile
Start TomTom Navigator. Run through startup.
InternetExplorer: sort out view settings. Set default page to about:blank
Choose Transcriber input method. Import settings file
This is my .reg file that does almost everything I need done in one step:
Code:
[HKEY_LOCAL_MACHINE\ControlPanel\GPS Settings]
"Group"=dword:00000002
[HKEY_CURRENT_USER\ControlPanel\Backlight]
"QKeyLedTimeout"=dword:0000001e
[HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client]
"Keyboard Layout"="00000409"
"BitmapPersistCacheSize"=dword:00000001
"BitmapCacheSize"=dword:00000015
[HKEY_LOCAL_MACHINE\System\GDI\GLYPHCACHE]
"limit"=dword:00004000
[HKEY_LOCAL_MACHINE\nls\overrides]
"SSDte"="d/M "
[HKEY_LOCAL_MACHINE\HARDWARE\OEM\KEYBD]
"PieHomePage"="about:blank"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell]
"TBOpt"=hex:\
13,00,00,00
It makes a massive difference using commercial software that has a reliable import/export process for the settings and this, IMHO, is usually the biggest difference between paid-for software and freeware alternatives.
Silicon, don't u want to re-post your post here:
http://forum.xda-developers.com/viewtopic.php?t=31697
We need more of these 'standard' configs to help new users get up n running without giving up on their universal.
dude, your screen - how?
craigiecraigie4
how did you make htc look like that?
is it standard? emailable? I don't really want the merc style if it can be changed, but its a nice screen all the same
Re: dude, your screen - how?
simon_darley said:
craigiecraigie4
how did you make htc look like that?
is it standard? emailable? I don't really want the merc style if it can be changed, but its a nice screen all the same
Click to expand...
Click to collapse
You don't want merc!! well u can just f off then! ;-)
It's WisbarAdvance2 with WAD - see another post I started in this forum. u can put in on any universal, with whatever walpaper u want, and there are plenty of free skins
Re: dude, your screen - how?
craigiecraigie4 said:
It's WisbarAdvance2 with WAD - see another post I started in this forum. u can put in on any universal, with whatever walpaper u want, and there are plenty of free skins
Click to expand...
Click to collapse
Whatever it is, it's distracting to have such a big picture in your signature in such text-based forums.
Sorry craigiecraigie4. Don't mean to offend. Just MHO.

[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!

Touch HD Manage Rotation Control without an APP (instant AUTO-ROTATE)

Just like A/B/C... you learn, you manage, then MASTER.
There are a million thread's about rotation control with application's, but i never found a solution to control rotation you can manage yourselve, using Gsensor without an application like: Rotate screen, accelerometer,Changescreen,G-config, Gyrator or G-sen to name a fiew.
I use WM 6.5 Energyrom with SPB 3.5.3 and use Rotate screen with the Send "Long Hold" button to rotate screens, but this function took a second or 2 to rotate and I dont like to wait %#*@%.
I wanted to auto-rotate my screen's without waiting for it. Just turn my mobile and the screen would follow .
I found a great solution by MAMV to rotate screen in SPD and this guy even made a .CAB, so it was downloading and installing and done. You can find it on XDA.. http://forum.xda-developers.com/showthread.php?t=616158 <many thanx to him and his solution>.
After installing I found out this would only rotated the SPD screens, not the HTC screens. SMS or Email was still in portrait view.
Using the explaination MAMV gave in his thread, i started my own function to rotate SMS and Email. It took me 2 hours to find the solution, but it works
I started looking if someone had the same problem and found a solution, but all came up with none, but i found a thread by David K. that gave me a good start... http://www.fuzemobility.com/gsen-now-enabled-in-more-apps/
START:
How it works and how you manage your rotation of applications yourselve without installing an APP for it, i will give my explaination how i did it for the SMS / MMS function. (this one works for Email too )
Using Total Commander, navigate to:
HKCU\Software\HTC\HTCSENSOR\GSensor\Calculator. Select File > Copy. \\\registry\HKCU\Software\HTC\HTCSENSOR\GSensor\ModuleName\Calculator
Select Copy and save it to \windows
Find the Calculator.reg "file" you just copied with Total commander. Rename it to whatever you like aslong as you keep the .reg . (I called mine Messenger.reg, this will return below at section B: 2)
A:
Adjusting the .reg file properties
Select this "File" and view the Properties. Edit the properties like this:
1: Select tab "Associate" and tab on the button Associate...
2: Change the "Command" to: \Windows\tmail.exe
3: Change the "Parameter" to: -service "SMS"
4: If i am correct the "Icon file" will auto fill itself, but should have these
parameters: \windows\tmail.exe
5: Index: 0 and -1001
Press OK and press OK again, now your .reg file is finished.
Explaination of parameters and how i found these:
The parameter at 3: i found out with Task manager V3.1 (other versions could work, but i have this one).
I first opened the sms box and then started Task manager and searched the process Tmail. Then looked at the path in this process and found \windows\tmail.exe -service "SMS". This i used in the "3: parameter" of the .reg file)
Then i looked at the Details of "tmail.exe" and opened the tab "Windows".
Here i found Window 7C0883E0 "SMS / MMS" Inbox.MainWnd (this i need in the registry and will come back below at B: 5).
NOTE: You can find the window 7C0883E0 easily, because it is the only one lighted up .
B:
Make new Registry settings for the assigning of G-sensor rotation to SMS / MMS
I used Total commander to navigate to: HKCU\Software\HTC\HTCSENSOR\GSensor\ModuleName
1: make a new string called "SMS / MMS".
2: Contents for <SMS / MMS>: \windows\Messenger.reg (our own made .reg file)
Hit OK and this one is finished.
3: Now navigate to: HKCU\Software\HTC\HTCSENSOR\GSensor\Whitelist
4: make a new string called "SMS / MMS".
5: Contents for <SMS / MMS>: Inbox.MainWnd
Hit OK and this one is finished too
C:
Getting the AUTO-ROTATION to work:
Just soft reset your device and find out if it works.....and i was happy that it did LOL.
This Thread was specially made for AUTO-ROTATION without installing an application.
Other applications can be done likewise, just find out the parameters and make the ABC
A: Change a .reg file parameters. (find your settings with Task manager)
B: Make new strings in the register @ "ModuleName" and "WhiteList".
C: Softreset your device.
Hope this was usefull to some of you.
Well Kwbr's latest 6.5 roms have it built in so maybe they might interest you. It can be quite annoying though tbh so your edits here might help out.
Thanks for the info.
I stick to Energyrom. It is as complete as it gets with applications and updates. Have tried many roms the last few months, but they all work the same.
Now i found out SPB mobile shell and am surprised how convenient it works. Even my main memory stays 50% so it works flawlesly.
Some edits/improvements made by my own makes it even more pleasant to work with
Regards,
Axelman

I'm a flash addict

... and I need some help....
so... i have an HD2... and i want to get rid of each customization after each new coocked rom that i install....
althoug i searched is still hard to figure it out how to do all the stuff... so i'll just post a small request and if someone has time maybe will give me (and the others) a little help...
i need to automize the following...
install a set of cabs:
cookie home tab
advanced cookie home tab
cookia home tab editor
resco explorer
total commander
1% battery indicator
this is easy through UC
cutomization:
disable my location (registry) - i already found a record in the registry that does that
remove all locations - add my home city
regional settings - my home country
internet default location set to internet (by default it sets itself to wap)
sms: delivery notification ON
camera setings - superfine in pics
manila tabs config - just the order in witch they are and the tabs i don't wanna show... i founded in registry also
font set to smallest
vibration (haptic) disable
phone ringtone set to K.O.
sms/mms set to alert fader high no vibrate
email set to alert shine no vibrate
missed call no alert
ring type set to ring no vibrate
quiet ring se to ON
pocket ring mode set to ON
no charge over USB
set clear type
email account (exchange - google sync)
cookie home tab settings: CookieHomeTabEditor
callendar look forward 31 days
shortcut grid 4x4
1 tab of shortcuts
default page: no1
shortcuts in the home tab... i found those in the registry also
facebook account credentials
and i think that's it...
with the os customization i know i need to insert somehow the registry settings... but i don't know how.... with chteditor settings and facebook i guess is still registry settings but where and how?
I've seen sashimi... but still... I know how to use it... I don't know how to configure it...
So... plz HELP...
lots of cooked roms have an auto instal feature. put all your cabs in a folder called autoinstall on your sd card then when your phone boots after a flash/hard reset will install them.(let the phone sit for 5 mins when it first starts up, thats when it installs them.
as for the settings, build your own cab. I use wince cab manager. takes a little time but once its set up you just run it after everything else has finished (don't auto install it, cos the cabs don't necessarily instal in the right order. so for example you instal an opera tweak then install opera your tweaks are overwritten.)
my tweaks cab installs my custom lock screen, enables htc magnifier, tweaks opera cache and user agent, decreases screen sensitivity, and a few other things.
Even better, heaps better, get sashimi, study the tutorials, then you can choose which cabs to install to internal meme, which to sd, what reg keys to import, what static files to copy where, and if you need it, add scripts, certificates, run EXEs, whatever you ask.
I use mortscript for doing customisation stuff.... I generally run nrg rom's which use XDA_UC, so I can drop .reg files in the folder and it adds them on rebuild.
Code:
#Backup Ringtone Settings
outfile="\storage card\xda_uc\RingTone.Reg"
If (FileExists(outfile) = 1)
Delete(outfile)
endif
key="ControlPanel\Sounds\RingTone0"
Category=RegRead(HKCU,key,"Category")
SavedSound=Regread(HKCU,key,"SavedSound")
Script=Regread(HKCU,key,"Script")
Sound=Regread(HKCU,key,"Sound")
WriteFile(outfile,"REGEDIT4^NL^")
WriteFile(outfile,"^NL^",true)
WriteFile(outfile,"[HKEY_CURRENT_USER" & "\" & key & "]^NL^",true)
WriteFile(outfile,"""Category""=""" & Category & """^NL^",true)
WriteFile(outfile,"""SavedSound""=""" & SavedSound & """^NL^",true)
WriteFile(outfile,"""Script""=""" & Script & """^NL^",true)
WriteFile(outfile,"""Sound""=""" & Sound & """^NL^",true)
That is from my backup script. Creates a .reg file with the settings for the ringtone stuff in to the XDA_UC folder so my last ringtone settings carry across
thanks guys....
use the installation of software i got it... and if the rom isn't UC capable i can do it with sashimi (i have seen the tuto videos and read the doc)... also with sashimi i can do my email settings...
what i didn't understand is how to build my customization.... i just search every registry record... write it down.... and then what?.... sahii says to put it there somewhere... but not exactly how to create it.... and what if a custom thing it is not present only in one place like user or local machine?...
don't understand your question. But to create the file, use the regexport tool. You build an INI describing which registry keys you want. The tool extracts them and creates a backup file for future re-deployment.
Been searching for a topic like this for a while!
Thanks for starting this thread!
I too am a flashaholic and REALLY get frustrated at having to customize EVERY time you flash...
Installing apps is easy, dump them into the UC folder on your SD card and voila.
The tricky part is getting the Regional Settings and Time Zone sorted. I tried exporting these settings from the Registry and putting them into the UC folder, but it still doesn't work...
Just use SASHIMI. This awesome soft does everything you mentioned above!
BTW: SASHIMI has a big help-file/HowTo included and you can find good video-tutorials on youtube as well.
i'll try sashimi more... and get back...
so for sashimi... actually you need a clean install with all programs and customization manually made and after that export the registry settings?
ok.. i've found CeRegEditor... with this I saw that I can export my registry... now I need help in order to localize all settings I need... and to avoid to miss regs that are placed in more than one place...
disable my location, manila tabs config - just the order in witch they are and the tabs i don't wanna show... and cookie settings for home layout - HKEY_LOCAL_MACHINE\Software\HTC\Manila
phone ringtone set to K.O., sms/mms set to alert fader high no vibrate, email set to alert shine no vibrate, missed call no alert, ring type set to ring no vibrate - HKEY_CURRENT_USER\ControlPanel\Notifications
I don't know if it is enough for the mentioned settings or if they appear in other places also.... i found out that ceregeditor only exports folders not single keys...
to export whole paths of registry keys, just go into totalcommander's registry editor, in double folder view, then COPY the selected folder of registry keys to a physical folder on the device, it will transparently create a .reg file
To import the reg file back again, either you use sashimi, or you COPY the .reg file from the memory into the registry with totalcommander
Pretty impressive huh
ok.. my first try was a mess....
i used sashimi... put the cabs all together.... this worked ok... although i have to change some names to install them in the correct order...
i made some reg files with CeRegEditor via activesync on the computer... i've put them into reg folder.... but nothing was imported... i think the format was not ok... at least i know what regs i need for the moment...
and last... i made an xml via sashimi/makisu... but this didn't worked either...
i'll keep trying....
LE: ok... it seems that i managed to make with some of the registry... with the xml file for the active sync i'll try more tomorrow....
does anyone know where I can locate facebook credentials inside registry.... not facebook the app but the sense integration...
and also where can i find the registry for
alarms
removing weather cities
removing timezone cities
setting regional setting to a specific country
thanks

Resources