[Windows Mobile Software Development] howdykeith:
MortScript Examples Accumulation

Post your questions and Script parts over here! MortScript examples accumulation

1-293

Bluetooth:

See Post #20 below.

Sound files & Media Players:

sleeptimer which close S2P/Media Player/Coreplayer after 15 min. and starts CleanRam

PlayDir v1.0

Mortscript Wav browser

detects the "AdobeReaderLE.exe" & detects headphones starts "S2P" and "HTC Audio Booster"

MortPlayer

playlist generation

playlist creator/editor

Subtitle and set intel xscale video acceleration for tcpmp

Select a profile", "Office", "Car", "Home"

Sleep Timer

Arrays:

Append Array Function

example of a choice statement populated by a array

The Registry:

Reading RegSubKeys from the Registry

detecting registry change then runs a program

registry settings made to get mortscript to run on first tap

Mortscript Registry Editor b1

Mortscript Registry Editor

Cell tower / RKLocation:

fetch weather from Yahoo w/Get Your Zip

Browser:

switch Internet Explorer to full screen mode

HTTP POST isn't supported, however you could try a GET

Lock Screens:

LockScreen

unlock wm

S2U2:

See Expanded Post #35

ThrottleLauncher:

adding Moon Images to ThrottleLauncher's weather page

Phone, Dialing & Dialer:

DIAL my own no.

manage phoneweaver

checks if call coming in, increases backlight and reverts to old value

time of the last incoming caller

parameters to link to the missed call list?

to dial a number

switching dialer between the skinned one and the default WM one and http://xdaforums.com/showpost.php?p=4343761&postcount=1759

silences the call and acknowledges the missed call and alert + LED before they actually go off

HTC CallStatus

WaitFor Call

Active Call Count

slide actions and vibrate

Images and Image Apps:

open an image

open the image with the default image app

Show/Hide Folders from HTC Album

Wallpaper & Backgrounds:

wallpaper

open up an image and set it to the background

background changer based on the M2D weather icons

select your portrait and landscape wallpaper, then activates it - redrawtoday

Little script that changes the backdrop randomly

Jokes & Sarcasm:

put a message on the screen to say hello world

NOT REAL JUST A JOKE

cab files:

to install cab files

All cab are installed in Storage card

AE Button plus

ShellOverrides\Mod e and postmessage command do not correspond - PostMessage("", 1156, 3, 0)

188 - 681

UnattendedPlayback

Messages & Voice Mail:

get reminded of unread messages

this bit of code will send the sms/email

Pocket Outlook - tmail.exe:

tmail.exe switches

list of all e-mail services

Email Account Chooser

SMS:

Machine-Gun text (send multiple SMS in a row)

file transfer to your work machine & trigger

184

Run("ctlpnl.exe","cplmain.cpl,5,1")

XML & Data Extraction:

foreach file in files (dir & "\*xml*")

open XML with your browser

Read to the end of the line

read each line in sdconfig.txt

how to count the lines of a TXT file

HowdyKeith's Ini Sucker

load every item it in a .ini file into an array

MSCR/TXT converter

problem appears if you save the file ansi-coded. make sure you use unicode

181 - 806

Camera:

modding SirJohn "mirror"

run a .lnk - (ex: run "windows\camera.lnk")

Profiles and Power:

Toggle sound profiles - PostMessage("", 1156, s, 0)

PowerOffWarning

if external power is present: activate loudspeaker

vibrate mode

check backlight settings

Backlight

checking if screen is turned off

change the auto off time

resets Windows suspend timers

Auto Flight mode to preserve battery

a tool that toggles your radio

Basic script to set no timeouts and full brightness

apps using wifi, so pocket won't go sleep - and loose the connection

prevents a device from going sleep or turning backlight off

Sound & Vibration profiles, Touch Diamond

SetSound Profiles

Files and ROM:

Overwriting the file manually with total commander works

Copy works for me only if the file has not the ROM attribute o

Keyboard & SIP:

determine the currently active keyboard layout

SIPChange

EnableSipMenu and here.

eT9 backup and dictionary

The Internet & Network:

wifi fix for Proxycap

dhcpipaddress is hex value

dhcpipaddress

WiFiSSID = "CVhome"

Solution when no connection possible - Proxy connection

check if your email apps are still trying to connect or downloading

Internet Sharing without the pain via Bluetooth PAN

toggle the internet connection and disconnect

Not the connected() thing

toggles data on\off, then writes on\off to a regkey that can be read by WAD

Toggle GPRS

default connection that it will use when a program attempts a connection to the net

Roaming Status Flag

Low Signal script

turns on Wifi, checks after 15seconds if there is a connection, else if it only showas "available"

175

Today Panels and Refresh:

Fring doesn't work with manila (HTC Sense) enabled. Disable HTC Sense & Launch Fring

check and uncheck today plugin

Shell\Open

INI-Reg-Bench

Igo8

Igo8 in portrait or landscape

iGo8 launcher script to allow TTS voices navigation

Disable Manila then start iGO8

TimeStamp()

SetTime

toggle between Active Sync and Mass Storage

Active Sync/Mass Storage

Changes phone call ringtone

RegWriteString: Value with quotas

HS++:

create/modify contact shortcuts in the today screen

eBay Watchlist

Manila2d:

Manila2d Weather Updater

loops until Manila process is terminated

Change FileAttribute and Delete

Created new links for MSN Money, MSN Weather widgets and moved them to it's own folder

Alarms & Timers:

execute a script at 3am every day

3220 - 170

ActiveSync and Sync'ing:

See post #57

Stylus:

utHeadsetPlayer - It monitors if a headset is connected and runs/kills a player respectively

RunAt (This should have it's own Category):

run once within the hour of 2200

Screen Rotation:

Play a game and rotate the screen

LandscapeApp - It watches your screen orientation, and if it detects you went into landscape mode, it will run user defined application. After returning to portrait this app will be closed

does not run the landscape.exe only when the SMS\MMS window is already open before I switch into landscape

Zip Files:

extract here

backuping files into ZIP file. It takes files and paths from a separate text file and creates a ZIP file

Consolidating multiple .zip files - using this with CacheMate to simplify the importing of multiple files containing waypoints, since CacheMate doesn't support the import of more than one file at a time.

Waits for Blackberry Connect security lock and unlocks the device