![]() |
Certain script run at a certain time
What i want to do is RUn a script at midnight every night . How can i do this ?
I was looking through the MortScript manual and found a command named "RunAt" but was very confused as to the formating and syntax of this command . Im just confused as to how this command works . any examples from those who better understand mortscript would be appreciated :) I personally would like HELP as to accomplish this rather than someone doing it for me , i want to better learn and understand mortscript. THANKS GUYS !! |
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
moved..
|
Re: Certain script run at a certain time
Quote:
|
Quote:
Sent from my SPH-D700 using Tapatalk |
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:
|
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)The way around this is to use Unix timestamp and time formatting. Code:
9.11.2 Formatted output (FormatTime)Code:
9.6.5 Execute application at a given time (RunAt):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. |
| All times are GMT -4. The time now is 03:02 AM. |
Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com