[REF] Rotating apps using registry and finding classes - HD2 General

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!

Related

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.

Mapping iContacts to dialer possible?

I am using the Nargz iPhone eten dialer, and I need to know how to map the iContacts exe to the dialer contacts button during calls, any ideas? Thanks
Ive already tried this but I guess it doesnt work for dialer skins:
* Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Rai\:M SCONTACTS
* Change "String 1" value from :MSPOUTLOOK contacts to "\Program Files\iContact.exe". (or wherever you installed the icontacts.exe to)
from http://forum.xda-developers.com/showthread.php?p=1908167#post1908167
Put iContacts.exe in your Windows\ directory
gcode_81 said:
Put iContacts.exe in your Windows\ directory
Click to expand...
Click to collapse
How do I map it to the dialer?
Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Rai\:MSCONTACTS
* Change "String 1" value from :MSPOUTLOOK contacts to "\Windows\iContact.exe"
Worked for me
gcode_81 said:
Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Rai\:MSCONTACTS
* Change "String 1" value from :MSPOUTLOOK contacts to "\Windows\iContact.exe"
Worked for me
Click to expand...
Click to collapse
Thanks, Memmaid was never able to see that string but I finally decided to use a different registry editor and Im good to go...
is there a way to do this for Mobile Shell's Contacts?
I'm not sure about that one. Have you tried looking in \Windows to see if there is an .exe file to run mobile shell? let me give it a try...i'll get back to you
Well...I'm unable to try it on the 6700 because I'm running a 6800 and I don't know if it will be the same
Hi, just downloaded i-contacts, and looks quite nice, as do a few other 3rd party contacts list. But I was just wondering does the string above basically re-map the contacts soft-button to open i-contacts instead of outlook contacts? Or is there a way to do this. IE, just want to make i-contacts (or something similar) my default program, rather than having to open it from programs every time. Just lazy I guess.
****Forget that, iContacts has done it automatically after a few soft resets *****

Shaping the cube with 4 sides

http://www.youtube.com/watch?v=LlRVh8oA1rw
With a registry editor ( http://www.freewareppc.com/utilities/phmregistryeditor.shtml ) in HKEY_LOCAL_MACHINE\Software\HTC\Biotouch we see the folders APLauncher + MediaHubMini. The first one it contains the regulations for the side of cube with 6 applications and the second one, the regulations for the side of cube with 3 applications.
Opening the file APLauncher we see at line, 6 files with name App0 - 5. Each one represents a button of cube, in the side with 6 applications. We are interested for the fields Name where we fix the name of application that will appear on screen and Path where we fix the path of application that we want to place.
In this example I have put the application Live Messenger changing string with \Windows\WLMMessenger.exe with preferred application. Attention, we needed exe no ink, that exist in windows folder or Program Files folder.
With the same way open the folder MediaHubMini. We see at line, 3 files with name App1_1 - 3. . Each one represents a button of cube, in the side with 3 applications. At the same way we make also here the changes that we wish. The field APNameFontSize it represents the font size.
http://www.youtube.com/watch?v=LlRVh8oA1rw
Here we see the final result. Next stage the change of our own pictures in each program, but most important is to have in the cube the applications that we want to have easy access with one hand. Most careful and those who have installed the HTC Action Screen will discover in the folder Biotouch and the corresponding regulations for this.
==========================
==========================
Another side with six applications in cube
1. In HKEY_LOCAL_MACHINE\Software\HTC\Biotouch add a folder with name APLauncher4 with the same content of APLauncher.
2. In HKEY_LOCAL_MACHINE\Software\HTC\Biotouch\Βiotouch add a String Value with name App4 and String APLauncher \Windows\APLauncher4.exe
3. In HKEY_LOCAL_MACHINE\Software\HTC\Biotouch\Βiotouch add a Βinary Value with name Cube4 with the same content of Cube3.
4. In HKEY_LOCAL_MACHINE\Software\HTC\Biotouch\Βiotouch change the DWORD VALUE Total Cubes from 3 to 4.
5. In windows folder make a new file with name APLauncher4.exe copy from APLauncher.exe
==========================
==========================
All that require big experience and knowledge and become more easily with copy, paste & rename.
Thanks to butzchan, atao, hawk eye tim.
Can I ever thank you enough?
Thank you so much Pano! This is a really great tweak!!!
Easier and more user friendly is carlos' touchsettings. can be found on www.fatattitude.com. Thread is somwhere in development here. No need to go to reg.
In my and some other devices, this application does not open.
weird :-( I have polaris (o2 orbit2) and works w/o probs. But i had to install cube from CAB (bloody f..ing o2 ROM) Hopefully soon will be some custom ROM
Isn't there a easier way
Thx.
I am old fashion man.
panosha said:
I am old fashion man.
Click to expand...
Click to collapse
Thanks a lot.. That's exactly what I need.. the old fashion way.
I prefer this method than installing a tweak program. Even installing
a program is easier, but I love this way..
Thank you..
Lets add another cube!!
I have successfully added another cube by making 3 regedits:
I added:
HKLM/Software/HTC/Biotouch/Biotouch--added REG_SZ called App4 (value data same as App3)
HKLM/Software/HTC/Biotouch/Biotouch--added REG_BINARY called Cube4 (value data same as Cube3)
Changed HKLM/Software/HTC/Biotouch/Biotouch/TotalCubes from 3 to 4
I now have 4 cubes, but obviously the added cube is a clone of the APLauncher (6 button) cube that already existed. My question is (being a newbie at this, and feeling like GT330 and panosha do) how do I change the new 6 APLauncher cube to display different programs?
Is it as simple as adding an APLauncher2 Key, values, etc in the registry??
I can't find a way to make it work.
panosha said:
I can't find a way to make it work.
Click to expand...
Click to collapse
I've added the 2 registry keys and modified the TotalCubes key :
Added HKLM/Software/HTC/Biotouch/Biotouch/App4 (value data same as App3)
Added HKLM/Software/HTC/Biotouch/Biotouch/Cube4 (value data same as Cube3)
Changed HKLM/Software/HTC/Biotouch/Biotouch/TotalCubes from 3 to 4
And made a complete reset, all is ok, i have a 4 Face cube, thanks to butzchan
Now lets get some help on changing the reg values to have 6 different programs on each of the APLauncher cubes, for a total of 12. I wonder if you copy the APLauncher reg values and rename the copied values APLauncher2, it will work. Anyone?
butzchan said:
I have successfully added another cube by making 3 regedits:
I added:
HKLM/Software/HTC/Biotouch/Biotouch--added REG_SZ called App4 (value data same as App3)
HKLM/Software/HTC/Biotouch/Biotouch--added REG_BINARY called Cube4 (value data same as Cube3)
Changed HKLM/Software/HTC/Biotouch/Biotouch/TotalCubes from 3 to 4
I now have 4 cubes, but obviously the added cube is a clone of the APLauncher (6 button) cube that already existed. My question is (being a newbie at this, and feeling like GT330 and panosha do) how do I change the new 6 APLauncher cube to display different programs?
Is it as simple as adding an APLauncher2 Key, values, etc in the registry??
Click to expand...
Click to collapse
nearly that simply
Create a new key by copying and pasting APLauncher i renamed the new key APLauncher4.
Alter the App4 string to 'APLauncher \Windows\APLauncher4.exe'
Then copy and rename the \windows\aplauncher.exe program to aplauncher4.exe
Then just alter the values to your requirement in the aplauncher4 key and reset.
Works a treat on mine.I now have another page with 6 fully programable buttons.
Great job.
Great find....
We can't have another side with contacts.
hawk eye tim said:
nearly that simply
Create a new key by copying and pasting APLauncher i renamed the new key APLauncher4.
Alter the App4 string to 'APLauncher \Windows\APLauncher4.exe'
Then copy and rename the \windows\aplauncher.exe program to aplauncher4.exe
Then just alter the values to your requirement in the aplauncher4 key and reset.
Works a treat on mine.I now have another page with 6 fully programable buttons.
Click to expand...
Click to collapse
That was my next step. Now it works great! Thanks dude!
I am guessing to get another contacts page, all you would need to do is follow the same steps, just with App1 as the base.
Time to edit the other 6 apps.
OK, here are the results of our work. I will try to gather all informantions in the first post. Thank you all.
http://www.youtube.com/watch?v=LlRVh8oA1rw
Nice!!!
This was nice. Exactly one of the improvemets of the cube was waiting for.

[07/08/2008] Sashimi Tips & Tricks

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...

Creating shortcuts which "wrap" a program with WVGAFIX3

For some time, I've been using WVGAFIX3 on my Blackstone to run older games supporting only 320x240 (QVGA) or 640x480 (VGA) resolutions.
As excellent as WVGAFIX3 is, running WVGAFIX3 "by hand" has always been annoying, especially if I forget it the first time, and copying and editing the typical Mortscript for each new game is a hassle:
Code:
RunWait("\Windows\WVGAFIX3APP.exe", "-640")
Sleep(500) # pause suggested by mr_deimos, to allow the dust to settle
RunWait("\path\to\game.EXE)
Run("\Windows\WVGAFIX3APP.exe", "-800")
These scripts have to be stored somewhere, and icons can't be assigned to them, so they're not a good alternative to the plain shortcut.
My next step was to generalize the script (called RunVGA.mscr):
Code:
RunWait("\Windows\WVGAFIX3APP.exe", "-640")
Sleep(500)
RunWait(arg1)
Run("\Windows\WVGAFIX3APP.exe", "-800")
Now, arg1 can be given at the command line in the shortcut - this example is Shift.lnk (for this free, excellent little time waster):
Code:
132#"\Windows\Mortscript.exe" "\bin\RunVGA.mscr" arg1="\Program Files\Shift\Shift.exe" ?\Program Files\Shift\Shift.exe,
(The Shift game can really mess up the Blacstone's display if WVGAFIX3 is not used - I've had to soft reset a couple of times when I forgot!)
This shortcut will look like the original, as the icon is preserved (by repeating the EXE path between "?" and ",", and providing no icon ID after ",", thus using the default ID). When launched, RunVGA script above will do its thing.
Now, the next improvement would be to simplify the shortcut (at the cost of launching an extra process). I have modified RunMscr.exe found here. When renamed to yourscript.exe, the original executes
Code:
Mortscript.exe yourscript.mscr argument1 argument2 ...
My patched version (attached) executes
Code:
Mortscript.exe yourscript.mscr arg1=argument1 arg2=argument2 ...
Notice that RunMscr.exe implicitly names the arguments, something which should have been done by Mortscript a long time ago, in my opinion. Thus, I can copy RunMscr.exe to RunVGA.exe, and modify the shortcut above to
Code:
132#"\bin\RunVGA.exe" "\Program Files\Shift\Shift.exe" ?\Program Files\Shift\Shift.exe,
(Notice that I keep all scripts and manually copied executables in \bin - adjust accordingly in the scripts provided!)
Having RunVGA.exe with my method of passing arguments, means that you can also launch an executable in VGA mode directly from Resco Explorer by using tap and hold, "Open With...", and browsing to RunVGA.exe.
Now, I was pretty happy with this, but wanted a lazy man's solution for creating these shortcuts (and reverting to the original). The following describes how to toggle a shortcut between its original version and its RunVGA version, again using "Open with..." in Resco Explorer.
First create ToggleVGAfix.mscr:
Code:
line=ReadLine(arg1)
Split(line,"#",1,length,shortcut)
Split(shortcut,"?",1,shortcut,icon)
If (Find(shortcut, "RunVGA") = 0)
# This is a normal shortcut, convert to RunVGA shortcut
If (icon eq "")
icon = shortcut
# Strip quotes from icon string
While (CharAt(icon, Length(icon)) eq """")
icon = SubStr(icon, 1, Length(icon)-1)
EndWhile
While (CharAt(icon,0) eq """")
icon = SubStr(icon, 2)
EndWhile
icon = icon & ","
EndIf
line = length & "#" & """\bin\RunVGA.exe"" " & shortcut & " ?" & icon
Else
# This is a RunVGA shortcut, revert to original
Split(shortcut,"RunVGA.exe"" ",1,dummy,target)
line = length & "#" & target
EndIf
# Uncommment if you want to keep the original
#Rename(arg1, arg1 & ".bak", TRUE)
WriteFile(arg1, line)
Next, copy RunMscr.exe to ToggleVGAfix.exe (next to the ToggleVGAfix.mscr script above).
In Resco Explorer, navigate to a shortcut you want to test this on, tap and hold, select Open With, and browse to ToggleVGAfix.exe. Then try launching the shortcut itself - if all goes well, the program will run in VGA mode, and revert back to WVGA when ended.
With all this behind us, we've accomplished this: The next time you install a QVGA/VGA game, navigate to the \Windows\Start Menu\Programs\Games (according to your locale) folder, tap and hold the shortcut, select ToggleVGAfix, and you should be good to go from your normal Games menu.
A small caveat: I've noticed that WVGAFIX3 occasionally doesn't kick into effect in time for the "wrapped" exe. I may look into this if it proves to be enough of a problem. Edit: added a Sleep which fixed this problem for mr_deimos.
great job! I wish wvga worked on wm 6.5 so I could use this with wvga
this can be useful with other programs tho too, do you think i can use this to disable windows mobile's setting temporarily while certain programs are running? I'm having a problem with an music player going into sleep mode while I'm playing a song but I don't want to disable windows mobile sleep completely cause it saves so much battery life.
also is it possible to use this to run a program automatically in the background by ridirecting to the today screen right after running the program?
Nice job. Believe me or not, but i made a script identical to the first one you posted a week ago - just for launching Shift on my wvag toshiba g900 But i just put the shortcut to mscr file in the start menu - you actually can change it's icon so it was good enough for me.
My shortcut is:
Code:
104#"\Storage Card\Program Files\Games\Shift\Shift.mscr"?\Storage Card\Program Files\Games\Shift\Shift.exe,0
But of course, your automagic solution for toggling wvgafix is much better than doing everything by hand
Just a little note - you might want to add a Sleep(500) or even Sleep(1000) before running the app itself. Just using the RunWait to launch wvgafix usually works, but today when i launched shift with script without Sleep() the game actually started before wvgafix finished resizing the screen. So all i got was a black screen. I could close shift by tapping in the top-right corner of the screen, but taskbar remained hidden and i had to soft-reset to get it back. It happened twice in a row. It's seems to be the same problem you're facing. In my case it was probably caused by the fact that my pda is running underclocked a bit (when i was first testing the script it was running at full speed). After putting in the additional 1-second sleep everything works like a charm And the difference in startup time isn't really noticeable.
CowMix said:
great job! I wish wvga worked on wm 6.5 so I could use this with wvga
Click to expand...
Click to collapse
Yes, this is one of the reasons I'm postponing 6.5. (The other, of course, is that kwbr has not yet released a Topix based on 6.5 )
this can be useful with other programs tho too, do you think i can use this to disable windows mobile's setting temporarily while certain programs are running? I'm having a problem with an music player going into sleep mode while I'm playing a song but I don't want to disable windows mobile sleep completely cause it saves so much battery life.
Click to expand...
Click to collapse
Unless your player has the option to disable sleep, modifying my script(s) will probably work fine. Simply replace the Run statements for WVGAFIX3 with whatever executables or registry changes you want to happen. For registry changes, you may want the safeguard of resetting the "standard" values at startup, in case your phone resets or turns off while your player (and the script) is running.
also is it possible to use this to run a program automatically in the background by ridirecting to the today screen right after running the program?
Click to expand...
Click to collapse
Probably! Replace the code in the first script with something like this (untested):
Code:
Run(arg1)
Sleep(1000)
Show("Start")
A different take:
Code:
Run(arg1)
title = "Title of window to hide"
WaitFor(title, 30)
Minimize(title)
This will need more work to use with my shortcuts, as this script also needs the title of the window to hide. The benefit is that Windows will show the previously active window instead of Today, which is usually what you want.
mr_deimos said:
Nice job. Believe me or not, but i made a script identical to the first one you posted a week ago - just for launching Shift on my wvag toshiba g900
Click to expand...
Click to collapse
I think many of us have done a similar job with Shift .
But i just put the shortcut to mscr file in the start menu - you actually can change it's icon so it was good enough for me.
Click to expand...
Click to collapse
That works - I would have preferred to put the mscr directly into the Start menu (to avoid having to stash them somewhere else). In this case the icon is determined by the mscr extension, which looks dull, to say the least .
Code:
104#"\Storage Card\Program Files\Games\Shift\Shift.mscr"?\Storage Card\Program Files\Games\Shift\Shift.exe,0
Is 0 the icon ID, or just the "default" icon? I simply tried with nothing after the comma, and it seemed to pick up the default icon in each EXE/DLL.
But of course, your automagic solution for toggling wvgafix is much better than doing everything by hand
Click to expand...
Click to collapse
Thanks - it's something I've been meaning to figure our for at least 6 months, since I learned that WVGAFIX3 takes command line parameters.
Just a little note - you might want to add a Sleep(500) or even Sleep(1000) before running the app itself. ...
Click to expand...
Click to collapse
Thanks - added!
ugumba said:
Is 0 the icon ID, or just the "default" icon? I simply tried with nothing after the comma, and it seemed to pick up the default icon in each EXE/DLL.
Click to expand...
Click to collapse
It seems the default icon ID - the one displayed by the OS. I didn't even know you can just omit this parameter So probably both ways will give the same results.
Great thing! I tried and it works! But I have another problem. I am using Fingerkeyboard and when I switch the resolution to VGA it is still showing me error that this resolution is not supported (there is download for each resolution and it is not possible to have WWGA and VGA installed).
So my question is - it is possible to change software keyboard by Mortscript? And then, when application ends change it back?
Thank you
I found the solution, I am switching the keyboards with this tool from Vijay555: http://forum.xda-developers.com/showthread.php?t=242503
Great thing, so now I don't have to remember to change keyboard, change screen...
ugumba said:
For some time, I've been using WVGAFIX3 on my
In Resco Explorer, navigate to a shortcut you want to test this on, tap and hold, select Open With, and browse to ToggleVGAfix.exe.
Click to expand...
Click to collapse
It seems that you don't need the non-freeware resco explorer for that - the file explorer extension from here:
http://forum.xda-developers.com/showthread.php?t=421723
also provides this functionality. You would just need to make sure that the shortcut to ToggleVGAFix.exe is in the start menu (the file explorer extension can't browse for program to open file with).
ugumba said:
For some time, I've been using WVGAFIX3 on my Blackstone to run older games supporting only 320x240 (QVGA) or 640x480 (VGA) resolutions.
As excellent as WVGAFIX3 is, running WVGAFIX3 "by hand" has always been annoying, especially if I forget it the first time, and copying and editing the typical Mortscript for each new game is a hassle:
Code:
RunWait("\Windows\WVGAFIX3APP.exe", "-640")
Sleep(500) # pause suggested by mr_deimos, to allow the dust to settle
RunWait("\path\to\game.EXE)
Run("\Windows\WVGAFIX3APP.exe", "-800")
These scripts have to be stored somewhere, and icons can't be assigned to them, so they're not a good alternative to the plain shortcut.
My next step was to generalize the script (called RunVGA.mscr):
Code:
RunWait("\Windows\WVGAFIX3APP.exe", "-640")
Sleep(500)
RunWait(arg1)
Run("\Windows\WVGAFIX3APP.exe", "-800")
Now, arg1 can be given at the command line in the shortcut - this example is Shift.lnk (for this free, excellent little time waster):
Code:
132#"\Windows\Mortscript.exe" "\bin\RunVGA.mscr" arg1="\Program Files\Shift\Shift.exe" ?\Program Files\Shift\Shift.exe,
(The Shift game can really mess up the Blacstone's display if WVGAFIX3 is not used - I've had to soft reset a couple of times when I forgot!)
This shortcut will look like the original, as the icon is preserved (by repeating the EXE path between "?" and ",", and providing no icon ID after ",", thus using the default ID). When launched, RunVGA script above will do its thing.
Now, the next improvement would be to simplify the shortcut (at the cost of launching an extra process). I have modified RunMscr.exe found here. When renamed to yourscript.exe, the original executes
Code:
Mortscript.exe yourscript.mscr argument1 argument2 ...
My patched version (attached) executes
Code:
Mortscript.exe yourscript.mscr arg1=argument1 arg2=argument2 ...
Notice that RunMscr.exe implicitly names the arguments, something which should have been done by Mortscript a long time ago, in my opinion. Thus, I can copy RunMscr.exe to RunVGA.exe, and modify the shortcut above to
Code:
132#"\bin\RunVGA.exe" "\Program Files\Shift\Shift.exe" ?\Program Files\Shift\Shift.exe,
(Notice that I keep all scripts and manually copied executables in \bin - adjust accordingly in the scripts provided!)
Having RunVGA.exe with my method of passing arguments, means that you can also launch an executable in VGA mode directly from Resco Explorer by using tap and hold, "Open With...", and browsing to RunVGA.exe.
Now, I was pretty happy with this, but wanted a lazy man's solution for creating these shortcuts (and reverting to the original). The following describes how to toggle a shortcut between its original version and its RunVGA version, again using "Open with..." in Resco Explorer.
First create ToggleVGAfix.mscr:
Code:
line=ReadLine(arg1)
Split(line,"#",1,length,shortcut)
Split(shortcut,"?",1,shortcut,icon)
If (Find(shortcut, "RunVGA") = 0)
# This is a normal shortcut, convert to RunVGA shortcut
If (icon eq "")
icon = shortcut
# Strip quotes from icon string
While (CharAt(icon, Length(icon)) eq """")
icon = SubStr(icon, 1, Length(icon)-1)
EndWhile
While (CharAt(icon,0) eq """")
icon = SubStr(icon, 2)
EndWhile
icon = icon & ","
EndIf
line = length & "#" & """\bin\RunVGA.exe"" " & shortcut & " ?" & icon
Else
# This is a RunVGA shortcut, revert to original
Split(shortcut,"RunVGA.exe"" ",1,dummy,target)
line = length & "#" & target
EndIf
# Uncommment if you want to keep the original
#Rename(arg1, arg1 & ".bak", TRUE)
WriteFile(arg1, line)
Next, copy RunMscr.exe to ToggleVGAfix.exe (next to the ToggleVGAfix.mscr script above).
In Resco Explorer, navigate to a shortcut you want to test this on, tap and hold, select Open With, and browse to ToggleVGAfix.exe. Then try launching the shortcut itself - if all goes well, the program will run in VGA mode, and revert back to WVGA when ended.
With all this behind us, we've accomplished this: The next time you install a QVGA/VGA game, navigate to the \Windows\Start Menu\Programs\Games (according to your locale) folder, tap and hold the shortcut, select ToggleVGAfix, and you should be good to go from your normal Games menu.
A small caveat: I've noticed that WVGAFIX3 occasionally doesn't kick into effect in time for the "wrapped" exe. I may look into this if it proves to be enough of a problem. Edit: added a Sleep which fixed this problem for mr_deimos.
Click to expand...
Click to collapse
Hi, sounds really great. but i have problems to understand...
which files do i need and where i have to place them?
do i need for every game a own file?
greetings
Clearly, getting this setup on your device is left as an exercise for the reader! I basically did this for myself, but wanted to share something I found useful, and explain how I got there. Maybe if there's enough interest, I'll try making a CAB.
I'll try to clarify a bit, though:
1. You need Mortscript installed (I use 4.2 which comes with SASHIMI)
2. You need WVGAFIX3 installed.
3. You need 2 scripts copied from my first post, named RunVGA.mscr and ToggleVGAfix.mscr. If you already have a folder for your personal scripts collection (I use \Storage Card\bin), I suggest you put them there.
4. You need my version of runmscr.exe, attached to my first post, copied to your scripts folder as RunVGA.exe and ToggleVGAfix.exe.
5. You need a file explorer capable of handling alternate associations, so that you can register the two executables as "handlers" for the .lnk extension. On my device, Resco Explorer is indispensable.
6. Finally (the hard part) you need to loosely follow and understand the instructions in the first post, and adjust them to your situation when needed. The important part is after the ToggleVGAfix code (2 paragraphs).
Except for editing ToggleVGAfix.mscr according to your scripts folder, you should never have to edit a file, understand the .lnk format or really understand Mortscript. (All my talk around the Shift shortcut is just me being long winded and feeling I have to explain everything. See how this "little" post turned out? )
If this seems mystical or unclear, I suggest reading the Mortscript manual - you'll be happy you did. Also, Barbudor's page on the original runmscr might shed some light on my rants.
Hey, sorry for jumping on after the horse has bolted, I've been dead for a while, but it's better now...
There's another version of SipSwitch out, called VJSipSwitch (I think).
Don't use the old one, because although functional, I wrote it when I didn't know how to code, akin to a thousand monkeys = Shakespeare.
V

Resources