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.

Alt+Tab python script help

If you have a question or need help, this is the place to be.
Post Reply
johnmacd
Posts: 6
Joined: Sat Jun 14, 2008 7:10 pm

Alt+Tab python script help

Post by johnmacd »

I'm trying to make a button on my remote to handle Alt + Tab with one button. I found this posting that appears to be what I am looking for:
viewtopic.php?f=2&t=685&start=30#p19866

I've changed HID.Button.26 to USB_UIRT.NEC.50863166 which is my button on my remote

But when I add the code into EG as a Python script I get the following error:
Error compiling script.
Traceback (most recent call last):
SyntaxError: invalid syntax (5, line 1)

When I started EG with this script in my tree I got the following error:
Error compiling script.
Traceback (most recent call last) (1582):
File "C:\Program Files\EventGhost\eg\Classes\ActionItem.py", line 121, in SetArguments
self.compiled = self.executable.Compile(*args)
File "C:\Program Files\EventGhost\plugins\EventGhost\PythonScript.py", line 71, in __init__
self.PrintTraceback()
File "C:\Program Files\EventGhost\plugins\EventGhost\PythonScript.py", line 97, in PrintTraceback
treeItem.PrintError("Traceback (most recent call last):")
AttributeError: 'NoneType' object has no attribute 'PrintError'

I'm guessing I'm missing some step in the python process, like to do I need to also add the script to a folder in C:\Program Files\EventGhost\plugins\EventGhost\PythonScript.py

Any ideas what I'm missing or doing wrong?
Post Reply