Copy Paste functions

Found a bug in EventGhost? Report it here.

Copy Paste functions

Postby DraZtiK » Sat May 03, 2008 11:41 pm

I'm trying to copy a folder and then open a new file and paste the contents in there. I'm running into some trouble though.

when I right click on the folder I get an error.

Code: Select all
Error1: Failed to get data from the clipboard (error -2147221040: openClipboard Failed)
Error1: Failed to get data from the clipboard (error -2147221040: openClipboard Failed)


When I copy the folder sometimes it will paste fine and sometimes it wont. when I copy (from the auto created Denon folder when I added the plugin) and then try to paste my Denon folder into a new file I get this error, and it doesn't paste.

Code: Select all
Traceback (most recent call last):
  File "C:\Program Files\EventGhost\eg\Classes\MainFrame\__init__.py", line 737, in OnCmdPaste
    self.DispatchCommand("Paste", event)
  File "C:\Program Files\EventGhost\eg\Classes\MainFrame\__init__.py", line 656, in DispatchCommand
    method()
  File "C:\Program Files\EventGhost\eg\Classes\MainFrame\TreeCtrl.py", line 593, in Paste
    eg.UndoHandler.Paste(self.document)
  File "C:\Program Files\EventGhost\eg\Classes\UndoHandler\Paste.py", line 100, in __init__
    partial(childCls, targetObj, childXmlNode)
  File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 68, in __call__
    self.returnValue = self.func()
  File "C:\Program Files\EventGhost\eg\Classes\ContainerItem.py", line 41, in __init__
    tagDict[childNode.tag](self, childNode) for childNode in node
  File "C:\Program Files\EventGhost\eg\Classes\ContainerItem.py", line 41, in __init__
    tagDict[childNode.tag](self, childNode) for childNode in node
  File "C:\Program Files\EventGhost\eg\Classes\ActionItem.py", line 85, in __init__
    plugin = getattr(eg.plugins, pluginStr).plugin
AttributeError: Bunch instance has no attribute 'DenonSerial'


Also, when I try to configure my Denon plugin and change com ports, I get this error.

Code: Select all
Unhandled exception in thread started by <bound method DenonSerial.reader of <pluginImport.DenonSerial.DenonSerial object at 0x01F59BD0>>
Traceback (most recent call last):
  File "C:\Program Files\EventGhost\eg\Singletons\Log.py", line 76, in write
    self.Write(data, ERROR_ICON)
  File "C:\Program Files\EventGhost\eg\Singletons\Log.py", line 129, in Write
    for line in lines[:-1]:
  File "C:\Program Files\EventGhost\plugins\DenonSerial\__init__.py", line 400, in reader
    ch = self.serial.read()
  File "C:\Program Files\EventGhost\eg\WinApi\serial\serialwin32.py", line 223, in read
    n = win32file.GetOverlappedResult(self.hComPort, self._overlappedRead, 1)
pywintypes.error: (995, 'GetOverlappedResult', 'The I/O operation has been aborted because of either a thread exit or an application request.')
DenonSerial.MV.405
DenonSerial.MVMAX.94


I loaded the example.xml file and copied the "Volume Control" folder and it pasted fine. I loaded the example.xml file again and tried to copy and paste the "Context folder" into a new file again and get this error.

Code: Select all
Traceback (most recent call last):
  File "C:\Program Files\EventGhost\eg\Classes\MainFrame\__init__.py", line 737, in OnCmdPaste
    self.DispatchCommand("Paste", event)
  File "C:\Program Files\EventGhost\eg\Classes\MainFrame\__init__.py", line 656, in DispatchCommand
    method()
  File "C:\Program Files\EventGhost\eg\Classes\MainFrame\TreeCtrl.py", line 593, in Paste
    eg.UndoHandler.Paste(self.document)
  File "C:\Program Files\EventGhost\eg\Classes\UndoHandler\Paste.py", line 100, in __init__
    partial(childCls, targetObj, childXmlNode)
  File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 68, in __call__
    self.returnValue = self.func()
  File "C:\Program Files\EventGhost\eg\Classes\ContainerItem.py", line 41, in __init__
    tagDict[childNode.tag](self, childNode) for childNode in node
  File "C:\Program Files\EventGhost\eg\Classes\ContainerItem.py", line 41, in __init__
    tagDict[childNode.tag](self, childNode) for childNode in node
  File "C:\Program Files\EventGhost\eg\Classes\ContainerItem.py", line 41, in __init__
    tagDict[childNode.tag](self, childNode) for childNode in node
  File "C:\Program Files\EventGhost\eg\Classes\ActionItem.py", line 85, in __init__
    plugin = getattr(eg.plugins, pluginStr).plugin
AttributeError: Bunch instance has no attribute 'ZoomPlayer'


Any Ideas?

My version is 0.3.6.1390
DraZtiK
 
Posts: 11
Joined: Sat May 03, 2008 11:15 pm

Re: Copy Paste functions

Postby Bitmonster » Sun May 04, 2008 1:11 pm

Well, there are three problems. I number them by the tracebacks you posted

1. It seems another application is blocking your clipboard. For example some versions of FlashGet are known to produce such problems, because it polls the clipboard and other applications will then often fail to open it, because clipboard access is exclusive.

2. + 4. You can't paste actions of a plugin into a tree, if the tree has no plugin instance of the actions. You first need to add the Denon and Zoom Player plugin before such paste will succeed.

3. This is a (smaller) bug of the Denon plugin. It happens sometimes when the plugin has to close. I can't fix it, because I have no Denon with serial interface to test it, but this bug doesn't harm much.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
User avatar
Bitmonster
Site Admin
 
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: Copy Paste functions

Postby DraZtiK » Sun May 04, 2008 3:30 pm

Bitmonster wrote:1. It seems another application is blocking your clipboard. For example some versions of FlashGet are known to produce such problems, because it polls the clipboard and other applications will then often fail to open it, because clipboard access is exclusive.


Ahhh..I do have VNC server running on it and has clipboard copy/paste functions and that may be it but I didn't disable it to try.

Bitmonster wrote:2. + 4. You can't paste actions of a plugin into a tree, if the tree has no plugin instance of the actions. You first need to add the Denon and Zoom Player plugin before such paste will succeed.


Thank you, that makes sense.

Bitmonster wrote:3. This is a (smaller) bug of the Denon plugin. It happens sometimes when the plugin has to close. I can't fix it, because I have no Denon with serial interface to test it, but this bug doesn't harm much.


I love the plugin, and does work fine, just thought I would bring it up. If there is anything I can do to help if you wanted to look into it I'll help in anyway you need.

Thank you and the dev's for the time and for such a great utility!
DraZtiK
 
Posts: 11
Joined: Sat May 03, 2008 11:15 pm


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 3 guests