by BDHtP » Wed Mar 20, 2013 8:56 am
I got the same Problem here.
Specs: Win7 64bit + EventGhost 0.4.1.r1610 + Microsoft MCE V2
It gets the Code, then after a second it crashes.
I made a dirty workaround for now, since i haven't found a solution.
It simply saves the Code in an external file named Code.txt in a Path of your choice (user must have write privileges in said path).
WORKAROUND:
1.go to ..\EventGhost\plugins\MceRemote_Vista
2.edit __init__.py
3.search for "return code"
4.paste above "return code" the following code:
2 Options A) Code gets attached if there is something in Code.txt followed by a line feed.
#BDHtP
pfad = "C:\Users\USERX\Downloads/" # CHANGE PATH!!
dateiname="Code.txt"
datei = pfad+dateiname
out_file = open(datei,"a")
out_file.write(code + '\n')
out_file.close()
#BDHtP
B) Old Code in Code.txt gets overwritten with new Code (faster since you open Code.txt, Ctrl+A,Ctrl+C,Alt+F4, Paste to Eventghost):
#BDHtP
pfad = "C:\Users\USERX\Downloads/" # CHANGE PATH!!
dateiname="Code.txt"
datei = pfad+dateiname
out_file = open(datei,"w")
out_file.write(code)
out_file.close()
#BDHtP
5.it should look like this:
...
self.learnDialog = None
self.freqs = [0]
self.result = []
#BDHtP
pfad = "C:\Users\USERX\Downloads/" # CHANGE PATH!!
dateiname="Code.txt"
datei = pfad+dateiname
out_file = open(datei,"a")
out_file.write(code + '\n')
out_file.close()
#BDHtP
return code
...
6.Save the file and overwrite __init__.py (make backup for safety)
Now the
1.Start Eventghost
2.Learn ir in Eventghost, eventghost crashes.
3.go to the folder you defined, there should be a Code.txt
4.open, copy your Code.
5.open eventghost, make a transmit job, paste Code, OK, Save.
Done! Repeat after 2.