Guides/General FAQ/How do I run code in the clipboard?
< Guides | General FAQ
Jump to navigation
Jump to search
How do I run code in the clipboard?
You might want this to run code from an email or other external source.
The easiest way is to copy the code to the clipboard, then in J, run the clipboard with:
0!:101 wdclipread''
You can define a function key to execute this expression. To do so, go to menu Edit|Configure|Fkeys, then Add, select a function key, say F8, then enter:
Output: quiet
Label: Run clipboard
Code: 0!:101 wdclipread''
and OK to close config. Then press F8 with the code in the clipboard.
This works for most emails. For more complex examples, you may need to create a new script, paste the email into the script and edit it before it can be run.