G-Sensor. - Touch Pro2, Tilt 2 Windows Mobile General

Is there any cab, or registry change,
Which can turn G-Sensor off during a call? : )
Grt.z

Since I only use autorotation when the keyboard is out, I disable it myself. If you want to do it from registry, this is how you can:
go to:
“HKEY_CURRENT_USER (HKCU) \\ Software \ HTC \ HTCSENSOR \ GSensor \"
and
Set <AutoRotation> to 0
the trade off is you'll lose the autorotation in IE, Opera, and the other programs.

Related

Wireless Plugin on the today opening Comm Manager

For who it has installed the Wireless Plugin on the today (visualizes Operator + Wireless + Bluetooth) is the possibility to render it to the touch of the pen opening therefore the shielded one of Comm Manager sensitive.
PROCEDURE:
HKEY_LOCAL_MACHINE \ ControlPanel \ WrlsMgr
Redirect= "\ Windows \ CommManager.exe"
This is a nice one.
Now I can remove the CommManager icon from the screen.
Cheers,
Drifter
hi
thanks for the post, i used my registry editor and found the key you are referencing above but i do not see the line you have there? i assume this needs to be added? can you give a little more detailed explanation on adding this registry line?
thanks in advance
Hi,
I've made a CAB file for this one.
No files will be installed just some registry changes to make it visible and "tap able" on the today screen .
After installation you will have to go to Settings – Today and activate “Wireless” under the items tab to activate it.
Cheers,
Drifter
worked like a charm
8125
thanks again
If you add a dword named "Selectable" with a value of 1 to the wireless today item (and soft reset) you can even select it using the dpad.
Yeeh, now we can actualy *use* the Wireless today plugin.
Cheers,
Cacti
dborello said:
For who it has installed the Wireless Plugin on the today (visualizes Operator + Wireless + Bluetooth) is the possibility to render it to the touch of the pen opening therefore the shielded one of Comm Manager sensitive.
PROCEDURE:
HKEY_LOCAL_MACHINE \ ControlPanel \ WrlsMgr
Redirect= "\ Windows \ CommManager.exe"
Click to expand...
Click to collapse
Sweet it worked perfectly! Just created a simple string in that directory.

Custom Cab

Hi all,
I made a CAB file which customises my device to my own preferences. I want to share it with you.
Sharky48 Custom.CAB
Changes the Extended Rom Version in the registry
HKLM\SOFTWARE\OEM\3rdversion\MSYSTEM=Sharky48 STRING
Checks the Checkbox Clock & Alarms, Tab More, Display the clock on the
title bar in all programs.
HKLM\Software\Microsoft\Shell\Taskbar\LimitedClock=0 DWORD
Changes in Windows Media Player the Internet Connection speed to 33600 Kpps.
HKCU\Software\Microsoft\MediaPlayer\Preferences\InternetConnectionSpeed=33600 DWORD
Unlocks and Unhides the Extended Rom in Explorer.
HKLM\System\StorageManager\AutoLoad\TRUEFFS_DOC1\bootphase=2 DWORD
HKLM\System\StorageManager\Profiles\TRUEFFS_DOC1\mounthidden=0 DWORD
HKLM\System\StorageManager\Profiles\TRUEFFS_DOC1\folder=ExtendedROM STRING
Turns off Error Reporting.
HKLM\System\ErrorReporting\DumpSettings\DumpEnabled=0 DWORD
Turns off Infra Red. (Obex)
HKLM\Software\Microsoft\Obex\IsEnabled=0 DWORD
Changes The URL of the Internet Button on the keyboard to www.nu.nl/pda.jsp
HKLM\HARDWARE\OEM\KEYBD\PieHomePage=www.nu.nl/pda.jsp STRING
Shows the GPS Settings in Settings > Connections.
HKLM\ControlPanel\GPS Settings\Hide=0 DWORD
HKLM\ControlPanel\GPS Settings\Group=2 DWORD
Changes Keyboard backlight timeout to 30 seconds.
HKCU\ControlPanel\Backlight\QKeyLedTimeout=30 DWORD
Shows a Timer in the Connectivity Window of the GPRS (or UMTS) Connection.
HKLM\ControlPanel\Phone\Flags2=16 DWORD
When Device off: Lock all buttons except Power button
HKLM\HARDWARE\OEM\KEYBD\KeyLock=1 DWORD
Clears Unused Items from the Today Screen.
HKLM\SOFTWARE\Microsoft\Today\Items\"Device Lock"\Enabled=0 DWORD
HKLM\SOFTWARE\Microsoft\Today\Items\"Messaging"\Enabled=0 DWORD
HKLM\SOFTWARE\Microsoft\Today\Items\"Tasks"\Enabled=0 DWORD
HKLM\SOFTWARE\Microsoft\Today\Items\"Wireless"\Enabled=0 DWORD
HKLM\SOFTWARE\Microsoft\Today\Items\Pocket MSN\Enabled=0 DWORD
HKLM\SOFTWARE\Microsoft\Today\Items\"Owner Info"\Enabled=0 DWORD
Changes the backlight timeouts of On Battery and on AC to 300 sec.
HKCU\ControlPanel\Backlight\ACTimeout=300 DWORD
HKCU\ControlPanel\Backlight\BatteryTimeout=300 DWORD
HKCU\ControlPanel\Backlight\DefaultBrightness=6 DWORD
Changes the Homepage to www.nu.nl/pda.jsp
HKLM\SOFTWARE\Microsoft\Internet Explorer\AboutURLs\home=http://www.nu.nl/pda.jsp STRING
Remove Icons Battery, Connection Manager and Screen Rotation from the Taskbar.
HKLM\Services\Power\ShowIcon=0 DWORD
HKLM\Services\ScreenRotate\ShowIcon=0 DWORD
HKLM\Services\WirelessMgr\Keep=0 DWORD
Allow Unsigned Applications to install and run.
HKLM\Security\Policies\Policies\0000101a=1 DWORD
Set Soft Keys to Calendar and Contacts
HKCU\Software\Microsoft\Today\Keys\112\Default=Calendar STRING
HKCU\Software\Microsoft\Today\Keys\112\Open=\Windows\LSK\HTCCalendar.exe STRING
HKCU\Software\Microsoft\Today\Keys\113\Default=Contacts STRING
HKCU\Software\Microsoft\Today\Keys\113\Open=\Windows\RSK\Contacts.lnk STRING
Set the name of the Owner to Sharky48
HKCU\ControlPanel\Owner\Name=Sharky48 STRING
HKCU\SOFTWARE\Microsoft\Bluetooth\Settings\LocalName=Sharky48 STRING
Set Display options of you Calendar on the TodayScreen to Upcoming appointments with
Display all day events.
HKLM\SOFTWARE\Microsoft\Today\Items\"Calendar"\Flags=1 DWORD
Still looking for Registry keys to edit:
- Regional Settings
- Turn off Device timeout
- Calendar options
Sharky48
..
.
Hi Sharky48
Any chance of posting your CAB file so that people can customised it themselves??
Cheers
Ody
The Cab....
odyseus said:
Hi Sharky48
Any chance of posting your CAB file so that people can customised it themselves??
Cheers
Ody
Click to expand...
Click to collapse
I had that one comming...
But no problem, here it is.
do you know the reg.key for the FiWi settings?
Thanx for that usefull collection, keep it going!
rookee said:
do you know the reg.key for the FiWi settings?
Thanx for that usefull collection, keep it going!
Click to expand...
Click to collapse
Only Where to change the Scan Interval
HKLM\ControlPanel\Wifi\ScanInterval
Did you try searching the registry with PHM Reistry Editor?
i´ve tryed searching with "Araxis Merge" and found some keys, but when ever i reset the device and restore the settings, there is no effect to the WiFi-settings

