The renewal maintenance has officially ended for Progress iMacros effective November 30, 2023.
This Wiki site will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely, The Progress Team
Difference between revisions of "!CLIPBOARD"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
− | === Value [[Image:IMacros-icon.png|iMacros Browser]] [[Image:Ie-icon.png|IE Plug-in]] [[Image:Ff-icon.png|Firefox]]=== | + | === Value [[Image:IMacros-icon.png|iMacros Browser]] [[Image:Ie-icon.png|IE Plug-in]] [[Image:Ff-icon.png|Firefox]] [[Image:Cr-icon.png|Chrome]]=== |
Any valid clipboard text content. | Any valid clipboard text content. | ||
Line 25: | Line 25: | ||
TAG POS=1 TYPE=TD ATTR=CLASS:bdytxt&&TXT:* EXTRACT=TXT | TAG POS=1 TYPE=TD ATTR=CLASS:bdytxt&&TXT:* EXTRACT=TXT | ||
SET !CLIPBOARD <nowiki>{{!EXTRACT}}</nowiki> | SET !CLIPBOARD <nowiki>{{!EXTRACT}}</nowiki> | ||
+ | |||
+ | === Notes === | ||
+ | |||
+ | # In Chrome [[Image:Cr-icon.png|Chrome]] referencing the !CLIPBOARD variable with <nowiki>{{!CLIPBOARD}}</nowiki> does not currently work, but SET !CLIPBOARD does. | ||
=== See Also === | === See Also === | ||
[[SET]], [[!EXTRACT]], [[PROMPT]], [[PAUSE]] | [[SET]], [[!EXTRACT]], [[PROMPT]], [[PAUSE]] |
Revision as of 13:24, 10 October 2012
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
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 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
- In Chrome referencing the !CLIPBOARD variable with {{!CLIPBOARD}} does not currently work, but SET !CLIPBOARD does.