Miranda NG Official Community Forum

Forum for English speaking Miranda NG users => Support/Help => Topic started by: tjh on 15 09 2016, 01:20:58

Title: Graceful Automatic Shutdown
Post by: tjh on 15 09 2016, 01:20:58
Hi All,

Trying to figure out a way to nicely shutdown Miranda NG, every weekday, at 5pm.

I've tried two things, neither of which do what I want:

The CmdLine addon (http://wiki.miranda-ng.org/index.php?title=Plugin:CmdLine/en), which gives a command line way of shutting down Miranda.  I can call the MimCmd.exe quit command just fine from the Windows CLI and it works.  But trying to get it to work from Task Scheduler, it just refuses to do anything.  I can't figure out how to debug it any better either.

I've also tried the AutoShutdown plugin (http://wiki.miranda-ng.org/index.php?title=Plugin:AutoShutdown), but it doesn't have anyway of saying "Do this at 5pm everyday, no matter what".

Does anyone have any nice easy way to shutdown Miranda IM Monday-Friday at a certain time?

I want a clean shutdown because I'll be doing this every day.  My Miranda lives on a Dropbox, and I like to know that it shut down properly so that when I get home and fire it up on my home laptop, I can kick off from where I left.  I've been using pskill  (https://technet.microsoft.com/en-us/sysinternals/pskill.aspx)from SysInternals but I'm hoping for a better way.

Thanks!

Thanks!
Title: Re:Graceful Automatic Shutdown
Post by: Robyer on 15 09 2016, 02:28:46
Maybe you can use http://wiki.miranda-ng.org/index.php?title=Plugin:Actman
I think (but I'm not 100% sure) it has option to plan action to repeat on some time - so you can plan starting service: CallService("CloseAction", 0, 0);

But having this feature directly in Auto Shutdown seems reasonable - maybe add ticket (feature request) on our bug tracker (http://trac.miranda-ng.org) so someone can implement option for "repeating shutdown".

Also not working MimCmd from Task Scheduler sounds weird. I just tried it and it works for me. My setting: http://imgur.com/NK9024S
Title: Re: Graceful Automatic Shutdown
Post by: tjh on 15 09 2016, 03:19:51
Yea, I just can't get it to work - I'm not sure what I'm doing wrong.
I've Windows 10, Anniversary Edition.

My settings look exactly like that.

Thank you for your suggestion about ActMan - it's a useful plugin too but it doesn't quite have the repeating weekday thing I'm looking for.

I will keep working with MimCmd.  I must be doing something really stupid, but I can't figure out what!

Thanks for help.
Title: Re: Graceful Automatic Shutdown
Post by: tjh on 15 09 2016, 03:25:15
I just created a new task, exactly the same, and it works fine with MimCMD.  >:(

I'm very sorry, what a waste of a thread.

Appreciate the help.