Is it possible to check for running process by name?
I.e something like; if banana.exe is running change eg.result to "yes" else eg.result is "no"
Could it be possible bwith Ptython? I think I might need to import some libraries in that case, if EG supports that!
Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
Check for running process?
Check for running process?
Automation is life.
Win7 64bit
EG: v0.5.0-rc4
Win7 64bit
EG: v0.5.0-rc4
Re: Check for running process?
If the process has a window (even if hidden) you can use "Action\Window\Find a Window". You can also use "Task create/Switch Events" or "Process watcher" plugins to get events when a program gets started/stopped or gets in/out of focus.skribb wrote:Is it possible to check for running process by name?
jonib
Re: Check for running process?
That's true, I guess I could just make a variable that keeps track of the process' status.
Tack
Tack
Automation is life.
Win7 64bit
EG: v0.5.0-rc4
Win7 64bit
EG: v0.5.0-rc4
Re: Check for running process?
psutil library was included in EventGhost 4.0.1.r1722.skribb wrote:That's true, I guess I could just make a variable that keeps track of the process' status.
jonibpsutil is a cross-platform library for retrieving information onrunning processes and system utilization (CPU, memory, disks, network)in Python.
Re: Check for running process?
jonib wrote:psutil library was included in EventGhost 4.0.1.r1722.skribb wrote:That's true, I guess I could just make a variable that keeps track of the process' status.jonibpsutil is a cross-platform library for retrieving information onrunning processes and system utilization (CPU, memory, disks, network)in Python.
Sweet. I should have checked first before posting but thanks for the info, I could definitely use psutil lib
Automation is life.
Win7 64bit
EG: v0.5.0-rc4
Win7 64bit
EG: v0.5.0-rc4
