Jump to content
Sign in to follow this  
autoitman1

syntax for printing 2 integers in msgbox?

Recommended Posts

autoitman1

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
autoitman1

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

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

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

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.