[Plugin] Scheduler

Other plugins for extending OpenKore's functionality. This forum is only for posting new plugins and commenting on existing plugins. For support, use the Support forum.

Moderator: Moderators

Message
Author
User avatar
howie50417
Developers
Developers
Posts: 8
Joined: 28 Feb 2013, 07:52
Noob?: Yes

[Plugin] Scheduler

#1 Post by howie50417 »

It's a prototype of scheduler that I can plan an order of commands.

https://dl.dropbox.com/u/37319001/Scheduler.zip

It has 3 custom-made commands used for controling scheduler:

scheduler : load the setting under the /control/scheduler.txt and add the order to scheduler.
schedulercc : clean the order of scheduler into empty.
schedulershow : print the undone order of scheduler.


AND

the format of Plugins/Scheduler/scheduler.txt :

13d20h15m30s (command)
20s sit
30m macro foo
10s1d1h quit
1h1m1s eval message "pass through 1h1m1s\n"
#It only has relative time function, and maybe it will be added the absolute time function.

This plugin is seconds exactly, and can't be more accurate.

If more accurate is needed, I will modify.

And I have not done the pressure testing yet, if it got some bug, thx for your reminding.

I'll appreciate to your suggestion.

My first sharing of plugin, THX for your patiently reading, sincerely.

----------------------------------------------------------------------------------------------------------------------

update:

modify the command

--------------- scheduler command syntax ------------
Command: Description:
scheduler Load commands in scheduler.txt
scheduler list List scheduler
scheduler clear Clear scheduler
scheduler del <scheduler number#> Delete a command in scheduler
scheduler <#d#h#m#s> <command> Add a command in scheduler
-----------------------------------------------------

Plugins/Scheduler/scheduler.txt
add:
10s eval message "sch 10\n"
+10s eval message "sch 20\n"
+10s eval message "sch 30\n"
40s eval message "sch 40\n"
+10s eval message "sch 50\n"

in console:

Code: Select all

scheduler
scheduler list
#   Countdown        Command
0    0 d 0 h 0 m 8 s     eval message "sch 10\n"
1    0 d 0 h 0 m 18 s     eval message "sch 20\n"
2    0 d 0 h 0 m 28 s     eval message "sch 30\n"
3    0 d 0 h 0 m 38 s     eval message "sch 40\n"
4    0 d 0 h 0 m 48 s      eval message "sch 50\n"
-------------------------------------------------------------------

update:

add file reading exception

move command txt to Plugins/Scheduler/scheduler.txt

gelo2012
Plain Yogurt
Plain Yogurt
Posts: 58
Joined: 17 Sep 2012, 13:54
Noob?: Yes
Location: Sa Puso Mo

Re: [Plugin] Scheduler

#2 Post by gelo2012 »

very useful for the new event in pRO called "10-10-10 Event" :)

Post Reply