Forum LiberKey


https://www.liberkey.com/forum/

How can I add a second shortcut to close the program?

https://www.liberkey.com/forum/viewtopic.php?f=29&t=6797

Page 1 of 2

How can I add a second shortcut to close the program?

PostPosted: 17 October 2014, 10:49
by Dirki
How can I add a second shortcut (e.g. CRTL + ALT + WIN + P) to close the program: http://i.imgur.com/KAY9qUJ.png

Re: How can I add a second shortcut to close the program?

PostPosted: 17 October 2014, 11:07
by Dji
For your shortcut (opening folder), you have the following ones:
"Alt + F4" or "Ctrl + W" :bigsmile:

There is no way to do this globally, it depends on the application.

Re: How can I add a second shortcut to close the program?

PostPosted: 17 October 2014, 11:19
by Dirki
Thank you, Dji,

Sorry, I do not quite understand.

With that shortcut I open that program: http://i.imgur.com/nCHcnas.png. It can be opened globally. Is there a way to also close it globally?

Thanks again.

Re: How can I add a second shortcut to close the program?

PostPosted: 17 October 2014, 11:46
by Dji
Well, it could be possible but 1) not at the moment in the menu, 2) no efficiency guarantee (see below)

On technical point of view, this is possible by sending SC_CLOSE message to process (WinAPI) but without any guarantee of the functional efficiency because it depends how the application has been developed (is the message handled by the application ? is there a message box for closure confirmation ? etc).

Re: How can I add a second shortcut to close the program?

PostPosted: 17 October 2014, 12:01
by Dirki
Alright, I understand. So I will leave it like it is.

Many thanks again.

Re: How can I add a second shortcut to close the program?

PostPosted: 17 October 2014, 22:33
by JP4U
Good evening.
It'snt a shortcut, but it's also exist a tip to close apps directly before the Liberkey closes.

LiberKey LinkLiberkey Tools >> Configuration >> Autorun
Check Enable Autorun and When Liberkey closes.
Drag and drop your app' shortcut in the bottom of the windows
add_an_app.png
(45.35 KiB) Not downloaded yet
(If you want you can modify the delay and the order if you have some apps in it).
Apply the change before closing the windows.
Enjoy.

N.B. : It's also possible add an app in these Autorun menu with a right click on the app => Shortcut properties => Advanced => Autorun => On shutdown if not already running

JP4U

Re: How can I add a second shortcut to close the program?

PostPosted: 17 October 2014, 23:13
by Dirki
Good evening, JP4U,

Thank you very much, it does not, what I would like to have, but it is a very good idea. But when I drag a shortcut over the "Configuration" window of LiberKey this symbol appears: http://i.imgur.com/gNycKSs.gif

Thank you very much again for the very understandable explanation and links.

Re: How can I add a second shortcut to close the program?

PostPosted: 18 October 2014, 00:03
by JP4U
Is your program has be detected by the Liberkey menu before ? Have-you installed it in MyApps before ?

If it is, with the right click method i've explain before it must appear in the autorun options.

JP4U

Re: How can I add a second shortcut to close the program?

PostPosted: 18 October 2014, 00:21
by Dirki
Is your program has be detected by the Liberkey menu before ? Have-you installed it in MyApps before ?

No, it is not, but it starts with LiberKey.

If it is, with the right click method i've explain before it must appear in the autorun options.

Yes, that would work, but that option already is in use: http://i.imgur.com/KAY9qUJ.png

Re: How can I add a second shortcut to close the program?

PostPosted: 19 October 2014, 22:32
by JP4U
Good evening.

Sorry I'm afraid you can't use my solution for external portable apps.

Normally LKAppsClose detect all the Liberkey apps running and could close them before closing liberkey.exe .
But method to close them is adapted for each app : some of them uses special processes or options, a simple kill could create data losts.

JP4U