MozillaZine

Durado keyconfig print clipboard

Announce and Discuss the Latest Theme and Extension Releases.
MatchpointOK
 
Posts: 2
Joined: October 9th, 2019, 7:33 pm

Post Posted October 9th, 2019, 7:44 pm

I am running OpenSuse Leap 15.1 with 64-bit Thunderbird 60.8.0. I am trying the simplest of tasks, to read and print the clipboard. The code is:

var paste = readFromClipboard(); if(!paste) return;GetCurrentEditor().insertText(paste)

I get nothing. Do I have to give javascript permission to read the clipboard?


Thanks

MatchpointOK
 
Posts: 2
Joined: October 9th, 2019, 7:33 pm

Post Posted October 11th, 2019, 5:40 pm

The command goDoCommand("cmd_paste") does what the original code failed to do; prints the content of the clipboard. Is there a way to save the output of the command to a string?

Return to Extension/Theme Releases


Who is online

Users browsing this forum: Bing [Bot] and 1 guest