PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   Windows Mobile Software (http://forum.ppcgeeks.com/forumdisplay.php?f=23)
-   -   MortScript... hacker's dream (http://forum.ppcgeeks.com/showthread.php?t=1078)

schettj 11-10-2006 08:44 PM

MortScript... hacker's dream
 
If you like to hack, have a look at mortscript

http://www.sto-helit.de/modules/edito/content.php?id=38

Here's two simple one liners I just whipped up

messageOff.mscr:

RegWriteDWord HKCU,\ControlPanel\Notifications\{A877D65A-239C-47a7-9304-0D347F58
0408},Options,8

messageOn.mscr:

RegWriteDWord HKCU,\ControlPanel\Notifications\{A877D65A-239C-47a7-9304-0D347F58
0408},Options,9


Put these in your Launcher folder (if you're using Seligman's Launcher) named 00messageOff.mscr and 01messageOn.mscr

They'll show up as the first two launcher items in the Today launcher icon view...

Tap the first one to turn off notification sounds for new mail messages, the second to turn it back on. You should check with a registery editor if the keys are the same, I only have my Sprint ppc6700 to test with it, but it works on mine.

Why do this? I like to have a little beep play when I get new mail, but not so much at night while sleeping :D so I have to turn it off every night, and back on in the monring - icky. These are quick one tap on/off commands!

You could add whatever other notification keys you want to toggle on/off to this script, they're all in that HKCU,\ControlPanel\Notifications registry
the optons value seems to be a bit field
8 means 'display message' is checked
1 means 'Play sound' is check

so, 9 = message+sound, 8=message only.

It might be possible to wite a script that runs forever, and just turns notification sound off at 9pm and on at 8am (or whatever) but for now, baby steps :D

Wideawake 11-10-2006 08:47 PM

thanks for this i will be trying this later tonight ;) thanks for posting! :)
~mike

schettj 11-10-2006 09:09 PM

No problem!

I just found out... heck yeah! http://www.sto-helit.de/forum/viewtopic.php?t=1080 the beta 4.0 release has TONS of goodies for Windows mobile 5.

So yep, you can make a script that runs at specific times using the notification manager. You can check to see if a connection is up (like WiFi) - you can bring up a connection (like WiFi) - you can even see if you're running on AC.

Yeah, I can see I will be sinking some time into this baby.

Malatesta 11-11-2006 01:11 AM

I've used MS before but I just never took the time to learn it all.

It's a great tie into PhoneAlarm, since with that app you can have a "program" run on a Profile change and that program could be a MS, which could run all sorts of things.

OTOH, it does take some programming knowledge (minimal, but some) to get going.

I'm not opposed though to others doing the work and posting custom scripts here :wink:

rpotter187 06-01-2007 08:41 PM

Schettj,

Thanks for the scripts up above...been a blessing since I got them copied to my phone.

But, I'm having problem creating a script that would allow to Login and accept work orders faster for a WAP site that I'm a member of...

Could you please help me create a script that will do what I need?

letsgoflyers81 10-08-2007 02:35 PM

Does anyone of a Mortscript for Dummies source so I could learn to write a few basic scripts? I just installed Good 5.0 on my Mogul but when Good's lock turns on, it kills a few processes including S2U2, AE Button Plus, and Card Export. My security policy forces me to use the lock, and it's a pain to manually restart the processes every time I unlock the device. If I could have a script to do that automatically, that would be great.

scottymomo 10-08-2007 02:39 PM

check the WM developer's forum over at treocentral/wmexperts..

you'l find lots of examples and helpful folks ;)

letsgoflyers81 10-08-2007 02:44 PM

I just posted there, thanks!


All times are GMT -4. The time now is 09:38 AM.

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


Content Relevant URLs by vBSEO 3.6.0