SublimeHighlight icon indicating copy to clipboard operation
SublimeHighlight copied to clipboard

Failed in windows7

Open funtion opened this issue 10 years ago • 3 comments

Win a try to copy as HTML,I could not paste anything.I got the error form the console: Traceback (most recent call last): File ".\sublime_plugin.py", line 356, in run_ return self.run(edit, **args) File ".\SublimeHighlight.py", line 152, in run File ".\winclip__init__.py", line 57, in Paste File ".\winclip__init__.py", line 80, in Put ValueError: Procedure probably called with too many arguments (8 bytes in excess)

funtion avatar May 24 '14 12:05 funtion

I have the same problem and correct it with the following steps:

  • In SublimeText menu, go to "Preferences" => "Browse Packages..."
  • Navitage to "Highlight\winclip" folder
  • Edit init.py line 80 : change "scd(c_int(format), hCd, 0, False)" by "scd(c_int(format), hCd)"
  • Save file and restart SublimeText
  • "copy as HTML" should work now

SetClipboardData takes only 2 parameters: http://msdn.microsoft.com/en-us/library/windows/desktop/ms649051(v=vs.85).aspx

Shoubi avatar Jun 24 '14 14:06 Shoubi

Thanks @Shoubi

klashxx avatar Jun 27 '16 10:06 klashxx

Could you guys create a PR for this?

n1k0 avatar Jun 27 '16 10:06 n1k0