autoitman1 Posted July 2, 2011 Share 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 Link to comment Share on other sites More sharing options...
JohnOne Posted July 2, 2011 Share 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. Link to comment Share on other sites More sharing options...
monoscout999 Posted July 2, 2011 Share 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") Link to comment Share on other sites More sharing options...
autoitman1 Posted July 2, 2011 Author Share 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 Link to comment Share on other sites More sharing options...
monoscout999 Posted July 2, 2011 Share 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) Link to comment Share on other sites More sharing options...
autoitman1 Posted July 2, 2011 Author Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now