Sign in to follow this  
davo_g

Control Volume via vb.net

Recommended Posts

davo_g    0

Hey Everyone,

Hope you can help me. I am writing a vb.net program that (hopefully) controls the level of both the handset and ring volume of my Omnia, I have completed the code to read/write to registry, the issue now is finding the right keys to do the job...listed below is what I have found so far.

Unfortunately editing these values below does not change the actual sound level, from what I can tell they are for status only. I currently use these keys to display current levels in my program:

HKCU\ControlPanel\Volume

- Ringer (ring)

- Volume (handset)

Now, this key below solves half the issue, changing InitVol does change the level of the ring volume which is great but I still need to find the key for the handset volume...

HKCU\ControlPanel\SoundCategories\Ring

- InitVol

Looked everywhere on the net and searched this forum and others and I just keep going around in circles!!!

Thanks a lot!

Share this post


Link to post
Share on other sites
Amura    0

I had the same problem with my phone but I figured out a solution. You need to change the "script" value under:

HKCU\ControlPanel\Sounds\RingTone0

HKCU\ControlPanel\Sounds\RingTone1

HKCU\ControlPanel\Sounds\RingTone2

For my "Normal" profile the script is: "apw3r"

For my "Vibrate" profile the script is: "av3w3r"

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.

Taken from Registry Hacks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2016. MoDaCo uses IntelliTxt technology.