XEvent plugin by Ptrinchi

Xlobby plugin development

XEvent plugin by Ptrinchi

Postby dgemily on Thu Nov 25, 2004 11:48 pm

Ptrinchi build an other plugin :lol:

XEvent plugin: http://www.france.xlobby.com/plugins/XEvent.zip

The first function of this plugin is an alarm clock, but you can do a lot of thing with it.
In fact, XEvent give the possibility to launch an event with a specific date and time, you can also specify a variable everyday or everymonth...

how to use it :

* press f2 , tab “plugin” and select XEvent to configure it:
Select the date and the time, select the even that you want to use and them click on “Add trigger to list”
(this function is the less useful but it’s necessary for tests )..

* via the Event Manager,
create an un event” plugin XEvent” with the command “Add event” or “Add Delayed Event”

“Add Event”: to create a trigger on a date/hour that you want
in Variable, you must write for example : "2004 12 01|1:00|goto:goto menu"
(the first December, atone o’clock the plugin will execute the event “goto memu” of the eventgroup “goto” )
“Add Delayed Event”: give to you the possibility to launch an event in xxx minutes.
Use the variable like this: "15|TV: stop"

Some examples of variables that you can use :

- "15|TV: stop"
- "2004 11 01|12:00|goto:goto menu"

- "2004 11 Every-Day|06:15|goto:goto menu"
for the day you can also use every-monday..., every-Sunday…., every-day-on-weekend……, every-day-except-weekend….., you can mix those variables like: "Every-year every-month every-day-on-Weekend|07:00|music:play alarmclock"

- "2004 Every-Month 10|12:00|goto: goto rappel"
- "every-year 01 01|10:00|goto:happy new year"
- "2004 every-month 15|12:00|goto:bank"
- "now|goto:menu" the plugin will execute the event in the next minutes.


* the last utilisation is very interesting, the parameters=variables of this plugin are stocked in the file "XAlarmClock.txt" the structure is like this: "2004 11 01|08:36|goto:overlay_alerte".
So, if you can build scripts, codes… in the aim of writing those parameter in the file XAlarmClock.txt (like "now|goto:menu"), so you will have the possibility to execute xlobby events’ via an action outside of Xlobby .

just one thing, you can only execute events from "skin" section/repertory of the event manager

A big thanks to Ptrinchi :wink:
Last edited by dgemily on Tue May 01, 2007 9:06 pm, edited 1 time in total.
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Postby dalanik on Fri Nov 26, 2004 10:13 am

Great plugin, but sometimes the 30-second delay can be a bit too long... would it be possible to modify it so that you can specify in the plugin settings how often plugin checks for newly added lines to the .ini file?

I think that even 5-6 seconds wouldn't slow down the PC...

Also, it seems to me that sometimes events are just "forgotten", that is, never executed (or not executed after 30 seconds)... It happens from time to time...

D.
dalanik
 
Posts: 885
Joined: Mon Apr 19, 2004 12:35 pm
Location: Prague, Czech Republic

Postby dgemily on Fri Nov 26, 2004 10:49 am

Also, it seems to me that sometimes events are just "forgotten", that is, never executed (or not executed after 30 seconds)... It happens from time to time...

it happens only with the variable "now" ?

for your first request , I will ask to him....
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Postby dalanik on Fri Nov 26, 2004 12:49 pm

I think it happened with old version of the plugin as well (with date/time)...

I'm certain because I watched the clock on screen and waited for approx 45-60 seconds when nothing happened I just run Zoom player manually...

maybe it misses the 30 second limit and execures it after 2x30 seconds or such, but I didn't have the paitence to wait :-)

D>
dalanik
 
Posts: 885
Joined: Mon Apr 19, 2004 12:35 pm
Location: Prague, Czech Republic

Postby ptrinchi on Fri Nov 26, 2004 6:52 pm

dalanik, you have to wait more than 60 seconds to test your event.

I explain :
This plugin launches a fonction every 60 seconds, this function has a look at all the events stored in the XAlarmClock.ini file and executes those which are in the present minute.
But, we don't know exactly when in the minute this function is executed (at the beginning or at the end) it depends on the time you launch xlobby.

