Closing a Programm

Here you are welcome to discuss items of general interest related to Push2Run
Post Reply
zyan
Posts: 3
Joined: Mon Mar 09, 2020 1:05 pm

Closing a Programm

Post by zyan »

Hey is it Possible to Close a Programm with push2run?
RobLatour
Site Admin
Posts: 1016
Joined: Mon Feb 19, 2018 11:43 am

Re: Closing a Programm

Post by RobLatour »

if it is the active program that has your system focus, and if the program only has one open window, then yes - I do it from time to time myself.

open: Active Window

Keys to send: {alt}{F4}[*]


If it is a specific program, you might need to find a way to write your on .vbs script, but it may be problematic if the program has multiple windows open or has multiple instances running.
nameiboom
Posts: 1
Joined: Fri Jul 03, 2020 2:34 am

Re: Closing a Programm

Post by nameiboom »

Would it be possible to use it to kill a process?

got it with powershell!

open: Powershell.exe

{WAIT050} taskkill /IM "service name" {ENTER} {WAIT050} exit {ENTER}
Last edited by nameiboom on Fri Jul 03, 2020 4:15 am, edited 1 time in total.
Post Reply