Remove All Ads from XDA
Find Your Device:
Or Continue to Thread: MortScript examples accumulati…
10th December 2010, 02:01 PM |#3850  
RoryB's Avatar
Recognized Developer
Flag Lexington
Thanks Meter: 763
Donate to Me
Originally Posted by jwoegerbauer


my device is CE 5.0 Core based, and it seems to me I can't get RunAt() working, i.e. the test-script
(trimmed quote)
doesn't re-run every minute. Have I overseen something? Any help appreciated! TIA

Try this simpler example from the wiki
# Ensure the phone wakes up
#Find path to mortscript.exe
mort = SystemPath("ScriptExe") & "\" & "MortScript.exe"
# This is how the script will know its own name to create the notification by and how the notification will know what script to run
script = """" & SystemPath("ScriptPath") & "\" &  SystemPath("ScriptName") & SystemPath("ScriptExt") & """"
#Removing previous versions by killing any lingering notification
RemoveNotifications(mort, script)
# Something to see that it ran
Message("I'll be back!")
# Set the next notification queue item to run
RunAt( Timestamp()+60, mort, script)
Last edited by RoryB; 10th December 2010 at 02:04 PM.