Cabs,Tips,Tweaks etc Last Update 22/7/09

Hi all,
Special thanks to Faria for helping keep this up to date and correctly formatted.
Since the forum is becoming more and more active with new (Rhodium) users joining us on a daily basis, I thought it would benefit all if I started a thread to collect all the current and future tweaks and enhancements for our Rhodiums.
I'll update the Wiki weekly with any that are posted in this thread.
Review videos and Info Here (Thanks to Quarintus)
Thanks to all contributors
Please keep the thread clean and pure for this purpose, I don't want to be digging through comments to find the enhancements.
Word of warning the HDTweak app does work for a lot of settings on the Rhodium, however there are reports that some functions can cause your device to not boot or loose sounds............. USE AT YOUR OWN RISK. I will not provide a link to it here, as it won't be long before we have our own Rhodium Tweak app.
7MP Panorama Tweak
See here
Manilla StartMenu (Provided by LRC)
Code:
HKLM\Software\HTC\EnlargeMenu
EnableManilaStartMenu = 1
(orginal TF3D startmenu) / 0(old WM startmenu)
is not needed.....
HKCU\Software\HTC\Manila
Manila://programs.page.hidden = 0
is not needed.....
*********************************************************
GPS
(Tested & provided by DGH)
A. With Advanced config nel menu GPS
disable A-GPS
disable GPS logging
logfile name must be empty
old logfile name must be empty
maximum size of logfile must be 0
delete the files :
\windows\GPSLogFile.txt and \windows\GPSLogFileBack.txt
With those changes car usage will be quite perfect
B. Then edit registry
Under: HKLM\SYSTEM\CurrentControlSet\GPS Intermediate Driver\
Drivers\GpsOneDevice\PollInterval -> 100 (default is 1000)
Drivers\InputBufferSize -> 512 (default is 4096)
Drivers\OutputBufferSize -> 512 (default is 4096)
Drivers\SleepOnNoData -> 100 (default is 1000)
Multiplexer\MaxBufferSize -> 512 (by default not present, you have to create it)
With those tweaks pedestrian usage will be much better but not perfect.
More specific Info on GPS specific settings for various NAV Software can be found here
*********************************************************
Remove Locked Start Menu / Programs tab Items
Free up the start menu / Programs Tab icons that are there by default and not removable you need to change (Thanks Mallman)
Code:
HKLM/Software/HTC/Manila/ProgramLauncher/0/IsReadOnly
HKLM/Software/HTC/Manila/ProgramLauncher/1/IsReadOnly
HKLM/Software/HTC/Manila/ProgramLauncher/2/IsReadOnly
HKLM/Software/HTC/Manila/ProgramLauncher/3/IsReadOnly
Change this value from 1 to a 0 and you can then edit their shortcuts.
Or Download the cab file here
*********************************************************
Bluetooth settings
Can be found here HKLM\Software\WIDCOMM\
A2DP Tweak Provided by R_phAn (Please note this will not work with all devices)
As we know from the past, each device has it's own preferences and capabilities (So you'll have to play around)
Managed to improve soundquality by adding DWORD 'LineSpeed' to HKLM\Software\WIDCOMM\Plugin\AV\ with a value of 320.
*********************************************************
Remove BT Notification on Connect/Disconnect of headset / car kit thanks to Wensing
Code:
[HKEY_CURRENT_USER\ControlPanel]
@=""
[HKEY_CURRENT_USER\ControlPanel\Notifications\{607CDEA2-E44A-4528-A2C3-A7DC6B6D824D}]
"AvailableOptions"=dword:00000009
"Default"="Bluetooth warning"
"Options"=dword:00000000
Now go to Settings - Sounds & Notifications and change the options of the "Bluetooth warning" notification.
Grab the cab file Here
*********************************************************
Bluetooth: Receive files without entering passkey(Thanks Jzhyok)
By default Bluetooth settings, when a device which is not on your paired devices list is going to send you a file by BT OBEX Push, the BT manager requires a passkey that is annoying and useless. Yet, you can't disable this in the normal control panel.
So, here is the solution:
Code:
[HKEY_LOCAL_MACHINE\Software\WIDCOMM\BTConfig\Servi ces\0002]
"Encryption"=dword:00000000
"Authorization"=dword:00000000
"Encryption"
0: No passkey is needed.
1(def): Requires passkey if the file is sending by devices NOT in the paired list.
"Authorization":
0: Receive all files automatically without asking.
1(def): Ask for each file if you wanna receive(you have to choose whether to receive or not).
*********************************************************
Enabling Screen Rotation via Gyrator (Provided by JoSeng)
Download the Reg Frag Here
*********************************************************
Wifi allways on thanks Jzhyok
Code:
[HKEY_LOCAL_MACHINE\Comm\BCMSDDHD1\Parms]
"HTCKeepWifiOnWhenUnattended"=dword:00000001
*********************************************************
To enable 2 way recording just change:
Code:
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\WaveDev]"VocRecPath"=dword:00000002
and you'll be able to record with any software.
If you want to use WM6 native recording (WAW only, on \my documents\notes, manual activation: during a call hit "record" on call menu) create:
Code:
[HKEY_LOCAL_MACHINE\System\AudioRecording]"Enabled"=dword:00000001
[HKEY_LOCAL_MACHINE\Software\Microsoft\Voice]"EnableCallRecordMenuItem"=dword:00000001"AllowInCallRecording"=dword:00000001
Don't forget to turn off (and on again ) the device after you modify/create the keys.
Thanks to LinoX
Opera in Task Manager (Thanks to Quarintus)
Code:
[LIST]
[*]Go to: HKCU\Software\HTC\TaskManager\ExclusiveList\System
[*]There delete Opera9.exe (now it will show in the task manager)
[/LIST]
To close opera by pressing the X-button instead of minimizing it follow these steps:(Thanks to Quarintus)
Code:
[LIST]
[*]Go to: HKCU\Software\HTC\TaskManager\TerminateProcess
[*]There, create a DWORD with the name Opera9.exe value "1"
[/LIST]
*********************************************************
Thanks to Dynamic+
Automatically stop/disable data connection in roaming
and restore it in home network (naviga3/tim/h3g tip)
http://forum.xda-developers.com/showthread.php?t=503131
Use HTC wired headset to play/pause/next song for manila music tab
(aka AudioManager by hTC)
http://forum.xda-developers.com/showthread.php?t=502881
Thanks to nameless21
1. Download the .NET Compact 3.5 – http://www.microsoft.com/downloadS/d...displaylang=en
2. Do Registry Hack to enforce usage of 3.5 – http://forum.xda-developers.com/showthread.php?t=373721
Code:
3. Goto HKLM\Software\Microsoft\.NETCompactFramework (this is usually the first entry
4. When you open this you’ll see all the .NET installed version change the DWORD value of 2.0.7045.00 from 1 to 0
5. Change the DWORD value of 3.5.7283.00 from 0 to 1.
.
Display Timeout thanks to Bombbastikde
Code:
HKEY_CURRENT_USER\ControlPanel\Power\Display
change to the value u like
.
Stop Push Internet Thanks TinTin
http://forum.xda-developers.com/showthread.php?t=532948
Cab files
Make your device loudspeaker LOUDER.
Extract and replace this file on windows folder with resco or total commander and reboot
you won’t lose face down mute and face down loudspeaker!
It only changes loudspeaker!
Download file from here Cab file coming soon...
credit goes to adolfotregosa for modifying the file.
__________________
Cab Files
IE Toggle (Thanks Whtrbt7)
Allows switching between IE6 emulation and PIE
Allows LogMeIn Rescue to work on Rhodium now
Download Here
App UnLock ( Thanks to ChainFire)
CAB that will "app unlock" your stock TP2 (custom ROMs generally do not need this).
Primarily it enables RAPI functionalities, like remote registry editing and ROM dumping. Also disabled "not signed" warnings for unsigned apps.
Download here
Link to ChainFires thread
USB Host for PPC (NOT WORKING AS YET)
Made by Zeno Sloim. Based on RATOC Systems drivers.
The package contains:
- USB Mouse driver
- USB Keyboard US-101 HID driver
- USB-based external CD-DVD unit
- USB-based HDD unit, Memory Flash, USB-based card-reader MassStorage Driver
- USB-to-Serial Port driver (start Terminal in Start-Programs for configuration).
- RS232 USB Serial Driver (start RS232 USB Serial Driver in Start-Programs for configuration).
- PTPView for HOST & PTP Digital Cameras driver (non-USB Mass Storage such as Sony, Canon etc.).
- download photos and movies from PTP digital camera to your PDA
- photo preview
- multiple files download
- delete files from digital camera
Download here
MS.Net 3.5 Compact Framework (Thanks Stunno for the link)
******************************************************************************************************************
1% Battery Increment Thanks to ChainFire and No2Chem
Download Here
******************************************************************************************************************
Advanced Config Thanks to Schaps
Download here
******************************************************************************************************************
TP2 Radio Cab here
Thanks to adolfotregosa
******************************************************************************************************************
Link to XDA Devs FTP for Software here
******************************************************************************************************************
monx® ROMeOS³ RHODIUM PACK v1
Contents :
1-SDK Certs (mandatory)
2-Nokia Font Style (like ROMeOS rom)
3-White battery status icon (simple & clean) with red when low batt
4-New notification manager with icons (network icon link to comm mgr, battery icon link to power settings, etc)
5-Simple & clean sof-reset.
6-Pre-configured latest total-cmd pocket pc edition.
7-Manila background on all tabs wvga.
8-Some common regs tweak.
How to install : (password is monx)
download > unpack > copy to device > run.
skip any prompt asking to restart device.
"You must restart..." > press CANCEL
Download Here
Thankyou Monx
G-Sensor program list in cab file.
For people without Resco Registry or Total Commander (Thanks Joseng)
Download Here
Modified dotfred task manager (Thanks Faria)
to work as if it was a reg file in the desktop.
install the attached cab file, after that import any .reg file to the device.
now all you got to do is click the .reg file to import to the registry.
also the cab will create a 2 links, 1 to the task manager and other to the reg editor,they will be in, start menu/programs/accessories folder
Download Here
Font Changer Nokia style.cab
Topaz Notification Manager.zip
Thanks to Brahmanto for packaging Monx source
******************************************************************************************************************
Reserved Number 3
Reserved Number4
Tweaks i've done already:
- Spike's taskbar icons:
http://forum.xda-developers.com/showthread.php?t=522080
- Installed Gyrator2 for turning the screen without sliding the keyboard out:
http://gyrator.brins0.net/
- Add new places to the weather tab:
http://forum.xda-developers.com/showthread.php?p=3923523
- Same background on all tabs:
http://forum.xda-developers.com/showthread.php?t=521162
(I used the one that smaberg posted.)
- Light up the screen when you get a new textmessage:
http://forum.xda-developers.com/showthread.php?t=511631
(It's about this registery edit:
Look for this registry value
HKLM\Drivers\BuiltIn\RIL\DisableSMSWakeUpEvent
It should be 1, set it to 0
Click to expand...
Click to collapse
)
- Activate 4 extra camera modes:
http://forum.xda-developers.com/showthread.php?t=523735
Tips:
- Before installing TomTom7 read:
http://forum.xda-developers.com/showthread.php?t=522373
(it will probably save you a hard reset )
Enough for now?
camera tweaks here, unlocks 5 diffrent capture modes for photo and video including GPS tagging photos and rapid caputure
http://www.tracyandmatt.co.uk/blogs/index.php/2009/06/07/touch-pro2-advanced-tweaking-1
HD Tweak 0.5.4_English.cab
served me very well on the TP2.
Franky
what does that do ?
dgh said:
what does that do ?
Click to expand...
Click to collapse
"HD Tweak 0.5.4_English.cab" (use search function to find it) is for the Toch HD but works well on TP2 to tweak dozens of more or less 'hidden' settings.
combat goofwing said:
camera tweaks here, unlocks 5 diffrent capture modes for photo and video including GPS tagging photos and rapid caputure
http://www.tracyandmatt.co.uk/blogs/index.php/2009/06/07/touch-pro2-advanced-tweaking-1
Click to expand...
Click to collapse
just to confirm the reg edit for the extra camera options works fine
Any way to edit the stereo bluetooth settings? I used to use Advanced Config for that, but it doesn't seem to work for the Touch Pro 2. Probably because of the new bluetooth stack.
Sound will come through my Sony DS980 headphones, but the quality isn't really good. How to raise the bitpool?
[edit]
Managed to improve soundquality by adding DWORD 'LineSpeed' to HKLM\Software\WIDCOMM\Plugin\AV\ with a value of 320. My audio experience is now much better.
[/edit]
Franky24 said:
"HD Tweak 0.5.4_English.cab" (use search function to find it) is for the Toch HD but works well on TP2 to tweak dozens of more or less 'hidden' settings.
Click to expand...
Click to collapse
Just as a warning, I'm not sure what I did but after messing around with some settings, everytime I made or received a call and it connected, I could not hear the other party and vice versa. Fixed this by setting all the phone volume settings in HDtweak back to default and uninstalling HD tweak - I later reinstalled it but didn't touch the volume settings and it works fine now.
Don't know what I messed with but becareful as something caused my call functions to stop working properly.
I had to do hard reset after using some HDTweak features - system didnt boot - got stucked on green loading screen. So watch out. I have no idea which specific feature caused that.
Change Program Launcher Read Only Shortcuts
to free up the start menu icons that are there by default and not removable you need to change
HKLM/Software/HTC/Manila/ProgramLauncher/0/IsReadOnly
HKLM/Software/HTC/Manila/ProgramLauncher/1/IsReadOnly
HKLM/Software/HTC/Manila/ProgramLauncher/2/IsReadOnly
HKLM/Software/HTC/Manila/ProgramLauncher/3/IsReadOnly
Change this value from 1 to a 0 and you can then edit their shortcuts.
Cab attached for you guys that dont like tinkering
aiaob said:
Just as a warning, I'm not sure what I did but after messing around with some settings, everytime I made or received a call and it connected, I could not hear the other party and vice versa. Fixed this by setting all the phone volume settings in HDtweak back to default and uninstalling HD tweak - I later reinstalled it but didn't touch the volume settings and it works fine now.
Don't know what I messed with but becareful as something caused my call functions to stop working properly.
Click to expand...
Click to collapse
Did the same myself, I turned the Volume up from 100db to High - stopped it from working.
got a quick question wondering if any1 knows the solution
when you go thru the tf3d menu and you get to the messages tab it shows the last text you've recieved
is there a way to turn this off, i.e it not showing the last text recieved but a plain icon or something else
Atharon said:
got a quick question wondering if any1 knows the solution
when you go thru the tf3d menu and you get to the messages tab it shows the last text you've recieved
is there a way to turn this off, i.e it not showing the last text recieved but a plain icon or something else
Click to expand...
Click to collapse
In relation to this, does anyone know how to decrease the time limit for when the new sms icon dissapears?
IE: I noticed if I get a new message it shows a (1) next to the message icon. I flip to it, read it quick and flip out. the (1) remains there unless I leave the message screen on for a few seconds before moving on, problem is I'm used to reading messages alot quicker than that.
or at least I believe that's what causing it.
Bluetooth: Receive files without entering passkey
By default Bluetooth settings, when a device which is not on your paired devices list is going to send you a file by BT OBEX Push, the BT manager requires a passkey that is annoying and useless. Yet, you can't disable this in the normal control panel.
So, here is the solution:
[HKEY_LOCAL_MACHINE\Software\WIDCOMM\BTConfig\Servi ces\0002]
"Encryption"=dword:00000000
"Authorization"=dword:00000000
"Encryption"
0: No passkey is needed.
1(def): Requires passkey if the file is sending by devices NOT in the paired list.
"Authorization":
0: Receive all files automatically without asking.
1(def): Ask for each file if you wanna receive(you have to choose whether to receive or not).
Does anyone know which is the latest version of Advanced Config and where can I find it.
Searching the forum, gave me some results, but I don't know if the versions I found are compatible with Rhodium or not...
Any help would be much appreciated.
Thanks
HastaSSSS
Advanced Config Tool

Shake 'n waketurn on screen hd mini

Hi, this cab combining CRT screen you can turn on the screen simply by shaking the phone - shaking like a fan. Then turn it off with CRT.
Installation:
download cab: http://forum.xda-developers.com/showthread.php?t=612267
Resco Explorer to move the shortcut: c: \ windows \ start menu \ programs - inside: c: \ windows \ startup \ (varies according to the language of the Rom)
- Reset.
This cab works perfectly on my HD on my MINI as well as HD2.
I hope I can help someone. sorry for my bad English.

MortScripts to toggle settings

This thread is dedicated to MortScripts that we use to change settings. Most of these can be stand alone scripts, but I got started creating this thread based on CHTS needing WMLongLife to change from Automatic to GSM radio profile. I found that WMLL seemed to eat up battery life in my old Fuze. I tried a script or two from the MortScript examples thread, but they did not work for me. I'll be posting various scripts that I use during my profile changes in CHTS, but I will in such a way that if you do not use CHTS you can still use the scripts.
Another purpose of this thread is to make these scripts available to those who for one reason or another the default programs in CHTS do not work and perhaps the script will. An example is sound profile changing to Automatic was not available so I added a script to do it for me. The feature had been turned off since it did not work in all phones. In a coming version I believe it will be back. The beta test works in my Fuze.
The hope of this thread is to help those that use CHTS to get some of the features that may not work on their phone through MortScripts instead. Also, as a place to share these "TOGGLE" switch scripts for others to be able to use outside CHTS.
I am trying to write scripts that do not use programs outside windows mobile. The hope is that they can be used in as many phones and ROMs as possible. An example is the first form of my Band_Changer used a program in CHTS and I reworked it to not require that program.
Radio toggle between Automatic (2G & 3G) and GSM (2G only): Post #2
Switch Sound Profile: Post #3
Auto time zone toggle: Post #5 and Post #8
Toggle Backlight: Post #14
Toggle Screen Rotation: Post #15
Toggle between Active Sync and Mass Storage: Post #16
Toggle Voice Command: Post #17
Radio toggle between Automatic (2G & 3G) and GSM (2G only)
This script calls the main script with the argument required based on your current profile to switch the profile to the other.
Code:
# Band_Toggle.mscr
opmode = RegRead( "HKLM","Software\OEM\UMTS","OpMode")
opmode = RegRead( "HKLM","Software\OEM\PhoneSetting\NetworkType","ItemName" & OpMode + 1)
If(opmode eq "Auto")
key = "g"
Else
key = "a"
EndIf
CallScript("\storage card\scripts\Band_Changer.mscr", key)
# CallScript("\windows\Band_Changer.mscr", key)
I test the script in my storage card, but when I use it for CHTS I would have it in \windows folder.
This is the main script:
Code:
# Band_Changer.mscr
If(NOT FileExists("\Windows\CMBandSwitching.exe"))
Message("You must have CMBandSwitching.exe installed in windows folder.^NL^^NL^Script will exit now.", "ERROR")
Exit
EndIf
key = argv[1]
key = (key eq "a")?"Auto":"GSM"
opmode = RegRead( "HKLM","Software\OEM\UMTS","OpMode")
opmode = RegRead( "HKLM","Software\OEM\PhoneSetting\NetworkType","ItemName" & OpMode + 1)
network1 = RegRead( "HKLM","Software\OEM\PhoneSetting\NetworkType","ItemName1" )
network2 = RegRead( "HKLM","Software\OEM\PhoneSetting\NetworkType","ItemName2" )
network3 = RegRead( "HKLM","Software\OEM\PhoneSetting\NetworkType","ItemName3" )
If(key ne OpMode)
If(key eq network1)
key = 1
ElseIf(key eq network2)
key = 2
ElseIf(key eq network3)
key = 3
Else
EndIf
Call("switcher")
EndIf
Sub switcher
Global(key)
SendSpecial(126) # Data disconnect
i=0
ForEach xvariable in regSubkeys("HKLM", "Comm\ConnMgr\Providers\{7C4B7A38-5FF7-4bc1-80F6-5DA7870BB1AA}\Connections")
i+=1
enable[i] = RegRead("HKLM", "Comm\ConnMgr\Providers\{7C4B7A38-5FF7-4bc1-80F6-5DA7870BB1AA}\Connections" \ xvariable, "Enabled")
EndForEach
Sleep(500)
ForEach xvariable in regSubkeys("HKLM", "Comm\ConnMgr\Providers\{7C4B7A38-5FF7-4bc1-80F6-5DA7870BB1AA}\Connections")
RegWriteDWord("HKLM", "Comm\ConnMgr\Providers\{7C4B7A38-5FF7-4bc1-80F6-5DA7870BB1AA}\Connections" \ xvariable, "Enabled", 0)
EndForEach
Sleep(500)
Run("\Windows\CMBandSwitching.exe")
If(ScreenHeight() eq 640)
Y1 = 160 # 1st button which is Auto on my Fuze 163
Y2 = 245 # 2nd button which is GSM on my Fuze 244
Y3 = 315 # 3rd button which is WCDMA on my Fuze 314
Y4 = 610 # Done button on my Fuze 608
X4 = 135 # Done button on my Fuze 134
Y5 = 460 # Done button on my Fuze 460
X5 = 125 # Done button on my Fuze 125
ElseIf(ScreenHeight() eq 800)
Y1 = 150 # 1st button which is Auto on HD2 150
Y2 = 200 # 2nd button which is GSM on HD2 200
Y3 = 305 # 3rd button which is WCDMA on HD2 305
Y4 = 750 # Done button on HD2 750
X4 = 110 # Done button on HD2 110
Y5 = 480 # Done button on HD2 480
X5 = 110 # Done button on HD2 110
EndIf
While(NOT WndActive("Band"))
Sleep(50)
EndWhile
If(key eq 1)
MouseClick("Band", ScreenWidth()*0.25, Y1) # 1st button
ElseIf(key eq 2)
MouseClick("Band", ScreenWidth()*0.25, Y2) # 2nd button
Else
MouseClick("Band", ScreenWidth()*0.25, Y3) # 3rd button
EndIf
Sleep(150)
SendSpecial(112) # Done
Sleep(500)
i=0
ForEach xvariable in regSubkeys("HKLM", "Comm\ConnMgr\Providers\{7C4B7A38-5FF7-4bc1-80F6-5DA7870BB1AA}\Connections")
i+=1
RegWriteDWord("HKLM", "Comm\ConnMgr\Providers\{7C4B7A38-5FF7-4bc1-80F6-5DA7870BB1AA}\Connections" \ xvariable, "Enabled", enable[i])
EndForEach
Sleep(20000)
If(NOT Connected())
Connect("The Internet")
EndIf
EndSub
If you do not have a 480 x 640 or 480 x 800 phone or if this does not work for you please try this script to get me the points I need to improve this script.
Code:
# PickPoints.mscr
Run("\Windows\CMBandSwitching.exe")
WaitForActive("Band", 10)
Sleep(300)
SleepMessage( 2, "Select center of first (top) Network Type choice after this screen closes." )
Sleep(300)
aMouse = ScreenshotClick()
sMSGOutput1 = "^NL^First:^NL^X1 = " & aMouse[1] &"^NL^Y1 = " & aMouse[2]
SleepMessage( 2, "Select center of second (middle) Network Type choice after this screen closes." )
Sleep(300)
aMouse = ScreenshotClick()
sMSGOutput2 = "^NL^Second:^NL^X2 = " & aMouse[1] &"^NL^Y2 = " & aMouse[2]
SleepMessage( 2, "Select center of third (bottom) Network Type choice after this screen closes." )
Sleep(300)
aMouse = ScreenshotClick()
sMSGOutput3 = "^NL^Third:^NL^X3 = " & aMouse[1] &"^NL^Y3 = " & aMouse[2]
Sleep(300)
MouseClick("Band", aMouse[1], aMouse[2])
Sleep(300)
SleepMessage( 2, "Select center of Done button after this screen closes." )
Sleep(300)
aMouse = ScreenshotClick()
sMSGOutput4 = "^NL^Done:^NL^X4 = " & aMouse[1] &"^NL^Y4 = " & aMouse[2]
Sleep(300)
MouseClick("Band", aMouse[1], aMouse[2])
Sleep(1500)
SleepMessage( 2, "Select center of OK button after this screen closes." )
Sleep(300)
aMouse = ScreenshotClick()
sMSGOutput5 = "^NL^OK:^NL^X5 = " & aMouse[1] &"^NL^Y5 = " & aMouse[2]
SleepMessage( 2, "Select center of Cancel button after this screen closes." )
Sleep(3000)
WriteFile("\band_click.txt", "Screen width: " & ScreenWidth() & "^NL^Screen height: " & ScreenHeight() & sMSGOutput1 & sMSGOutput2 & sMSGOutput3 & sMSGOutput4 & sMSGOutput5)
Message("Please send me these data. They are saved in root directory \band_click.txt^NL^")
Remove the .txt from the end of the script files.
Switch Sound Profile
These scripts call the main script with the argument for the profile you want.
Code:
# Sound_Automatic.mscr
CallScript("\Windows\Sound_Profile.mscr", "Automatic")
Code:
# Sound_Normal.mscr
CallScript("\Windows\Sound_Profile.mscr", "Normal")
Code:
# Sound_Silent.mscr
CallScript("\Windows\Sound_Profile.mscr", "Silent")
Code:
# Sound_Vibrate.mscr
CallScript("\Windows\Sound_Profile.mscr", "Vibrate")
This is the main script:
Code:
# Sound_Profile.mscr
# Change Sound Profile based on argument used to call this script from
# a short script in the form:
# CallScript("\Windows\Sound_Profile.mscr", "Automatic")
mode=argv[1]
If(mode EQ "Automatic")
RegWriteString("HKCU", "ControlPanel\Profiles", "ActiveProfile", "Automatic")
SendMessage("", 1156, 0, 0)
ElseIf(mode EQ "Normal")
RegWriteString("HKCU", "ControlPanel\Profiles", "ActiveProfile", "Normal")
SendMessage("", 1156, 0, 0)
ElseIf(mode EQ "Silent")
SendMessage("", 1156, 3, 0)
ElseIf(mode EQ "Vibrate")
SendMessage("", 1156, 2, 0)
Else
EndIf
In CHTS profile switching I use the Execute/Kill App(s) section with the executable as \windows\mortscript.exe and the argument one of these four:
\Windows\Sound_Profile.mscr Automatic
\Windows\Sound_Profile.mscr Normal
\Windows\Sound_Profile.mscr Silent
\Windows\Sound_Profile.mscr Vibrate
Remove the .txt from the end of the script files.
This isn't written as a toggle, but these scripts will turn off or on the auto-time zone sync option in phone settings. Turning it off helps to keep active sync from running all the time.
Code:
#Auto time zone off
RegWriteDWord("HKLM","\Drivers\BuiltIn\RIL","NITZEnable",0)
Code:
#Auto time zone on
RegWriteDWord("HKLM","\Drivers\BuiltIn\RIL","NITZEnable",1)
Auto time zone toggle
Thanks Farmer Ted
It is easy enough to create a toggle.
Code:
If(RegRead("HKLM","\Drivers\BuiltIn\RIL","NITZEnable"))
RegWriteDWord("HKLM","\Drivers\BuiltIn\RIL","NITZEnable",0) #Auto time zone off
Else
RegWriteDWord("HKLM","\Drivers\BuiltIn\RIL","NITZEnable",1) #Auto time zone on
EndIf
Thx RoryB... toggle features are good... if you can store all here.. it must be a good base to share with communauty !
great job my friend! especially after the long test time in beta group to fulfill different device's needs.
this is the perfect extension for the post-run-scripts while profile switching.
I'm looking forward to much more of this scripts, which can be used.
Thanx also in name of all CHTS-users
Micha
RoryB said:
Thanks Farmer Ted
It is easy enough to create a toggle.
Click to expand...
Click to collapse
Cool, that was a lot simpler than if I'd done it, lol. Here's the same script, with message boxes to let you know what the setting is.
Code:
If(RegRead("HKLM","\Drivers\BuiltIn\RIL","NITZEnable"))
RegWriteDWord("HKLM","\Drivers\BuiltIn\RIL","NITZEnable",0) #Auto time zone off
Message("Active Sync under control")
Else
RegWriteDWord("HKLM","\Drivers\BuiltIn\RIL","NITZEnable",1) #Auto time zone on
Message("Active Sync running wild")
EndIf
LOL I love a sense of humor.
I updated post #2 for the Band Changer because I have been getting failed to connect or dialed modem not answering error messages.
RoryB said:
I updated post #2 for the Band Changer because I have been getting failed to connect or dialed modem not answering error messages.
Click to expand...
Click to collapse
Made another tweak to stop data connection first.
Updated Post #2 for Band_Changer.mscr. It seems to run a little faster.
On Band_Changer I realized that
Code:
Y1 = 150 # 1st button which is Auto on HD2 150
Y2 = 215 # 2nd button which is GSM on HD2 200
Y3 = 300 # 3rd button which is WCDMA on HD2 305
works in my phone too. So I would not need to check the screen size, but I am running Energy ROM that is a WVGA with tweaks to work on my VGA. I need to get some pick point data from anyone who uses a true VGA ROM in their phone to confirm the points for it. Also, a screen shot of CMBandSwitcher.exe would help a lot.
If CMBandSwitcher.exe has the same screen size for WVGA and VGA phones I will be able to reduce the code some more.
Toggle Backlight
From http://forum.xda-developers.com/showpost.php?p=2018165&postcount=239
Code:
#toggle backlight between max and one-from-minimum (on trinity at least)
CurrentBright = RegRead( "HKCU", "ControlPanel\Backlight", "Brightness" )
If (CurrentBright = 1)
SetBacklight (100, 5)
Else
SetBacklight (1, 1)
EndIf
Toggle Screen Rotation
From http://forum.xda-developers.com/showpost.php?p=2832605&postcount=929
Code:
If (regread("HKLM", "System\GDI\ROTATION", "ANGLE") eq 0)
Rotate (90)
Else
Rotate (0)
Endif
Toggle between Active Sync and Mass Storage
From http://forum.xda-developers.com/showpost.php?p=5078802&postcount=2552
Code:
usb = RegRead ( "HKLM", "Drivers\USB\FunctionDrivers", "DefaultClientDriver" )
If ( usb eq "RNDIS" )
Run ( "\Windows\USBSetting.exe" )
Sleep ( 200 )
SendSpecial ( "Down" )
Sleep ( 50 )
SendSpecial ( "CR" )
Sleep ( 50 )
SendOK
ElseIf ( usb eq "Mass_Storage_Class" )
Run ( "\Windows\USBSetting.exe" )
Sleep ( 200 )
SendSpecial ( "Up" )
Sleep ( 50 )
SendSpecial ( "CR" )
Sleep ( 50 )
SendOK
EndIf
Toggle Voice Command
I only use Voice Command when I am driving so I toggle it off when I am not driving to save battery drain.
Code:
ShowWaitCursor
If( ProcExists( "VoiceCmd.exe" ) )
Kill( "VoiceCmd.exe" )
PlaySound( "Stopping" )
HideWaitCursor
SleepMessage( 2, "Voice Command^NL^^NL^Stopped", "Voice Command Toggle" )
Delete( "\Windows\Startup\Voice Command.lnk" ) # so it will not restart after a soft reset
else
Run( "\Program Files\Voice Command\VoiceCmd.exe" )
PlaySound( "Starting" )
HideWaitCursor
SleepMessage( 2, "Voice Command^NL^^NL^Started", "Voice Command Toggle" )
Endif
Sad to go
My Fuze no longer works. I currently have a loner Infuse 4G, but do not know what I will end up with.
I will not be able to continue development of Mortscripts, etc.
Sorry to go, but it has been fun.
I'll keep watching to see if anything comes up I need to respond to.

Categories

Resources