Jump to content

MsgBox()


Recommended Posts

How would I make a list in a MsgBox()?

etc:

//////////////////////////////////////////
|     MsgBoxTitle                            
|                                                  
|             1. blah                           
|             2. blah                           
|             3. blah                           
|     _____             ________         
|    |  OK  |           | CANCEL |        
//////////////////////////////////////////
Edited by Aces

~~ AutoIt v3 Minion ~~Name: Kevin "Aces-X" MorrisOrganization: A C DevelopmentE-Mail: AcesX91@acecoding.netOS: XP Professional; Vista package~~ Released Software ~~CPU-Mach: Topic at acecoding.net ForumsProxyzBuddy: Beta testing at the moment, private onlyWHSTool: Not released to the public

Link to comment
Share on other sites

msgbox(0,"Title","line1"&@crlf&"line2 ect")

Actually, to get the CANCEL button included, it would be:

msgbox(0 + 1, "MessageBoxTitle", "1. blah" & @crlf & "2. blah" & @crlf & "3. blah")

:whistle:

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Hi,

Just a question. How do you capture the return value if you press OK or Cancel button on the messagebox?

To use the return value immediately:

While 1
    If MsgBox(32 + 4, "Continue?", "Click YES to continue or NO to exit...") = 6 Then
        MsgBox(64, "YES!", "Yes!  You clicked YES!  Thank you!")
    Else
        MsgBox(16, "No.", "Just had to click no, huh?")
        ExitLoop
    EndIf
WEndoÝ÷ Ù:,j÷­ëÚç×!yÉ"¶V­z¸î²Ûµ«Ú®&殶­sbb33c´ç7vW"Ò×6t&÷3"³BÂgV÷CµVW7FöâgV÷C²ÂgV÷CµW2÷"æóògV÷C²

:whistle:

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

To use the return value immediately:

While 1
    If MsgBox(32 + 4, "Continue?", "Click YES to continue or NO to exit...") = 6 Then
        MsgBox(64, "YES!", "Yes!  You clicked YES!  Thank you!")
    Else
        MsgBox(16, "No.", "Just had to click no, huh?")
        ExitLoop
    EndIf
WEndoÝ÷ Ù:,j÷­ëÚç×!yÉ"¶V­z¸î²Ûµ«Ú®&殶­sbb33c´ç7vW"Ò×6t&÷3"³BÂgV÷CµVW7FöâgV÷C²ÂgV÷CµW2÷"æóògV÷C²

:whistle:

Thank you very much. It works now. :lmao:
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...