Page 3 of 8

Re: MouseEvent Plugin

Posted: Wed May 31, 2017 6:22 am
by kgschlosser
that is very odd. because it works for me. let me look into something i am wondering if i am running a modified version of EG that fixed an issue with the clipboard chain.

Re: MouseEvent Plugin

Posted: Wed May 31, 2017 6:26 am
by kgschlosser
is there anything special about how EG is running? as an example in a remote desktop session?

Re: MouseEvent Plugin

Posted: Wed May 31, 2017 12:54 pm
by Diz
well... im using it as portable rather than installed... and i am running on stone age windows xp! :D these cant be the reasons though right?

Re: MouseEvent Plugin

Posted: Wed May 31, 2017 7:18 pm
by justahotbag2
I have found that removing the first line enables the paste function, under 0.4.r1722

but I get this when I move the mouse wheel.

Unhandled exception in WorkerThread <ActionThread>:
Callers stack:
File "threading.pyc", line 504, in __bootstrap
File "threading.pyc", line 532, in __bootstrap_inner
File "threading.pyc", line 484, in run
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 354, in __MainLoop
self.__DoOneEvent()
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 342, in __DoOneEvent
eg.PrintTraceback()
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 289, in HandleAction
action()
File "C:\Program Files (x86)\EventGhost\eg\Classes\EventThread.py", line 85, in Transfer
event.SetShouldEnd()
Traceback (most recent call last) (1722):
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 326, in __DoOneEvent
self.HandleAction(action)
File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionThread.py", line 87, in HandleAction
action()
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 62, in __call__
self.returnValue = self.func(*self.args, **self.kwargs)
File "C:\Program Files (x86)\EventGhost\eg\Classes\EventGhostEvent.py", line 168, in Execute
activeHandlers = sorted(activeHandlers, key=GetItemPath)
File "C:\Program Files (x86)\EventGhost\eg\Classes\TreeItem.py", line 377, in GetPath
path.append(parent.childs.index(item))
ValueError: tuple.index(x): x not in list


Pasting works fine under 0.5.0, but gives this error.

Unhandled exception in WorkerThread <ActionThread>:
Callers stack:
File "threading.pyc", line 774, in __bootstrap
File "threading.pyc", line 801, in __bootstrap_inner
File "threading.pyc", line 754, in run
File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 280, in __MainLoop
self.__DoOneEvent()
File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 269, in __DoOneEvent
eg.PrintTraceback()
File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 140, in HandleAction
action()
File "C:\Program Files\EventGhost\eg\Classes\EventThread.py", line 117, in Transfer
event.SetShouldEnd()
Traceback (most recent call last) (0.5.0-rc2):
File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 253, in __DoOneEvent
self.HandleAction(action)
File "C:\Program Files\EventGhost\eg\Classes\ActionThread.py", line 42, in HandleAction
action()
File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 324, in __call__
self.returnValue = self.func(*self.args, **self.kwargs)
File "C:\Program Files\EventGhost\eg\Classes\EventGhostEvent.py", line 148, in Execute
activeHandlers = sorted(activeHandlers, key=GetItemPath)
File "C:\Program Files\EventGhost\eg\Classes\TreeItem.py", line 284, in GetPath
path.append(parent.childs.index(item))
ValueError: tuple.index(x): x not in tuple


Hope this helps.

Re: MouseEvent Plugin

Posted: Thu Jun 01, 2017 1:03 am
by kgschlosser
In 0.5 does the error happen on paste or when you run it?

The error looks the same as 0.4 and you can't simply delete the first line. You can copy a tree item from 0.4 and paste it into a forum post for me to look at. But also I want you to copy and paste into your own. Tree and see if that functions properly. I want to take a look and see what is possibly going on. But also if it will paste into 0.5 properly. There is a need to make some changes to how the copy and paste works in new versions of EG. I don't think the current system does any version checking

Re: MouseEvent Plugin

Posted: Thu Jun 01, 2017 3:26 am
by Diz
ok... i have solved my paste always being greyed out mystery. turns out the issue is with the forum itself. whenever i copy from this forum i have always used that little 'select all' button at the top and i have noticed that this button always puts in an extra indent in from the left edge! this is why it wont paste directly into the tree. however, if i dont use that 'select all' button and drag the mouse over the text myself to copy it then there is no extra indent and the left edge is where it is supposed to be and then it will paste directly into the tree! so all along it was never even an eg issue but the forum that was actually at fault! :o :mrgreen:

Re: MouseEvent Plugin

Posted: Thu Jun 01, 2017 4:41 am
by kgschlosser
it's a P.E.B.K.A.C. kind of a problem


Problem Exists Between Keyboard And Chair :shock: :lol: 8)

Re: MouseEvent Plugin

Posted: Thu Jun 01, 2017 4:44 am
by kgschlosser
but now you know how to do the copy and paste thing. HOORAY!!! it is a convenient thing to be able to do.

@justahotbag2 let me know if this is also the solution for you as well.

Re: MouseEvent Plugin

Posted: Thu Jun 01, 2017 12:58 pm
by Diz
between keyboard and chair? you mean like a user error? :o :shock: how is it my fault if the forums 'select all' button adds extra data into the copied text? how could anyone expect that to happen? problem is definitely NOT between keyboard and chair! problem is with the forum... like i already said! :cry:

Re: MouseEvent Plugin

Posted: Thu Jun 01, 2017 1:39 pm
by kgschlosser
Chillll. I am messin with ya. But also I didn't say your chair. Someone at some point had to program the forum and it's wrong. So do me a favor and if you have an account on Github submit in issue for it there otherwise I may forget to fix it.

But now we know of the issue and how to work around it. And if you want to add a post in the bug reports section here and what the workaround is I am all for it. Just make the title something like Pasting XML into EventGhost

Re: MouseEvent Plugin

Posted: Thu Jun 01, 2017 2:27 pm
by Diz
aah... fair point... u didnt say MY chair! i just assumed... lol :oops:

ok i will do the github thing and a workaround bug report shortly :D

Re: MouseEvent Plugin

Posted: Thu Jun 01, 2017 3:16 pm
by Diz
ok... github issue submitted and workaround bug report posted :lol:

Re: MouseEvent Plugin

Posted: Thu Jun 01, 2017 10:43 pm
by kgschlosser
Thanks Diz I do appreciate it.

as┬Àsump┬Àtion
əˈsəm(p)SH(ə)n
noun
1.
The mother of all fuck-ups.
2.
a thing that is accepted as true or as certain to happen, without proof.
"they made certain assumptions about the market"

Re: MouseEvent Plugin

Posted: Fri Jun 02, 2017 2:07 am
by Diz
yeah i know... you are right... its my bad :roll: :D

Re: MouseEvent Plugin

Posted: Fri Jun 02, 2017 3:32 am
by kgschlosser
no worries m8. i'm just messin with ya.


But are you running this plugin also? and if you are have you tried the script and does it work?