TreoVibe Mortscript - vibration during call - Windows Mobile Development and Hacking General

Hi All,
I have installed treovibe mortscript from http://discussion.treocentral.com/wm-developers-mortscript/138234-mortscript-treovibe-2.html
to change continuous vibration to something cool
It works for me OK, but i have one problem with that script:
i have very annoying vibration during call (when an SMS arrives or I have another incoming call or any other notification)
treovibe use something like this to enable vibration:
x = RegRead( "HKLM", "System\State\Phone", "Status" )
If (x AND 65536)
If ((VibrateStyle=1) or (VibrateStyle=2) or (VibrateStyle=3))
Vibrate(VibrateShort)
Else
Vibrate(VibrateLong)
EndIf
EndIf
Sleep(100)
I thought that if it can read another regkey which will inform the script if there is an active call it can turn off vibration.
Could someone help me with that?

This should go into Q&A section btw
The Reg key you are looking for is
HKLM\System\State\Phone\active call count
if this reg key exists there is an active call

thanks for info about reg key..
Now i would be very grateful if somebody help with modifying this treovibe script..

Related

can ya change sound of Wizard only during certain programs

Hay guys and gals...
I have a question, regarding the PDA sound of the Wizard(so not the phone sound) it's the left bar on your volume shortcut...
I imagine this is a question which is on a lot of TomTom 6 users by now...
Is there a way, to increase this sound automatically only when a certain program is active, and to decrease it to standard when the program is terminated?
Tomtom 5.21 used to take over this slider, and the sound would be loud enough...after tt5.21 terminated, it would return to it's original value.
Now in TT6, the sound is related to the pda sound bar....so it's either turn up your PDA volume for all time(which I don't want to do, because all the sounds are so loud then...) or choose to not hear the voices of TomTom6 when you drive, even with the TomTom volume turned to 100%...
Hope someone has the solution for me...pretty please
Greetings!!!
maybe Mortscript???HELP PLEASE!!!
maybe Mortscript can do this for me?
But unfotunately I have no idea what strings I should use..
Could someone help me create a .mscr file to launch TOMTOM with max volume and to restore volume te previous, or set value after TOMTOM exit?
Prettyplease with cherry's on top???
got going...
Okay..
I got this far with mortscript:
run (aplication)
setvolume 255
This string turns up the volume all the way when you run the app.
Now only, I want it to go back to a preset value when I exit the program..
I tried:
Run (application)
While procexists (aplication.exe)
Setvolume 255
endwhile
Setvolume 70
But this imediately sets the volume to value 70...
even tried it with sleep 10000 between the run and the while, to make sure the app was running, no luck
Anyone gotten an idea???
No idea??
Is there no one with an idea on this???
Turning volume up is no problem, turnig it down again after closing app is what I can't seem to manage....
Maybe there's a program which does this???
:?: :roll: :?:
ANYONE????
Got the answer from Mort himself::::
Here's the solution...worked for me!!
Needs mortscript and a text editor(notepad)
My question to him on his support forum:
Haia...
I'm looking for a way to turn up the PDA volume during a program, and turn it down after the program terminates...
I tries to do this with Mortscript, using
run (aplication)
while (aplication)
setvolume 255
endwhile
setvolume 80
Even tried it with a sleep before the while...to ensure the app is up and running
This script however doesn't turn the volume up, but goes directly to volume 80...
The ap is Tomtom 6...the volume is now coupled on your PDA volume, so I have either very loud PDA sounds, or a very silent TomTom voice...this bugs me...
Is there a way to turn up the volume during the aplication, and turn it down again automatically after app exits.
Turning the volume up before the app starts is of course no problem using mortscript....but the turning it down after app ends is what's keeping me awake at night...
Hope someone has the answer....
Thu Sep 07, 2006 9:32 am
Morts reply:
Probably the window name in "While wndExists ..." is wrong. Try to get it with GetActiveWindow and Message, and be sure to use correct upper/lower case (i.e. "Tomtom" won't find "TomTom"!).
Another way might be to use RunWait, i.e.
SetVolume 255
RunWait \...\tomtom.exe
SetVolume 80
This wouldn't reset the volume all the time, but also won't require as much CPU time. If you prefer the while loop (or RunWait doesn't work with TomTom), you should add a Sleep in the loop, so the check and volume change doesn't happen all the time. Sleep is far more CPU friendly.
Tutorial....
Okay, here goes....
Firstly download and install Mortscript, to be found at:
http://www.sto-helit.de/modules/edito/content.php?id=38
Then put the file attached to this post on your device..
Very important :!: :!: to change the extension of the file from .txt to .mscr :!: :!:
For some reason .mscr extensions are not allowed on this forum.
You can put the file anywhere you like...
Then click it to make TomTom run, The script will be executed and TomTom will start automatically..
If you find the sound too loud, take a text editor, open the file and change the value at Setvolume 255 to something less...
Same with the return sound..If you find that to much or to less, change the value at Setvolume 90...
You just have to tweak those two to your own desired volumes.
For people with devices in different languages, you should open the file with a text editor and change the value of \Program Files\Navigator\ to the value where you've gotten TomTom installed...
Good luck!!!
Works great, thanks!!
Now I have just put this script file in my "\Windows\Start Menu" folder and use this to launch TT6.
Fantastic.
BTW, 60 is the first "notch" of volume, which is where I normally have my phone.
Can anyone test the backlight function? I want to see if i can solve the iguidance problem of the battery light going off. this is what i have sucessfully working:
SetBacklight External 100, Battery 100
just found out about mortscript recently. very nice. found this thread doing some searches for solutions to my ttn6 problems. here's the script i use which gets the current volume first before setting to max.
# ace_ttn_start.mscr
# launch tomtom and keep active, set volume to max
# initialize values
ErrorLevel("syntax")
ttn_exe = "\Program Files\Navigator\TomTom Navigator.exe"
ttn_ttl = "TomTom Navigator"
intrval = 2000
# turn off connection established notification
mem_conn = RegRead("HKCU","ControlPanel\Notifications\{8ddf46e7-56ed-4750-9e58-afc6ce486d03}","options")
RegWriteDWord("HKCU","ControlPanel\Notifications\{8ddf46e7-56ed-4750-9e58-afc6ce486d03}","options",0)
# adjust volume
mem_vol = RegRead("HKCU","ControlPanel\Volume","Volume") * 255 / 4294967295
SetVolume(255)
# launch tomtom
Run(ttn_exe)
WaitFor(ttn_ttl, 30)
# keep tomtom active
While(WndExists(ttn_ttl))
If (NOT WndActive(ttn_ttl))
Show(ttn_ttl)
EndIf
Sleep(intrval)
EndWhile
# replace changed values
RegWriteDWord("HKCU","ControlPanel\Notifications\{8ddf46e7-56ed-4750-9e58-afc6ce486d03}","options",mem_conn)
SetVolume(mem_vol)
Click to expand...
Click to collapse

Playing with *vibrate*

Hi,
In the registry you can play with sounds for different phone events.
Goto HKCU\ControlPanel\Sounds. You will see 20 keys that represent
different phone related events.
To make all your numerical buttons vibrate do this:
Dtmf0 to 9
Rename the original Sound value (dword) to Sound.org
Then Create a new string value called Sound.
Give it the text value *vibrate*
EDIT: 6 july 2007
Found CAB files to do the trick: http://forum.xda-developers.com/showthread.php?p=1342900&highlight=*vibrate*#post1342900
No need to reset. Just open the phone app and press any number.
Feel it vibrate ;O)
Other interesting keys for this trick are CallDrop and Ending.
KeyPress is a special key. There you can only play with Beepmode
3 play all Dialpad sounds with long Dtmf sounds
2 look for BeepScript string that can be "p"=short or "l0"=long tone
1 silent only DTMF keys
0 silent all Dialpad keys
Cheers

Registry Hacks - FAQ / HowTos

I thought creating a thread that shows the various registry hacks might be helpful/useful/contructive/destructive.
I am still pretty new to all of this and would love to know what others have discovered to get 'more' from our PPCs.
Thanks in advance for the contributions!
I am using PHM Registry for my editor.
did you try searching? they are scattered all over this forum
Tregrad said:
did you try searching? they are scattered all over this forum
Click to expand...
Click to collapse
That is why I thought it might be nice to have one location for them.
Registry Hacks - List 1
You can download and install PHM Registry Editor on your phone to modify the registry.
http://www.phm.lu/Products/PocketPC/RegEdit/
Unlocking/Unhidding the extended_rom
\HKLM\System\StorageManager\Profiles\EXT_FLASHDRV \
then change the value (default at 1) to 0
Wait at least a minute before doing a soft reset.
----
Get rid of the voicemal icon on the '1' key (3.16+)
The 3.16 rom has added an voicemail icon to '1' key which also caused my skin to look messed up. You can disable it:
\HKEY_CURRENT_USER\ControlPanel\PhoneExtendFunctio n\CDMA\
set the DWORD value
"EnableVoicemailIcon" = "0"
by default it is set to 1.
---
Reserved - future use
Reserved - future use 2
Reserved - future use 3
i think this is a good idea as well... since ppcgeeks is down. just fyi, there are some listed on sprintmogul.net and a couple other sites.
Your really aught to just keep editing the FIRST post and as people find new reg hacks you can add them to teh first post.
Tregrad said:
Your really aught to just keep editing the FIRST post and as people find new reg hacks you can add them to teh first post.
Click to expand...
Click to collapse
Right -- that is what I basically plan on doing.
went over to geeks and got a PANT laod of them by doing a "search" in the Titan forum
You can download and install PHM Registry Editor on your phone to modify the registry.
http://www.phm.lu/Products/PocketPC/RegEdit/
1-Unlock Phone (certificate security disabled) rev.1
HKEY_LOCAL_MACHINE\Security\Policies\Policies\0000 1001 = 2
-> Change the value data from 2 to 1
HKEY_LOCAL_MACHINE\Security\Policies\Policies\0000 1005 = 16
-> Change the value data from 16 to 40
HKEY_LOCAL_MACHINE\Security\Policies\Policies\0000 1017 = 128
-> Change the value data from 128 to 144
HKEY_LOCAL_MACHINE \Security\Policies\Policies
-> Add new value "0000101b": Dword = 1
Close registry editor and soft reboot.
------------------------------------------------
2-Change Bluetooth headphones from mono (default) to stereo:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Bluetooth\A2 DP\Settings
UseJointStereo: change the DWORD from “1” TO “0” no quotes.
HKLM\Software\Microsoft\Bluetooth\A2DP\Settings\Bi tPool to 50
HKLM\Software\Microsoft\Bluetooth\A2DP\Settings\Ma xSupportedBitPool to 50,
------------------------------------------------
3-Today screen, Single line date
HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\TODAY
"Date"=dword:1
"AutoSingleLineDatePlugin"=dword:1
------------------------------------------------
4-Change Operator name
HKLM\System\State\Phone\Current Operator Name
------------------------------------------------
5-Disable the pop-up notification that says Message Sent rev.1
HKLM\SOFTWARE\Microsoft\Inbox
create a new key "Settings"
create a new string value "SMSNoSentMsg" and set the value to 1
Hit ok and select "Ok" to save and you are in business.
------------------------------------------------
6-Speed up
Using a registry editor such as PHM RegEdit lookup and change the following three values:
HKEY_LOCAL_MACHINE\System\StorageManager\FATFS\Cac heSize=0x1000(4096)
HKEY_LOCAL_MACHINE\System\StorageManager\FATFS\Ena bleCache=0x1(1)
HKEY_LOCAL_MACHINE\System\StorageManager\Filters\f sreplxfilt\ReplStoreCacheSize=0x1000(4096)
------------------------------------------------
7-Enable GPS icon in the Setting/System menu
HKLM\ControlPanel\GPS Settings
Change "Hide" to 0
------------------------------------------------
8-Enable Bluetooth and IrDA in Wmodem
HKEY_LOCAL_MACHINE\SOFTWARE\OEM\WModem
"Hide IrDA"=dword:00000000
"Hide Bluetooth"=dword:00000000
"Hide USB"=dword:00000000
-------------------------------------------------
9-Registry Hack Improvement of using bluetooth listen music
HKEY_LOCAL_MACHINE\Drivers\BuiltIn\BtA2dpSnd
Add "Priority256 "= dword:60 (Use Dword Value)
HKLM/SOFTWARE/Microsoft/Bluetooth/AudioGateway/Capability
(Dword:69)(Default is 37)
HKLM/SOFTWARE/Microsoft/Bluetooth/AD2P/Settings/BitPool
(Dword: 60)(Default is 30)
-------------------------------------------------
10-Unlocking/Locking Items into position on today screen
HKLM\Software\Microsoft\Today\Items\"Plugin you want to lock or Unlock"
change TYPE from 5 to 4
5=locked
4=unlock
-------------------------------------------------
11-Camera Flip Pictures Fix
HKEY_LOCAL_MACHINE\Software\HTC\Camera\Image
Change "EnableEncodePortrait" to 0
When you take a picture it is saved in the wrong configuration and you then have to rotate
it with a picture editor so its not sideways and save it again. This is the fix for it.
-------------------------------------------------
12-Disable Multi-NAI
HKEY_LOCAL_MACHINE\SOFTWARE\OEM\WModem\Multi-NAI default is 1, set to 0(00000000)
-------------------------------------------------
13-Put Date in Title Bar
[HKEY_LOCAL_MACHINE\Software\Microsoft\Shell]
"ShowTitleBarClock"=dword:00000001
"TBOpt"=dword:00000003
[HKEY_LOCAL_MACHINE\nls\overrides]
"SSDte"="M/d/yy "
***** 2 spaces needed aafter the yy ****
fyi no quotes on the sting values if using a reg edit.
--------------------------------------------------
14-battery, screen rotate, and CommManager icons down in your tray
see cab in this post
http://ppcgeeks.com/reg-tweaks-06-19...,60.html#57690
--------------------------------------------------
15-Change Vibrate Strength
HKLM\SOFTWARE\OEM\VIB
STRENGTH_LOW set to 1.
--------------------------------------------------
16-Disable Ambient Light Sensor
KEY_CURRENT_USER\CONTROL PANEL\BACKLIGHT set auto sensor from 1 to 0
--------------------------------------------------
17-how to get rid of some of thoes annoying sounds while on calls or making calls (or attempting), such as adjusting the volume,
go to HKEY_CURRENT_USER\ControlPanel\Sounds
Loudestincallvolume = the sound it makes when you turn the volume all the way up (that annoying little useless sound) delete this key to remove that
Quietestincallvolume = the same but for when you turn it all the way down
Networkdrop = the dropped call /w lost signal sound
Calldrop = caller hangs up before you do sound
---------------------------------------------------
18-Change ringtone/vibrate/LED flash characteristics
If you would like more control over how your device rings/vibrates/flashes its LEDs on events, you can can change the Script values of these events. For example, for an incoming call performing 'activate device, play ringtone, wait 3 seconds, repeat':
HKCU\ControlPanel\Sounds\RingTone0\Script = "apw3r" (REG_SZ string, no quotes)
For performing 'active device, set volume to 33%, play ringtone, set volume to 67%, play ringtone, set volume to 100%, play ringtone (no repeat)':
HKCU\ControlPanel\Sounds\RingTone0\Script = "ac33pc67pc100p" (REG_SZ string, no quotes)
The following are the full codes available to you. Please note that all the codes are executed simultaneously except after a ringtone play / wait code. E.g. 'v1p' will vibrate and play at the same time, while vibrating for 1 second. But 'pv1' will play the ringtone through all the way first, then start vibrating for 1 second.
a = activate device
cN = set volume to N in percentage max volume
fN = flash notification LED for N seconds
p = play ringtone. Note that this will play the ringtone all the way through before continuing with the next code.
r = repeat. Note that this should be the last code in your Script string, if used at all.
vN = vibrate for N seconds
wN = wait for N seconds. Note that the device will wait this long before continuing with the next code.
NOTE: I tried this on my 6800 and changed the v0 to v1 and now it doesn't have just one long vibrate. v0 sets it to vibrate always.
-----------------------------------------------------
19-FIX THE SLOW RINGER
To do this, you will need your MSL, which only Sprint (or your provider) can provide you. Open up the phone app and dial ##778# (PST). You will be asked to enter your MSL. Enter it, and you will be brought into the provisioning of your phone. From the top left, select Modem Settings. On this page, your Slot Cycle Index (SCI) is how often your phone polls the tower for incoming calls, etc. This value is 1.28 seconds multiplied by 2^value (i.e 0=1.28 secs, 1=2.56secs) with 0 fastest, 7 slowest. The default is 2, but lowering it to 1 hasn't noticeably affected my battery life, and roughly 2.5 second (SCI 1) response time is far more reasonable than roughly 5 seconds (SCI 2)
-----------------------------------------------------
20-Change scroll bar size
Navigate to HKey_LOCAL_MACHINE\SYSTEM\GWE\ and tweak the following values.
cyHScr : Horizontal Scrollbars Height in pixels (default is 13)
cxVScr : Vertical Scrollbars Width in pixels (default is 13)
-----------------------------------------------------
21-Save Attachments or the Whole Email on your SD Card
The Key in WM6 changed from WM5. In WM6 it is:
HKLM\System\Inbox\Settings
For Attachments add "AttachPath" value="\Storage Card\Inbox\Attachments" datatype="string"
For the rest of the email add "PropertyPath" value="\Storage Card\Inbox" datatype="string"
For the paths above to work, you need to have the Inbox folder and Attachments subfolder created already. You must reboot for them to take effect.
-------------------------------------------------------
22-add the AM/PM to your time in the title bar
To Add AM or PM
1) Open your registry editor (either PHM Registry Editor or Resco Explorer 2003).
2) Go to HKEY_LOCAL_MACHINE\nls\overrides
3) Create 1st String Value: Name = S1159 & String = Am
4) Create 2nd String Value: Name = S2359 & String = Pm
5) Create 3rd String Value: Name = STFmt & String = hh:mm t'M'
6) Soft-reset
There has to be a space after the am or pm otherwise it will not display
Also
am=aM pm=pM
Am=AM Pm=PM
--------------------------------------------------------
23-Changing SoftKeys
Create the following keys and Strings in the registry:
HKEY_CURRENT_USER\Software\Microsoft\Today\Keys\11 2
HKEY_CURRENT_USER\Software\Microsoft\Today\Keys\11 3
112 is the left key and 113 is the right.
Set Default to what you want the key to read (ie. SMS)
Now for each key create a new string named Open and set the target path.
--------------------------------------------------------
24-This edit allows you to see the duration of your Vision connection along with a button to disconnect it.
You see it in the bubble that is displayed when you tap the Vision icon.
Click HKEY_LOCAL_MACHINE
Click ControlPanel
Click Phone
[at this point, the buttom grey status bar should read \HKLM\ControlPanel\Phone'
Click the bottom menu 'edit'
Select new dword value
Change the value name to "Flags2" (no quotes).
Select the 'hexidecimal' button.
Type 10
Click ok.
You should now see in the 'name/data' section:
Flags2 16 (0x00010)
When done, reset the device.
Tregrad said:
went over to geeks and got a PANT laod of them by doing a "search" in the Titan forum
You can download and install PHM Registry Editor on your phone to modify the registry.
http://www.phm.lu/Products/PocketPC/RegEdit/
Click to expand...
Click to collapse
Great hacks. Thanks for your contribution.
big list of em over here.
http://www.htcwiki.com/page/Tweaks+and+Hacks?t=anon
im usually not one to mess up my phone (ie im usually very cautious, dont play with what i shouldnt) but i wouldnt touch that ringtone modifying hack. i just tried it, hoping to set the ringtone more like it was on an old razr of mine (4vibes and a break) and it really messed up the phone application. like it wouldnt open. even after multiple restarts, everything. after i called my phone from another one, the phone app opened, thankfully, and then it started working but gave me quite a scare before that
EDIT- nope, that didnt fix it either. even after calling from another phone, once my 6800 is restarted, the phone app wont work again. god this will be the 4th hard reset this week. lame.
Duration of the rington
Has anyone an idea if it is possible to say the phone how long the ringtone should play till the phone hangs up and went into mailbox.
I mean is it possilbe to set the duration to eg. 30 sec or more till it hangs up.
I know there is a hack to stop ActiveSync from starting automatically but I can't find it. Searched here and PDAphonehome. Anyone have it?
Hey guys, I'm an active user on the Wing forums. I was wondering if there is such a reg edit to save SMS to the SD card instead of on the phone? Thanks for any details!
nuron said:
Hey guys, I'm an active user on the Wing forums. I was wondering if there is such a reg edit to save SMS to the SD card instead of on the phone? Thanks for any details!
Click to expand...
Click to collapse
Along those same lines -- I would like to move 'my docs' to my sd card.
HEY!!!!!!!! I GOT 6.1! but cant get to my IOTA!!!! HELP PLEASE!!!!!!!!!!!!!
djhollygrove said:
HEY!!!!!!!! I GOT 6.1! but cant get to my IOTA!!!! HELP PLEASE!!!!!!!!!!!!!
Click to expand...
Click to collapse
have you unlocked your extended ROM? Do that and rub the IOTA cab.

Illuminate screen with new txt?

Can the HD be set to illuminate the screen when a new txt message arrives?
Would be handy so when i'm at work (phone on silent) I can see the phone light up rather than keeping my eye on the very small notification LED on the power button.
You need to enable 'WakeOnNewSMS'.
I think you can do it with either Advanced Config or HDTweak.
Alternatively do the reg edit yourself.
EDIT: Here is the key if you want it:
HKLM\Drivers\BuiltIn\RIL : DisableSMSWakeUpEvent <-- set to "1" by default. Change value to "0"

Isolate MVC Annoucement from ringtone

I have Microsoft Voice Command 1.6.21725 running on my HTC Touch Diamond 2. I want to be able to have my calls announced by name & type louder than the ringtone in the background. This will enable me to hear the announcement clearly.
Now I have searched the net (BTW I dont use bluetooth so I dont need fixes for this) and have tried the following registry suggestions but it didnt work.
HKCU\Control Panel\Sound Categories\Voice Command1\AttenutationCategory
I set it from 3 to 7
I would also like to know what as5p means?
HKCU\ControlPanel\Sounds\TTSAnnounce\Script: change as5p to v0p (for vibrate and ring) or p (for ring only)
This is what I could decipher for script code. Any explanations or corrections would be appreciated.
a = activate device
cN = set volume to N in percentage max volume
p = play ringtone. Note that this will play the ringtone all the way through before continuing with the next code.
r = repeat. Note that this should be the last code in your Script string, if used at all.
vN = vibrate for N seconds
wN = wait for N seconds. Note that the device will wait this long before continuing with the next code.
Had similar problem, so disabled sounds in Sounds and Notifications, leaving me with Voice Command notifications only. Alternatively, possible to set up the system to short ding or vibrate just before the announcement kicks in (they are delayed slightly anyway)

Categories

Resources