PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   HTC Touch Pro (http://forum.ppcgeeks.com/forumdisplay.php?f=63)
-   -   email notification changes (http://forum.ppcgeeks.com/showthread.php?t=65663)

codearn 04-20-2009 03:59 PM

email notification changes
 
hopefully this is an easy question... i am looking for a way to automate turning sound & vibrate notifications for email on and off. does anyone know if there is a way to script that to make it easy? i don't mind a couple button presses, but having to dig into the settings every night is driving me nuts.

Kris xK 04-20-2009 04:39 PM

Re: email notification changes
 
Supposedly SPB Phone Suite can do that, but I have never tried it.

rainfreak 04-20-2009 05:28 PM

Re: email notification changes
 
spb Phone Suite will do it, but it is not free. You could also look into mortscript, which is free, though it will require you to do more work to get it to do what you want.

codearn 04-21-2009 11:08 AM

Re: email notification changes
 
mortscript seems to be exactly what's needed. thanks a lot. any idea what registry key controls notifications?

haus 04-21-2009 11:13 AM

Re: email notification changes
 
If nobody knows / replies to you, the way I look for reg changes is to set the notifications to one state, export the registry using Resco Registry, then switch the notifications and export again (to a different filename). Then I transfer the .reg files to the desktop and do a comparison with pspad. You only need to export HKCU and HKLM (saves a lot of time), generally speaking.

Here's a sample mortscript I tried building to switch from normal to silent mode:

Code:

Choice( "Profile","Select Profile","Normal","Silent")
Case(1)
        # NORMAL MODE
    RegWriteString ("HKCU", "ControlPanel\Profiles\","ActiveProfile", "Normal")
    RegWriteString ("HKCU", "ControlPanel\Sounds\RingTone0\","Sound", "\Windows\Rings\Ring-Generic1.wma")
    RegWriteDword ("HKCU", "ControlPanel\SoundCategories\Ring\","InitVol", 2)
    RegWriteDword ("HKCU", "ControlPanel\Volume\","Ringer", 1717986918)
    RegWriteDword ("HKCU", "ControlPanel\Volume\","Volume", 2290649224)
    RegWriteDword ("HKCU", "ControlPanel\Notifications\ShellOverrides\","Mode", 0)

    exit
Case(2)
        # SILENT MODE
    RegWriteString ("HKCU", "ControlPanel\Profiles\","ActiveProfile", "Silent")
    RegWriteString ("HKCU", "ControlPanel\Sounds\RingTone0\","Sound", "*none*")
    RegWriteDword ("HKCU", "ControlPanel\SoundCategories\Ring\","InitVol", 0)
    RegWriteDword ("HKCU", "ControlPanel\Volume\","Ringer", 0)
    RegWriteDword ("HKCU", "ControlPanel\Volume\","Volume", 0)
    RegWriteDword ("HKCU", "ControlPanel\Notifications\ShellOverrides\","Mode", 2)

    exit
Case(0)
    exit
EndChoice
exit

Unfortunately it doesn't work because something about the TP volume applet undoes some of the changes moments after they are made. But it's a start. Once you figure out the registry changes, plug them in the script in place of mine and the mortscript should do what you want.

codearn 04-21-2009 11:23 AM

Re: email notification changes
 
try looking here: http://forum.ppcgeeks.com/showpost.p...43&postcount=4

its a big help

haus 04-21-2009 01:22 PM

Re: email notification changes
 
Thanks Codearn, but I was actually trying to help *you* by posting a sample mortscript that offers a choice and then makes reg edits based on that choice. I figured you could modify it to meet your needs once you figured out the values you needed to change based on your original post. :)

codearn 04-21-2009 01:41 PM

Re: email notification changes
 
actually i did start from it. havent finished yet but i dont see a reason why it shouldnt work. thanks again.

apinkel 04-21-2009 06:56 PM

Re: email notification changes
 
If you are interested I've got a mortscript scheduler that you can use to run mortscripts on a schedule you specify.

codearn 04-21-2009 10:46 PM

Re: email notification changes
 
Quote:

Originally Posted by apinkel (Post 866397)
If you are interested I've got a mortscript scheduler that you can use to run mortscripts on a schedule you specify.

that would be great. i have a script that runs great. scheduling it would be perfect.


All times are GMT -4. The time now is 10:23 PM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0