What programs are running?

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
raulvelazquez
Posts: 54
Joined: Fri Jan 20, 2012 6:08 pm

What programs are running?

Post by raulvelazquez » Mon Jan 23, 2012 1:35 am

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?

flintGA2c5a
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 61
Joined: Tue Jan 24, 2012 10:35 am

Re: What programs are running?

Post by flintGA2c5a » Thu Feb 09, 2012 9:45 pm

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.
Last edited by flintGA2c5a on Thu Feb 09, 2012 11:48 pm, edited 2 times in total.

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: What programs are running?

Post by mwieder » Thu Feb 09, 2012 9:56 pm

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)

flintGA2c5a
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 61
Joined: Tue Jan 24, 2012 10:35 am

Re: What programs are running?

Post by flintGA2c5a » Thu Feb 09, 2012 11:10 pm

Ok that is very cool and interesting. Just noticed the longer answer on the Mac OS forums, learning something new everyday :D

Post Reply