Page 1 of 1

What programs are running?

Posted: Mon Jan 23, 2012 1:35 am
by raulvelazquez
Is there a way, on a PC and Mac, to see if there is a program running?
To explain better, I want to make a video player, but I want to check if there is a program that is running that can make captures, like Camtasia. If there is, I would like to stop my program and tell the user that it should close X program.

Can that be done using LiveCode?

Re: What programs are running?

Posted: Thu Feb 09, 2012 9:45 pm
by flintGA2c5a
This would probably be difficult without an external. Why would you want to do this anyways? The extra time used to put such a feature takes away from the time that you could be used to create value for the user by making the video player better.

Re: What programs are running?

Posted: Thu Feb 09, 2012 9:56 pm
by mwieder
Not a big problem. On OSX you can do

Code: Select all

put shell(ps Ax)
On Windows, it depends on the OS... for instance, on XP you can say

Code: Select all

put shell(tasklist)

Re: What programs are running?

Posted: Thu Feb 09, 2012 11:10 pm
by flintGA2c5a
Ok that is very cool and interesting. Just noticed the longer answer on the Mac OS forums, learning something new everyday :D