I've a question to change the telephone sound volume of the mda II for speaking. For this I found the function phoneSetVolume(HPHONE hPhone, DWORD dwHookSwitchDev, DWORD dwVolume) of the TAPI.
Now I've the problem that I don't know how to get the handle to the phone (HPHONE).
Can anybody help me?
Thanks!
use phoneOpen
There is still a problem...
Okay, but the function phoneOpen requires also parameters which I don't know where I can get they. For instance the HPHONEAPP. Where can I get the phone application or the deviceID and then the LPPHONE.
I am very thankful to you when you could help me how to get the parameters.
Or is it possible to change the volume of the telephone speaker by changing a registry key? Do you know the key name?
Thanks a lot!
Re: There is still a problem...
phoneInitializeEx gives you PhoneApp and number of phone devices, phoneOpen gives you hPhone, deviceID is probably 0 (test all deviceIDs starting from 0 to the count returned by phoneInitializeEx). Read MSDN for more information.
I don't know the registry key, and modifying it would not change the device volume immediately.
Thanks for your reply!
When I use the function phoneInitializeEx() it returns a value that is negative but not an determined error. Here is my code. Can you say me whats wrong?!
HPHONEAPP lpHPhoneApp;
DWORD lpdwNumDevs;
DWORD lpdwAPIVersion;
PHONEINITIALIZEEXPARAMS lpPhoneInitializeExParams;
long result = phoneInitializeEx(&lpHPhoneApp, NULL, NULL, NULL, &lpdwNumDevs, &lpdwAPIVersion, &lpPhoneInitializeExParams);
Hey guys,
I have a questions about the "Contacts" soft key. I recently installed and then uninstalled Contacts Breeze on my 8125. After uninstalling, the "Contacts" seems to have lost it's path. When I press the button, it doesn't take me to my contacts. I now have Pocket Informant installed. Is it possible to change the path in the registry to direct me back to the default Contacts or PI's Contacts?
Also, is it just me or is the ringer not loud enough?
Thanks for your help.
no idea about the contacts softkey, but my ringer's quiet too. I read somewhere that it depends on what ROM you have. I'm on 02 UK
Been checking here, hofo, and other forums and still can't find the fix. Can anyone tell if it is possible to change the path of the Contacts right soft key back to it's default location?
phaijai: check in the wiki for how to change the softkeys to whatever you want.
V
Change the application launched by Today screen Soft Keys
To change the application launched by the Today screen Left soft key:
Code:
HKCU\Software\Microsoft\Today\Keys\112\Open = "\Windows\Calendar.exe" (REG_SZ string, including quotes)
To change the title of the Left soft key:
Code:
HKCU\Software\Microsoft\Today\Keys\112\(Default) = Calendar (REG_SZ string, no quotes)
To change the application launched by the Today screen Right soft key:
Code:
HKCU\Software\Microsoft\Today\Keys\113\Open = "\Windows\Calendar.exe" (REG_SZ string, including quotes)
To change the title of the Right soft key:
Code:
HKCU\Software\Microsoft\Today\Keys\113\(Default) = "Calendar" (REG_SZ string, no quotes)
Note that 113 normally doesn't exist by default, and probably needs to be created.
Also note that there is at least 1 application that allows you to set these through a GUI, developed by FdcSoft called SoftKeyAppletEx
Click to expand...
Click to collapse
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
I have tried virtually every combination and found one that works. I loaded Fonix voice dial 2.0 with bluetooth support.
Changed the following registry settings:
HKEY_LOCAL-MACHINE\SOFTWARE\OEM\VoiceCommand\
path
Program Files\Fonix\Voicedial2EN\VoiceDial.exe
VoiceCmdEnable DWord Value: 0
LaunchAPEnable DWord Value: 1
VoiceCMDDuration DWord Value: 30
This seems to only work with bluetooth 2.0 headsets. It works fine with my Jawbone but not with my Plantronics 510.
http://forum.xda-developers.com/attachment.php?attachmentid=26496&d=1140633016
originally posted by Protochip in the Universal forums works a treat.
I'm having trouble with the bluetooth connection with my Audi A4 (brand new): frequently (at least once per trip) the connection is lost even though most of the time I can restart it manually.
I've read the whole "Bluetooth Car Connectrion" thread (can't post links - forum.xda-developers.com/showthread.php?t=583570) and tried all the solutions that are proposed, but without success until now...
Do you know if there is a specific problem (and solution) with the HD Mini and/or with the Audi A4?
FYI the solutions I tried:
1. Modify the HandsFree plug-in:
HKLM\Software\WIDCOMM\Plugin\HandsFree
i. Change SupportedFeatures to 1085 (changes to 1081 after reset and I cannot terminate any call with this value!!)
ii. Add value HFBDA binary, set to same value as LastConnectedBda
iii. Add value HFDeviceType DWORD decimal 2
2. Modify the WIDCOMM bluetooth general settings:
HKLM\Software\WIDCOMM\BtConfig\General
i. Change bdaddr to (no value)
ii. Change DisableReopenAudio to 0 (default is 1)
3. Change Registry setting to your HD2\Leo phone:
HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\Sys
Add new DWORD setting called "COD" with decimal value "5374476" (Don't add the quotes).
This makes devices see the HD2 as a 'Normal' phone.
4. Navigate to HKLM\Security\Policies\Policies\
Click "Values" soft-key
Change "00001001" value to 1 (decimal) (recovery note: default is 2)
Change "00001005" value to 40 (decimal) (recovery note: default is 16)
The only thing I haven't tried so far is to use jetware mobile. Do you think it's a working solution?
Thanks!