Im super new to programming, falling in and out from time to time. But once in a blue moon, I want to add functionality to my keyboard, in attempt to make my life a little easier. So what I want to do, is ALT + NumPad x to start a program, and if that program is open when ALT + NumPad x is pressed, close the program.
set program1="chrome"
start %program1%
That will open the program, but what should I do to close it? Make a variable program'x'open = true/false/ if true call a function to close, else nothing? Im stuck on the close program part.