XWidgetSoft Forum https://www.bbs.xwidget.com/ |
|
Can Xwidget put data on the clipboard? - SOLVED https://www.bbs.xwidget.com/viewtopic.php?f=7&t=5787 |
Page 1 of 1 |
Author: | Dr_Xadium [ June 18th, 2015, 3:18 am ] |
Post subject: | Can Xwidget put data on the clipboard? - SOLVED |
I am interested in making a quick widget to paste some information onto the windows clipboard if I pressed a button, for example If I press an icon it puts the text "here is some information" into the clipboard which I can then paste into any other application. Is this possible? EDIT: Found an answer using the command line. Assign the following to OnClick (or however you want to trigger it) Code: !Run=cmd /c echo|set /p=YOUR TEXT HERE|clip Downside: It briefly flashes the command window, and depending on your string you may have to escape certain characters. I wish I could get it to work with Windows Scripting but so far I haven't been able to make it work. |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |