Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

trigger macros with timer

If you have a question or need help, this is the place to be.
Post Reply
dmehling
Posts: 29
Joined: Wed Jun 24, 2009 12:10 am

trigger macros with timer

Post by dmehling »

I know that several posts have already dealt with this, but I am still confused. I'm wanting to trigger a macro at a specific time everyday. From what I've read so far, you need the timer plug-in to do this. I have added the timer plug-in, but I'm not sure what to do with it now.
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: trigger macros with timer

Post by Bartman »

You could also use the windows task scheduler.
Using the timer plugin you have to start a timer with some event (maybe the Main.OnInit event). When the timer finishes it triggers an event you can use to execute your daily macro. Within this macro you can start a new timer for the next day event.
Be aware that the timer does not take standby times into account so I would go with the task scheduler if this is the case.
dmehling
Posts: 29
Joined: Wed Jun 24, 2009 12:10 am

Re: trigger macros with timer

Post by dmehling »

What you are saying sounds rather complicated. I guess using Windows task scheduler might be a lot easier. How would I use it to trigger a macro?
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: trigger macros with timer

Post by Bartman »

dmehling wrote:What you are saying sounds rather complicated. I guess using Windows task scheduler might be a lot easier. How would I use it to trigger a macro?
you can use the -e eventName command line parameter
dmehling
Posts: 29
Joined: Wed Jun 24, 2009 12:10 am

Re: trigger macros with timer

Post by dmehling »

I guess I'm going to be needing a little more help with that, because I have never used the command line. What is the first step?
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: trigger macros with timer

Post by Bartman »

you can directly go the task scheduler.
Somewhere in the process you are asked for a program. Just select the EventGhost.exe and as arguments you give -e MyDailyEvent
that will give you an event Main.MyDailyEvent
dmehling
Posts: 29
Joined: Wed Jun 24, 2009 12:10 am

Re: trigger macros with timer

Post by dmehling »

That makes a little more sense now, but I don't quite understand how to create an event that will trigger my macro. The only way I know to create a event is to click add event. But I don't know exactly what to do with such an event. How do I cause that event to trigger a macro?
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: trigger macros with timer

Post by Bartman »

You can just drag an event from log on the left to a macro on the right in the tree. If that event is triggered again the macro will be executed.
dmehling
Posts: 29
Joined: Wed Jun 24, 2009 12:10 am

Re: trigger macros with timer

Post by dmehling »

I am still having some difficulty. I have created an event that I know will trigger the macro. However, I still cannot get task scheduler to trigger the event. Maybe I am not defining the argument correctly. Can you tell me exactly what the argument should be? The name of my event is USB_UIRT.Unknown.10
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: trigger macros with timer

Post by Bartman »

The event you mentioned is from the USB-UIRT plugin.
From the command line all the events will start with "Main." and you cannot trigger such an event.
dmehling
Posts: 29
Joined: Wed Jun 24, 2009 12:10 am

Re: trigger macros with timer

Post by dmehling »

So I can't use Windows task scheduler to initiate an event?
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: trigger macros with timer

Post by Bartman »

dmehling wrote:So I can't use Windows task scheduler to initiate an event?
yes so can. But you cannot trigger an event with the name "USB_UIRT.Unknown.10"
The events from command line always start with "Main."

Just edit the name in the tree to a name like Main.ScheduledEvent and in the task scheduler you set
-e ScheduledEvent
as arguments
dmehling
Posts: 29
Joined: Wed Jun 24, 2009 12:10 am

Re: trigger macros with timer

Post by dmehling »

I think I've got it figured out now. Thanks for your help.
hubbak
Posts: 2
Joined: Thu Dec 10, 2015 9:50 pm

Re: trigger macros with timer

Post by hubbak »

hello there i also have a same question, i want these actions to be triggered on the specific time or it should be triggered when the wifi reconnects back after 1 hr

thanks

any help would be appreciated
Attachments
234234.png
Post Reply