Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Failed in windows7 #48

Open
funtion opened this issue May 24, 2014 · 3 comments
Open

Failed in windows7 #48

funtion opened this issue May 24, 2014 · 3 comments

Comments

@funtion
Copy link

funtion commented May 24, 2014

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)

@Shoubi
Copy link

Shoubi commented Jun 24, 2014

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

@klashxx
Copy link

klashxx commented Jun 27, 2016

Thanks @Shoubi

@n1k0
Copy link
Owner

n1k0 commented Jun 27, 2016

Could you guys create a PR for this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants