Home AMX User Forum NetLinx Studio

MessageBox

Sorry about this question

Can I write amessage inside the code when i press the button on the touch panel this message appear for me

with best regards for all

Comments

  • Jimweir192Jimweir192 Posts: 502
    you can...

    on the button_event use

    SEND_COMMAND dvTP, "'@PPN-POPUPNAME;PAGENAME'"

    where POPUPNAME is the name of your new popup page message box
    PAGENAME is the current base page.

    If you need to send a text message use

    SEND_COMMAND dvTP,"'^TXT-x,1,TEXTHERE'"

    where x is your address channel on the TP item in question

    You can find all these commands in the Programming sections of the TP manuals or on AMX PI
  • SensivaSensiva Posts: 211
    Jimweir192 is right!!

    As Jimweir192 said, but with more clarification

    First you have to create a popup page containing your message and name it "Warning" for example, and assign an address port and code to the message box

    Assuming you have MVP panel:
    To show this popup:
    SEND_COMMAND Panel,"'@PPN-<popup page name>;<page name>'"
    
    Leaving <page name> empty will show this popup on the current page whatever it is, Like this:
    SEND_COMMAND Panel,"'@PPN-<popup page name>'"
    


    To change the message text:
    Send_Command Panel,"'^TXT-<variable text address range>,<button states range>,<new text>'"
    
    <variable text address range> : is the Address Code you specified for the message field.
    <button states range>: to which state send this text
    1 OFF
    2 ON
    0 ALL

    NOTE : If you have a different panel type these commands may differ, so please refer to AMX PI or The Instructions Manual
    Regards
Sign In or Register to comment.