closing an active app with shortcut

Discussion, questions and support.
Post Reply
themaster
Posts: 4
Joined: Mar 31st, ’17, 11:52

Post by themaster » Mar 31st, ’17, 13:20

hi,

i search the programm for a few hours, as well as i search here in the forum.

i hope i am not blind, but i didnt find a solution to end a app with a shortcut.

for example hit win + F2 and the active app closes.

thanks in advance
User avatar
Tom
Posts: 796
Joined: Nov 24th, ’15, 23:39

Post by Tom » Mar 31st, ’17, 14:17

Type: Send
Command:

Code: Select all

!{F4}
If you just want to minimize the app:

Type: Command
Command:

Code: Select all

WinMinimize, A
Also check the Library for many examples.
themaster
Posts: 4
Joined: Mar 31st, ’17, 11:52

Post by themaster » Mar 31st, ’17, 14:49

thank you for your fast answer.

that what you answered i have already tested, but not all programs reakt to it.

it works with windows stuff , browseres. but teamspeak / a musik programm i cant close.
its so strange. i have no clue.

btw, if i hit alt+f4 when teamspeakwindow is active, it closes the program, not with the shortcut.

do you know by any chance an other command to close apps ? or know a solution for the problem.

thanks again for your help
(sorry for my english, i am german. hope its readable)
themaster
Posts: 4
Joined: Mar 31st, ’17, 11:52

Post by themaster » Mar 31st, ’17, 16:40

some intressting i found. i can close all apps , except apps they run in admin mode.

maybe there is a solution to close also them ?

thanks for your help again !
lehmakommionu
Posts: 34
Joined: Aug 2nd, ’14, 20:50

Post by lehmakommionu » Apr 3rd, ’17, 00:32

try for example

Code: Select all

WinGet, active_app, ProcessName, A
Runwait, taskkill /im "%active_app%" /f,, hide
return
themaster
Posts: 4
Joined: Mar 31st, ’17, 11:52

Post by themaster » Apr 3rd, ’17, 22:20

i will try that , thank you !
Post Reply