This plugin has only one trigger per minute, because I don't want to launch a repetitiv event more than one time per minute (like every-day at 7h00).

The next version will be more intelligent and will launch events in less than 10 seconds after the minute change, just wait :wink:
ptrinchi
 
Posts: 108
Joined: Fri Sep 10, 2004 8:52 pm
Location: France

Postby dgemily on Fri Nov 26, 2004 9:45 pm

Image Update,

same link : http://www.france.xlobby.com/plugins/XEvent.zip

the events will be executed at a few seconds of the passage at the minute (like an alarmclock) and if you use the parameter "now|....." the event will be executed in the 5 seconds

:wink:
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Postby mattdisaster on Sat Nov 27, 2004 1:27 am

awesome! Would you happen to have a copy of the working exe and the plugin .dll? I have the last one and it still doesnt work. :? Any ideas? Thanks in advance.

-matt
mattdisaster
 
Posts: 257
Joined: Tue May 27, 2003 6:40 am
Location: Branford, CT

Guys - THANKS!!!

Postby kolemieux on Sat Nov 27, 2004 5:43 am

Thanks for the continued efforts and great plugin's - u guy are fantastic. While my mind is thinking, can some of you toss me a few ideas where I could get some value out of this plugin....?

Just curious as to how others are thinking of using it?

Thanks again....
kolemieux
 
Posts: 155
Joined: Tue Jun 10, 2003 8:28 pm

Postby dgemily on Sat Nov 27, 2004 11:18 am

matt,
I'm using the last update of Steven http://www.xlobby.com/xlobby2.zip
Xlobby2.exe= v. 1.0.1790.29705
XPluginSDK.dll= v. 1.0.1781.27638
it's works great with the plugin XEvent.
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Postby Hedgehog on Sat Nov 27, 2004 1:06 pm

Great idea for a plugin.
I have two questions/suggestions that are sort of linked to each other.

It would be great if I could tell it :
'I want to run this event every 20 minutes between 14:00 and 17:30'
or even :
'I want to run this event every 20 minutes until I tell it to stop'

I'm thinking could the plugin write to the ini file the last time an event was run? Maybe just add the last run time at the end of each event line? This would mean that the plugin would know the last time it ran so then would know if it was time to run the event again.

Also how about the ability to enable/disable an event? That way if you had an event that you usually run all of the time it would give you the ability to stop/start that event without having to keep deleting/inserting it.
Hedgehog
 
Posts: 2
Joined: Sat Jun 12, 2004 10:56 am

Postby ptrinchi on Sat Nov 27, 2004 2:55 pm

Hedgehog, good ideas ! I'll think about it
see you soon
ptrinchi
 
Posts: 108
Joined: Fri Sep 10, 2004 8:52 pm
Location: France

Postby QTips on Sat Nov 27, 2004 11:43 pm

awesome plugin :)

I want it to update weather every 5minutes in an infinity loop so I created an event under startup but what variables will it be for this?
QTips
 
Posts: 158
Joined: Tue Dec 16, 2003 6:53 pm
Location: Norway

Postby dgemily on Sun Nov 28, 2004 12:20 am

QTips wrote:awesome plugin :)

I want it to update weather every 5minutes in an infinity loop so I created an event under startup but what variables will it be for this?


there isn't variable to do it for the moment
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Postby QTips on Sun Nov 28, 2004 12:37 am

:shock:

and I that just sat making a overlay that said"Go get a beer" every 10 minutes
how shall I ever get drunk now ??
QTips
 
Posts: 158
Joined: Tue Dec 16, 2003 6:53 pm
Location: Norway

Postby dgemily on Sun Nov 28, 2004 1:58 am

in fact, I think there is a solution:

example with your overlay "get a beer":

in the eventgroups startup add an event "get beer" with 2 commands:
- an event show overlay ( with the name of your overlay)

- an event plugin: command
* plugin : select the plugin XEvent
* command : select Add Delayed Event
* variables :
Code: Select all
10|startup:get beer


so , your overlay " get a beer" will be displayed every 10 minutes... I didn't try it but it should works...
Last edited by dgemily on Tue Nov 30, 2004 8:53 am, edited 1 time in total.
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Next