First off, I know nothing about python so please accept my apologies if I'm missing something stupid.
Why does this script cause EventGhost to crash?
import os
os.system("taskkill /im squeezeplay.exe /f")
os.popen('"C:\Program Files\Squeezebox\SqueezePlay\squeezeplay.exe"')
The script does works except for eventghost locks up as soon as it is done running.
any suggestions would be greatly appreciated
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.
popen causing EventGhost to lock up
-
eatmeimadanish
- Experienced User
- Posts: 118
- Joined: Thu Oct 01, 2009 5:11 pm
Re: popen causing EventGhost to lock up
Do not use OS. Instead use
import subprocess
subprocess.popen("command line")
import subprocess
subprocess.popen("command line")