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 "ONDIALOG"
Jump to navigation
Jump to search
(7 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | Handles upcoming | + | Handles upcoming Javascript dialogs. You can extract the text of a dialog by adding "SET !EXTRACTDIALOG YES" to your macro. |
− | + | Note that ONDIALOG defines how to handle a possible dialog. It does ''not'' make the macro wait for a dialog to appear. | |
− | === Syntax === | + | === Syntax [[Image:IMacros-icon.png|iMacros Browser]] [[Image:Ie-icon.png|IE Plug-in]] [[Image:Ff-icon.png|Firefox]]=== |
− | ONDIALOG POS=n BUTTON=(YES|NO|CANCEL) [CONTENT=some_content] | + | ONDIALOG POS=n BUTTON=(OK|YES|NO|CANCEL) [CONTENT=some_content] |
=== Parameters === | === Parameters === | ||
*POS | *POS | ||
− | *:The position of the dialog. On some web pages a few dialogs occur directly after each other. In this case you can specify a | + | *:The position of the dialog. On some web pages a few dialogs occur directly after each other. In this case you can specify a decision for each dialog (POS=1 is first dialog, POS=2 is second dialog.) The POS statement applies only to dialogs that show directly after each other. This means that several ONDIALOG commands with different POS values must occur before another macro command is executed. |
*BUTTON | *BUTTON | ||
*:Specifies which of the available buttons is pressed. | *:Specifies which of the available buttons is pressed. | ||
Line 16: | Line 16: | ||
*:The content attribute is used to fill out input forms prompted by JavaScript. (Replace blank spaces by <SP>, like in "Hello<SP>world") | *:The content attribute is used to fill out input forms prompted by JavaScript. (Replace blank spaces by <SP>, like in "Hello<SP>world") | ||
− | [[Image:Extract-dialog-text2.png]] | + | [[Image:Extract-dialog-text2.png|thumb|300px|iMacros automating the Javascript Prompt Dialog]] |
+ | |||
=== Examples === | === Examples === | ||
− | Example macro: Demo- | + | Example macro: [[Demo-JavascriptDialog]] |
=== See Also === | === See Also === | ||
[[!EXTRACTDIALOG]], [[ONCERTIFICATEDIALOG]], [[ONDOWNLOAD]], [[ONERRORDIALOG]], [[ONLOGIN]], [[ONSECURITYDIALOG]], [[ONWEBPAGEDIALOG]] | [[!EXTRACTDIALOG]], [[ONCERTIFICATEDIALOG]], [[ONDOWNLOAD]], [[ONERRORDIALOG]], [[ONLOGIN]], [[ONSECURITYDIALOG]], [[ONWEBPAGEDIALOG]] |
Revision as of 20:09, 19 October 2017
Handles upcoming Javascript dialogs. You can extract the text of a dialog by adding "SET !EXTRACTDIALOG YES" to your macro.
Note that ONDIALOG defines how to handle a possible dialog. It does not make the macro wait for a dialog to appear.
Syntax
ONDIALOG POS=n BUTTON=(OK|YES|NO|CANCEL) [CONTENT=some_content]
Parameters
- POS
- The position of the dialog. On some web pages a few dialogs occur directly after each other. In this case you can specify a decision for each dialog (POS=1 is first dialog, POS=2 is second dialog.) The POS statement applies only to dialogs that show directly after each other. This means that several ONDIALOG commands with different POS values must occur before another macro command is executed.
- BUTTON
- Specifies which of the available buttons is pressed.
- CONTENT
- The content attribute is used to fill out input forms prompted by JavaScript. (Replace blank spaces by <SP>, like in "Hello<SP>world")
Examples
Example macro: Demo-JavascriptDialog
See Also
!EXTRACTDIALOG, ONCERTIFICATEDIALOG, ONDOWNLOAD, ONERRORDIALOG, ONLOGIN, ONSECURITYDIALOG, ONWEBPAGEDIALOG