Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Check if program is running
#1
Question 
Hi everyone,
I'm looking for a way to use an if statement to check if a program is running. I've found a few ways to do this with a window, but the program I'm using doesn't have a window and just sits in the system tray. 

Here's my code. I just need to fill in the if statement.

Code:
Copy      Help
if ;;program called "Example Hotkeys" is running
    AudioVolumeUpDownSpotify 1
else AudioVolumeUpDown 1

Thank you so much for you help! I appreciate it. I'll keep looking on my own as well.  Smile
#2
Tray icon cannot be without a window. It is invisible. To discover invisible windows: QM floating toolbar -> More Tools -> Explore windows. Then use win function; need to specify class name too, else finds only visible windows.

or
if 0!=ProcessNameToId("notepad")
#3
Oh thanks! Good to know  Smile


Forum Jump:


Users browsing this thread: 1 Guest(s)