autoitman1 0 Posted July 2, 2011 i have two variables $x and $y, how do i print them both in one msgbox? i tried msgbox(0,"", $x + " " + $y) already...but that didn't work (lol that is how you have to do it in java) thank you Share this post Link to post Share on other sites
JohnOne 1,603 Posted July 2, 2011 Replace + with & AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Share this post Link to post Share on other sites
monoscout999 10 Posted July 2, 2011 This. msgbox(0,"", $x & " " & $y) Languaje Reference - Operators Look at the link & Concatenates/joins two strings. e.g. "one" & 10 (equals "one10") Share this post Link to post Share on other sites
autoitman1 0 Posted July 2, 2011 o cool, thanks! Also, do you know to make a new line in msgbox? so instead of x y i can get x y ? thank you Share this post Link to post Share on other sites
monoscout999 10 Posted July 2, 2011 o cool, thanks! Also, do you know to make a new line in msgbox? so instead of x y i can get x y ? thank you yes, read about macros from here ----> Macros msgbox(0,"", $x & @CRLF & $y) Share this post Link to post Share on other sites
autoitman1 0 Posted July 2, 2011 ah, ok thank you i guess i didn't think the syntax would fall under macro...i was searching for "new line" under teh help search lol Share this post Link to post Share on other sites