RunWebMacroCode

Top  Previous  Next

×V3.0Ø ((EMUE + Web))

Syntax -

RunWebMacroCode <String Value 1> ...<String Value x>

       Where:

               <StringValueX> is a literal string or a variable that contains a literal string.

 

Description:

This command runs the code specified in the string values.  Multiple variables or values are concatenated and the concatenated string is run together.  If multiple web macro lines are going to be run with the RunWebMacroCode command, each line should be separated by the &crlf to signify that there is a new line.  If the web macro code contains TAG or EXTRACT elements that access a particular frame, this frame should be set with the SetWebFrame command.  By default, the frame is zero, which is appropriate for web pages that do not contain multiple frames.

 

The recommended way to run macros from inside EMUE is to copy the macro into EMUE, then select all of the macro code and choose Convert Lines to RunWebMacroCode from the Edit menu.  By running the code one line at a time  you will have the ability to step through each line of the macro with the EMUE debugger.  After recording a macro, to access the code, go to the Edit tab in iMacros, select the macro from the list on the left and click edit.  The macro will be opened in Notepad.  If you did not save the macro, but it was the most recent one recorded, select #Current and then click Edit.

 

Note: This command will fail if a web browser has not been opened with the OpenWebBrowser command.  

 

Note: This command is a part of the Web Macro Commands, introduced in EMUE V3 and should not be mixed with Web Scripting Commands from EMUE V4.

 

Sample:

       The following statement runs the concatenated pieces of code in the open web browser window.

RunWebMacroCode "URL GoTo=http://www.databoundhealthcare.com" &crlf "TAG POS=1 TYPE=TD ATTR=TXT:<SP><SP>EMUE<SP> "