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.

Search found 3 matches

by jbworks
Fri Dec 02, 2011 12:50 am
Forum: Coding Corner
Topic: Why does popen crash eventghost
Replies: 4
Views: 3137

Re: Why does popen crash eventghost

Unless I'm mistaken I have to use the single quote because the path name has a space in it. Without the quote yields the path not being found.
by jbworks
Tue Nov 29, 2011 5:15 pm
Forum: Coding Corner
Topic: Why does popen crash eventghost
Replies: 4
Views: 3137

Why does popen crash eventghost

First off, I know nothing about python, so please accept my apologies if this is a stupid question, but I am a bit stumped.

What is wrong with this code?

import os
os.system("taskkill /im squeezeplay.exe /f")
os.popen('"C:\Program Files\Squeezebox\SqueezePlay\squeezeplay.exe"')


EventGhost ...
by jbworks
Tue Nov 29, 2011 4:58 pm
Forum: Coding Corner
Topic: popen causing EventGhost to lock up
Replies: 1
Views: 1951

popen causing EventGhost to lock up

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 ...