Sign in to follow this  
Followers 0
SunnBoy

WinGetTitle question

7 posts in this topic

#1 ·  Posted (edited)

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



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

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

#4 ·  Posted (edited)

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

#5 ·  Posted (edited)

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

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  
Followers 0