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 "!EXTRACT"
(→Value) |
|||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
Contains the extraction results. | Contains the extraction results. | ||
− | If in one macro several EXTRACT commands appear then the results are separated by the string [EXTRACT]. This tag is automatically translated into | + | If in one macro several EXTRACT commands appear then the results are separated by the string [EXTRACT]. This tag is automatically translated into comma when using the SAVEAS TYPE=EXTRACT command. |
If complete tables were extracted then adjacent table elements are separated by the string #NEXT# and ends of table rows are delimited by the string #NEWLINE#. These tags are automatically translated into commas and newlines when you use the SAVEAS TYPE=EXTRACT command. | If complete tables were extracted then adjacent table elements are separated by the string #NEXT# and ends of table rows are delimited by the string #NEWLINE#. These tags are automatically translated into commas and newlines when you use the SAVEAS TYPE=EXTRACT command. | ||
− | === 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]]=== |
Extraction result or #EANF# (Extraction Anchor Not Found). | Extraction result or #EANF# (Extraction Anchor Not Found). | ||
+ | |||
+ | === Set By === | ||
+ | [X] Internal | ||
+ | |||
+ | [X] [[SET]], [[ADD]] | ||
+ | |||
+ | '''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 === | ||
Fill in the value of !EXTRACT into a form field: | Fill in the value of !EXTRACT into a form field: | ||
TAG .... CONTENT=<nowiki>{{!EXTRACT}} </nowiki> | TAG .... CONTENT=<nowiki>{{!EXTRACT}} </nowiki> | ||
+ | Copy the extracted data to the clipboard: | ||
+ | SET !CLIPBOARD <nowiki>{{!EXTRACT}}</nowiki> | ||
Reset content of EXTRACT: | Reset content of EXTRACT: | ||
SET !EXTRACT NULL | SET !EXTRACT NULL | ||
Line 20: | Line 29: | ||
=== See Also === | === See Also === | ||
− | [[ADD]], [[Data_Extraction| Web Scraping & Data Extraction]], [[Data_Extraction#Extraction_of_Dialog_Text|Extract text from dialogs]] | + | [[TAG#The_EXTRACT_Parameter|TAG...EXTRACT]], [[ADD]], [[Data_Extraction|Web Scraping & Data Extraction]], [[Data_Extraction#Extraction_of_Dialog_Text|Extract text from dialogs]], [[Demo-Stopwatch]], [[Demo-Extract]] |
Revision as of 13:17, 27 January 2017
Contains the extraction results.
If in one macro several EXTRACT commands appear then the results are separated by the string [EXTRACT]. This tag is automatically translated into comma when using the SAVEAS TYPE=EXTRACT command.
If complete tables were extracted then adjacent table elements are separated by the string #NEXT# and ends of table rows are delimited by the string #NEWLINE#. These tags are automatically translated into commas and newlines when you use the SAVEAS TYPE=EXTRACT command.
Value
Extraction result or #EANF# (Extraction Anchor Not Found).
Set By
[X] Internal
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
Fill in the value of !EXTRACT into a form field:
TAG .... CONTENT={{!EXTRACT}}
Copy the extracted data to the clipboard:
SET !CLIPBOARD {{!EXTRACT}}
Reset content of EXTRACT:
SET !EXTRACT NULL
Add the value of the first CSV column to the extracted result:
ADD !EXTRACT {{!COL1}}
See Also
TAG...EXTRACT, ADD, Web Scraping & Data Extraction, Extract text from dialogs, Demo-Stopwatch, Demo-Extract