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
(→Notes) |
|||
(16 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
− | Copy data from and to the clipboard. | + | 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 [[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. | ||
=== Set By === | === Set By === | ||
− | [ ] Internal | + | [X] Internal ('''from''' clipboard) |
− | [X] [[SET]] | + | [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. | '''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 === | + | === Examples === |
+ | Copy data '''from the clipboard''' to a website: | ||
+ | URL GOTO=http://demo.imacros.net/Automate/TestForm1 | ||
+ | TAG POS=1 TYPE=TEXTAREA ATTR=NAME:Remarks CONTENT=Clipboard<SP>content<SP>=<SP><nowiki>{{!CLIPBOARD}}</nowiki> | ||
+ | |||
+ | |||
+ | Copy data extracted from a website '''into the clipboard''': | ||
+ | URL GOTO=http://demo.imacros.net/Automate/Extract2 | ||
+ | TAG POS=1 TYPE=TD ATTR=CLASS:bdytxt&&TXT:* EXTRACT=TXT | ||
+ | SET !CLIPBOARD <nowiki>{{!EXTRACT}}</nowiki> | ||
=== See Also === | === See Also === | ||
+ | |||
+ | [[SET]], [[!EXTRACT]], [[PROMPT]], [[PAUSE]] |
Revision as of 19:23, 14 January 2019
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://demo.imacros.net/Automate/TestForm1 TAG POS=1 TYPE=TEXTAREA ATTR=NAME:Remarks CONTENT=Clipboard<SP>content<SP>=<SP>{{!CLIPBOARD}}
Copy data extracted from a website into the clipboard:
URL GOTO=http://demo.imacros.net/Automate/Extract2 TAG POS=1 TYPE=TD ATTR=CLASS:bdytxt&&TXT:* EXTRACT=TXT SET !CLIPBOARD {{!EXTRACT}}