Jump to content
Macro Express Forums

jso

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by jso

  1. On 10/25/2019 at 1:16 PM, acantor said:

    During the early 2000s, Microsoft introduced a way to copy information from a message box to the clipboard.  For this method to work, the message box must have focus. But nothing needs to be selected.

     

    In many (although not all) message boxes, pressing Ctrl + C copies its content to the clipboard as plain text. So the script might look like this.

     

    
    Text Type (Simulate Keystrokes): <CONTROL>c
    Variable Set String %x% from the clipboard contents
    If Variable %x% Contains "Hello"
      MessageBox: Result True
    Else
      MessageBox: Result False
    End If
    
    <TEXT TYPE Action="0" Text="<CONTROL>c"/>
    <VARIABLE SET STRING Option="\x02" Destination="%x%" NoEmbeddedVars="FALSE"/>
    <IF VARIABLE Variable="%x%" Condition="\x06" Value="Hello" IgnoreCase="FALSE"/>
    <MESSAGEBOX Caption="Result True" Message="Contains \"Hello\"" Icon="0"/>
    <ELSE/>
    <MESSAGEBOX Caption="Result False" Message="Does not contain \"Hello\"" Icon="0"/>
    <END IF/>
    	

     

     

    My message takes several lines. How I can add 'RETURN' to %x%.Value?   Can I use LIKE to specify only part of the message?

     

  2. I created macro that closing the claims. 10 % of all claims can't be closed because some additional steps have to be completed prior to closing. Pop up box let me know what has to be done for these 10% of all claims. How i can capture this situation? Planning to use MEP logic for the resolution. But I need to know how to capture the popup box and the message.

×
×
  • Create New...