|
||||
Wirelessly posted (VZW TP2: Opera/9.7 (WindowsMobile; PPC; Opera Mobi/35267; U; en; Presto/2.1.1))
wrong section Will get better response if this was in the main threads.... That said, what are you looking for on Mortscript? RunAt has a date and time parameters. look online for mortscript manual. It has samples for RunAt and all the other commands in Mortscript.
__________________
|
|
||||
Re: Certain script run at a certain time
I just noticed I posted in the wrong section . I forgot I was in the rom section when I posted . I just wasn't paying attention . I already have the MortScript manual . I just don't completely understand the formats used for the date and time functions .
|
|
||||
Re: Certain script run at a certain time
thank you . I had a brain fart this morning and wasn't paying attention .
|
|
||||
Re: Certain script run at a certain time
Search and ask in the thread below. I don't know the answer, but I'm sure it can probably be done.
MortScript examples accumulation - xda-developers
__________________
|
|
||||
Re: Certain script run at a certain time
Quote:
|
|
||||
Re: Certain script run at a certain time
Quote:
__________________
Some requests I have filled: Click Here
|
|
||||
Re: Certain script run at a certain time
Forget taking it elsewhere, we can solve it here
I know you said you just wanted help and not a solution, but first, I'm assuming you've referred to the *complete* manual? You can download it in HTML for viewing on your phone, use this clickable PDF: http://www.sto-helit.de/downloads/mo...ipt-Manual.pdf, etc.. For your scheduling needs, you can would make the notification from within the script that is being scheduled. Before doing this, I advise removing the script from the Windows notifications queue first using the following command: Code:
RemoveNotifications(applications, parameter) As far as scheduling the execution, it's not as straightforward and frankly, I'm still thinking of the most elegant way myself. My elementary instict was to do something like: Code:
GetTime(varTmp,varTmp,varTmp,varDay,varMonth,varYear) varSelf=SystemPath("ScriptPath") + SystemPath("ScriptName") + SystemPath("ScriptExt") + RunAt(varYear,varMonth,varDay+1,"0","01",varSelf) The way around this is to use Unix timestamp and time formatting. Code:
9.11.2 Formatted output (FormatTime) string = FormatTime( format [, timestamp ] ) Returns the time of the timestamp, or the current time if none is given, formatted corresponding to the format string. These characters will be replaced with the corresponding value: H Hour (00-23) h Hour (01-12) a am/pm A AM/PM i Minute (00-59) s Seconds (00-59) d Day (01-31) m Month (01-12) Y Year (4 digits) y Year (2 digits) w Day of week (0=Sunday to 6=Saturday) u Unix timestamp {MM}Month name (e.g. “January”) {M} Month name abbreviated (e.g. “Jan”) {WW}Day of week name (e.g. “Monday”) {W} Day of week name abbreviated (e.g. “Mon”) All other characters remain unchanged. Note all return values will be strings. This is to allow leading zeroes, like "02" for february, which is handy to combine filenames. However, it might cause troubles when using arrays. You either need to assign the array elements with strings (“Month["01"] = "First"”) or convert the string to a number, e.g. by using “FormatTime("m")*1”. Examples: x = FormatTime( "h:i:s a" ) x = FormatTime( "m/d/Y", TimeStamp() + 86400 ) Code:
9.6.5 Execute application at a given time (RunAt): RunAt( Unix timestamp, application [, parameter] ) So the final hurdle involves getting tomorrow's time in Unix format, converting that time to a regular time format, changing that new time to 00:01 while leaving the d/m/y intact, change it back to Unix, and then pass that value to RunAt(). There are a couple of different ways of doing it, I'll post mine when I sit down and get my script finalized. I'd like to see what you come up with as well. |
This post has been thanked 1 times. |
|
|
|