Jump to content
Sign in to follow this  
SunnBoy

WinGetTitle question

Recommended Posts

SunnBoy

Sorry wrong name lol

I saved and edited xD

How can i get a MsgBox to display a Variable and a regular text as its text part?

Edited by SunnBoy

Share this post


Link to post
Share on other sites
PsaltyDS

Maybe like this? Hard to tell what you're asking.

$sTitle = "My Message Box"
$sMsg = "My Message."
MsgBox(64, $sTitle, $sMsg)

:mellow:


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

Share this post


Link to post
Share on other sites
SunnBoy

I mean ater the $Msg some regular text.

Like $Msg, Hi my name is xxx

Share this post


Link to post
Share on other sites
somdcomputerguy

Or maybe this is what you mean

$sTitle = "My Message Box"
$sMsg = "My Message"
MsgBox(64, $sTitle, $sMsg & " is longer now..")

edit: ya, I guess it is..

Edited by somdcomputerguy

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
SunnBoy

Yeah thanks, I was looking for that :mellow:

Edit:

In the one you gave me

$sTitle = "My Message Box"
$sMsg = "My Message"
MsgBox(64, $sTitle, $sMsg & " is longer now..")

How can I make the $sMsg be in those brackets []?

I mean just the text the message displays?

Edited by SunnBoy

Share this post


Link to post
Share on other sites
PsaltyDS

Those brackets? What brackets?

Maybe just append them with the same '&' operator:

MsgBox(64, $sTitle, "[" & $sMsg & " is longer now..]")

:mellow:


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

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.