!CLIPBOARD

From iMacros
Jump to: navigation, search

Copy data from and to the clipboard. This command is available in iMacros for Firefox 6.2.2.0 and later and iMacros 7.


Value iMacros Browser IE Plug-in Firefox Chrome

Any valid clipboard text content.

Set By

[X] Internal (from clipboard)

[X] SET (to clipboard)

Internal means that the iMacros program itself sets the value of the variable during program run. SET means that the user can set this value via the SET command inside a macro.

Examples

Copy data from the clipboard to a website:

 URL GOTO=http://www.iopus.com/imacros/demo/v6/f1/form.asp
 TAG POS=1 TYPE=TEXTAREA FORM=NAME:TestForm ATTR=NAME:Remarks CONTENT=Clipboard<SP>content<SP>=<SP>{{!CLIPBOARD}}


Copy data extracted from a website into the clipboard:

 URL GOTO=http://www.iopus.com/imacros/demo/v6/extract2/       
 TAG POS=1 TYPE=TD ATTR=CLASS:bdytxt&&TXT:* EXTRACT=TXT  
 SET !CLIPBOARD {{!EXTRACT}}

Notes

  1. In Chrome Chrome referencing the !CLIPBOARD variable with {{!CLIPBOARD}} does not currently work, but SET !CLIPBOARD does.

See Also

SET, !EXTRACT, PROMPT, PAUSE