Page 1 of 1

Can't disable/enable an event with name of "*"

Posted: Sat Jul 06, 2013 12:11 am
by jonib
So I have an event in a macro with name "*" to catch all events, then I tried to disable the event with "Disable an item" and I got this error:

Code: Select all

      Disable an item
         Error in Action: "Disable an item"
         Traceback (most recent call last) (1610):
           File "C:\Program Files (x86)\Util\EventGhost\eg\Classes\ActionBase.py", line 170, in CallWrapper
             return self(*args)
         TypeError: __call__() takes exactly 2 arguments (1 given)
So I'm assuming this is a bug?

jonib

Re: Can't disable/enable an event with name of "*"

Posted: Sun Jul 07, 2013 5:57 pm
by cfull1
Yeah I'm sure it has to do with how python handles arguments. Can you not just change the name of the macro?

Re: Can't disable/enable an event with name of "*"

Posted: Sun Jul 07, 2013 6:07 pm
by jonib
I guess it's possible to change the name as a workaround, but as long as "*" is a valid item name, actions should be able to handle it.
Can you not just change the name of the macro?
The macro isn't named "*" but the event.

jonib

Re: Can't disable/enable an event with name of "*"

Posted: Tue Jul 09, 2013 1:06 am
by cfull1
Oh I see. I can't seem to duplicate it? Does this attachment work for you?

Re: Can't disable/enable an event with name of "*"

Posted: Tue Jul 09, 2013 3:29 am
by jonib
cfull1 wrote:Oh I see. I can't seem to duplicate it? Does this attachment work for you?
It works, but it isn't disabling the "*" event but the macro.

So I changed it to disable the "*" event and it still works, weird(or not).

I don't have the original config where I had the problem as it was just a test, but I did a new test in my normal config and it works there too. :shock: :oops:

So I guess you can disregard this "bug" report for now, must have been something else interfering. Sorry for wasting your time, should have done a bit more testing before posting. :|

jonib

Re: Can't disable/enable an event with name of "*"

Posted: Tue Jul 09, 2013 5:06 am
by cfull1
No worries, glad it's sorted!