#1 2015-11-30 09:47

Dirk
Member
Registered: 2013-04-05
Posts: 91

Close a program periodically?

Can one close a program periodically, respectively close a program with shutter at all?

Offline

#2 2015-11-30 10:41

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,367

Re: Close a program periodically?

Yes, it can.

Did you try adding a Countdown event and a Close Window or Kill Process events?

For example:

Events:
1) Countdown: Wait 0:10:00
Actions:
1) Kill Process: "notepad.exe"

Offline

#3 2015-11-30 12:28

Dirk
Member
Registered: 2013-04-05
Posts: 91

Re: Close a program periodically?

Thank you.

Did you try adding a Countdown event and a Close Window or Kill Process events?

No, I didn't. "Kill Process", I assume, means a program might be closed very roughly, so it might damage the program, data. And I thought "Close Window" just might close a window of a program and the program keeps running on. And you have to know the name of the window and may be there a different names, I do not know.

I would like to have a program closed periodically each day at e.g. 1 o' clock at night.

Offline

#4 2015-11-30 13:41

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,367

Re: Close a program periodically?

Kill Process action terminates the target process abruptly.

Close Window action sends a special message to indicate that it should be closed in a normal fashion. Usually if you do this to the main window of the application then the whole application will close in a normal fashion. Close Window action also accepts wildcard masks, in case the window title is dynamic.

Unless your application supports some kind of programmatic way of shutting down, for example command line switches, there is no other way to do this.

It is your choice which you want to do.

Offline

#5 2015-11-30 14:22

Dirk
Member
Registered: 2013-04-05
Posts: 91

Re: Close a program periodically?

Close Window action sends a special message to indicate that it should be closed in a normal fashion. Usually if you do this to the main window of the application then the whole application will close in a normal fashion. Close Window action also accepts wildcard masks, in case the window title is dynamic.

So, I guess, this version is the one I should use. But Rainlendar runs minimized, so without any window, and when you click the icon some windows / calendars, etc. are shown (like that: http://i.imgur.com/U282P96.png), but a "real", usual name for a window I couldn't find. So what should I enter to shutter to close rainlendar this way? And here - http://i.imgur.com/y0nE8TX.png - is not shown any window of Rainlendar.

Last edited by Dirk (2015-11-30 14:25)

Offline

#6 2015-11-30 15:40

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,367

Re: Close a program periodically?

Any GUI application will have at least 1 window, and every window will have a title, even when not visible. It's how Windows works.

What do you see in the "Close Window" drop down list? Can you identify a title which represents Rainlendar?

Offline

#7 2015-11-30 15:45

Dirk
Member
Registered: 2013-04-05
Posts: 91

Re: Close a program periodically?

No, not at all, that is what I mean, I cannot identify anything which might have a connection to Rainlendar:

And here - http://i.imgur.com/y0nE8TX.png - is not shown any window of Rainlendar.

Offline

#8 2015-11-30 15:47

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,367

Re: Close a program periodically?

I guess "Kill Process" action is the only way then.

Offline

#9 2015-11-30 15:52

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,367

Offline

#10 2015-11-30 16:07

Dirk
Member
Registered: 2013-04-05
Posts: 91

Re: Close a program periodically?

I guess "Kill Process" action is the only way then.

Do you think that way could damage Rainlendar / data?

Many thanks for the link, it shows that: http://i.imgur.com/iu6x3R1.png
The "Title" field is left unfilled. May be "RainlendarWindow" will work?
Process Explorer shows nothing in the window column: http://i.imgur.com/IkGNUHM.png

Offline

Board footer

Powered by FluxBB