Skip to Content

How to fetch Messagebox Message

Hi there

is there a way to get the Text inside the messagebox (Message)

I dont mean the heading Text ...

If session.findbyId("wnd[1]").Text Like "*"

End if

It's because we have special Transactions where the Heading says "Information" in 3 different meanings (I hate the Programmer gr thats why I have to get the Message ...

Thanks for your response

Edited by: Thomas Br on Feb 1, 2011 7:41 PM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Feb 21, 2011 at 11:37 AM

    Hi Thomas,

    by using vbs try this:

    Row1 = Trim(session.findById("wnd[1]/usr/txtMESSTXT1").text)

    Row2 = Trim(session.findById("wnd[1]/usr/txtMESSTXT2").text)

    Grettings,

    Netkid

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 02, 2011 at 12:34 PM

    Hi Thomas,

    If GuiXT is active, the following script could bring a solution.

    For example: sapmsdyp.d0010.txt:

    if V[_title=Information] 
       set V[MESSTXT1]      "&F[MESSTXT1]"
       set V[MESSTXT2]      "&F[MESSTXT2]"
       if V[MESSTXT1=XYZ]
          // do something
       endif
       if V[MESSTXT2=abc]
          // do something
      endif
    endif
    

    However, I suspect that the command "set" requires a non-free option "InputAssistant".

    Regards,

    ScriptMan

    Edited by: ScriptMan on Feb 2, 2011 1:40 PM

    Add comment
    10|10000 characters needed characters exceeded