SunnBoy Posted May 27, 2010 Posted May 27, 2010 (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 May 27, 2010 by SunnBoy
PsaltyDS Posted May 27, 2010 Posted May 27, 2010 Maybe like this? Hard to tell what you're asking. $sTitle = "My Message Box" $sMsg = "My Message." MsgBox(64, $sTitle, $sMsg) 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
SunnBoy Posted May 27, 2010 Author Posted May 27, 2010 I mean ater the $Msg some regular text. Like $Msg, Hi my name is xxx
somdcomputerguy Posted May 27, 2010 Posted May 27, 2010 (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 May 27, 2010 by somdcomputerguy - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
SunnBoy Posted May 27, 2010 Author Posted May 27, 2010 (edited) Yeah thanks, I was looking for that 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 May 27, 2010 by SunnBoy
PsaltyDS Posted May 27, 2010 Posted May 27, 2010 Those brackets? What brackets? Maybe just append them with the same '&' operator: MsgBox(64, $sTitle, "[" & $sMsg & " is longer now..]") 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
l3ill Posted May 27, 2010 Posted May 27, 2010 $sTitle = "My Message Box" $sMsg = "My Message" MsgBox(64, $sTitle, "[" & $sMsg & "]" & " is longer now..") My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example
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