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

"createSetClipboardCommand" #281

Open
lxhj opened this issue Aug 18, 2023 · 2 comments
Open

"createSetClipboardCommand" #281

lxhj opened this issue Aug 18, 2023 · 2 comments

Comments

@lxhj
Copy link

lxhj commented Aug 18, 2023

can provide an example for send the "createSetClipboardCommand" command , PLZ

@drauggres
Copy link
Collaborator

} else if (action === CommandControlMessage.TYPE_SET_CLIPBOARD) {
btn.onclick = () => {
const text = input.value;
if (text) {
client.sendMessage(CommandControlMessage.createSetClipboardCommand(text));
}
};

@lxhj
Copy link
Author

lxhj commented Aug 19, 2023

} else if (action === CommandControlMessage.TYPE_SET_CLIPBOARD) {
btn.onclick = () => {
const text = input.value;
if (text) {
client.sendMessage(CommandControlMessage.createSetClipboardCommand(text));
}
};

thx reply, I wrote a rest api in other file, how to call this sendmsg in method?
like

newfile.ts

import xxxx;

private void test(){
 client.sendMessage(CommandControlMessage.createSetClipboardCommand(text)); 
}

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

2 participants