Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] clipboard.lua could not set the contents. (CoInitialize has not been called.) #22

Closed
AliubYiero opened this issue Jan 15, 2023 · 0 comments

Comments

@AliubYiero
Copy link

AliubYiero commented Jan 15, 2023

When I use clipboard and set the clipboard contents (clipboard.set), it will report an error like
Failed to put date on the clipboard (error -2147221008: Coinitialize has not been called. )
And when I use the same test file in Aegisub 3.2.2, it successfully ran.

There is the test file:

clipboard = require 'aegisub.clipboard'

main = function(subs, selected_lines)
	aegisub.debug.out(clipboard.get())

	clipboard.set("Successfully get and set the clipboard. ")

	aegisub.debug.out(clipboard.get())
end

aegisub.register_macro("clipboard_test", "", main)

It can use clipboard.get get the origin clipboard contents, but when I want to set the content (use clipboard.set), it just report an error.
So the progress window will display the origin clipboard content twice.

arch1t3cht added a commit to TypesettingTools/Aegisub that referenced this issue Dec 3, 2023
arch1t3cht added a commit to TypesettingTools/Aegisub that referenced this issue Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant