Or Continue to Thread: MortScript examples accumulati…
Find Your Device:
10th December 2010, 02:01 PM   |  #3850  
RoryB's Avatar
Recognized Developer
Flag Lexington
Thanks Meter: 706
 
2,791 posts
Join Date:Joined: Sep 2008
Donate to Me
More
Quote:
Originally Posted by jwoegerbauer

Hi,

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
Code:
# Ensure the phone wakes up
ToggleDisplay(ON)
#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.