Using the prompt command for informational pop-ups without user input

Hello,

right now the prompt command is the only way to trigger a pop-up.
In my use case, I want to deploy a pop-up which is not asking for user input, it should only show the text I insert under the target-parameter and provide the buttons. This way the information appears automatically, and upon button confirmation the macro continues.

Also it would be a nice option to stop the macro if clicking on the cancel button.

Are there possiblities to include one of these two options into a macro?
Thanks in advance!

1 Like

(1) Stop macro when cancel is pressed => Check if the variable returned by PROMPT is NULL and then stop the macro with ThrowError.

{
  "Name": "Stops on CANCEL",
  "CreationDate": "2019-4-26",
  "Commands": [
    {
      "Command": "prompt",
      "Target": "Hello this is just a text@1",
      "Value": "var1"
    },
    {
      "Command": "echo",
      "Target": "${var1}",
      "Value": ""
    },
    {
      "Command": "if",
      "Target": "\"${var1}\" != \"1\"",
      "Value": ""
    },
    {
      "Command": "throwError",
      "Target": "You pressed CANCEL",
      "Value": ""
    },
    {
      "Command": "endif",
      "Target": "",
      "Value": ""
    }
  ]
}
1 Like

For showing just a popup, see echo | hi!!! | #shownotification

1 Like