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.

Advanced Q: check App every 5 min, if not running, run app!

If you have a question or need help, this is the place to be.
Post Reply
stisev
Experienced User
Posts: 162
Joined: Tue Jun 26, 2007 2:55 am

Advanced Q: check App every 5 min, if not running, run app!

Post by stisev »

Hi all,

Title halfassedly says it all. This is a really important function I hope EG can help me with.


My phone service is through MagicJack (google it) and I run a softphone that runs on my laptop. Sometimes the software quits and I'm not aware/or @ home and my phone goes down.

This is what I want to do:

*) Enable the macro using EG autostart "Main.OnInit" (I know how to do this)

1) EG checks whether process is running every 5 minutes
2) IF process isn't running, then run it ****with commandline options*** : "C:\Documents and Settings\STi Sev\Application Data\mjusbsp\magicJack.exe" /foreground /scf _magicJackPersonalDataRoot "L:\magicJack"

3) IF process is running just check again in 5 minutes and repeat.

Please please please someone help :(


EG is amazingly advanced, but is this even possible? I really, really hope there's a way. :(
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Advanced Q: check App every 5 min, if not running, run app!

Post by Pako »

Hi stisev!
You can try EG xml-file, which is attached.
I have not magicJack and I can not try.

Pako
Attachments
Test_stisev.xml
(1.54 KiB) Downloaded 279 times
stisev
Experienced User
Posts: 162
Joined: Tue Jun 26, 2007 2:55 am

Re: Advanced Q: check App every 5 min, if not running, run app!

Post by stisev »

WOW Pako! Looks like a great start.

2 issues though:

1) The script doesn't run every 5 minutes. :(
2) Is there any way to do this without using WMI implementation?
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Advanced Q: check App every 5 min, if not running, run app!

Post by Pako »

stisev wrote: 1) The script doesn't run every 5 minutes.
I don't understand, for me it works. An event is triggered every 300 seconds (by Timer).
stisev wrote:2) Is there any way to do this without using WMI implementation?
Of course, it is also done in another way. One possibility is attached.
Pako
Attachments
Test_stisev_2.xml
(2.62 KiB) Downloaded 285 times
stisev
Experienced User
Posts: 162
Joined: Tue Jun 26, 2007 2:55 am

Re: Advanced Q: check App every 5 min, if not running, run app!

Post by stisev »

Pako

1) Ahahah. It would be nice if I added the timer plugin to my EG list. *oops*! Also, the second XML you posted has the timer in it (while the first does not)
"Timer: Start timer "check_App_every_5_min" (unlimited loops, 300.00 seconds intervall)"

2) THANK YOU THANK YOU THANK YOU for making a non-WMI version. This helps me lower the # of process on my computer

YES!!! It works! It works! Pako I LOVE YOU! Thank you soooooooooooo much! This helps me so much!
Post Reply