Sign in to follow this  
Followers 0
AceJosh

Display Multiple Line in MSGBOX

14 posts in this topic

Does anyeone have tips on how to display Mulitple lines in MsgBox?

I have stored like 10 Values in variable and would like to restore taht value to show in a Msgbox, but in one dialog box.

THanks fro your help in advance.

AceJosh

Share this post


Link to post
Share on other sites



Using @CRLF :

Msgbox(0,"","This is a test" & @CRLF & "using multiple lines in a msg box")

Kurt


Awaiting Diablo III..

Share this post


Link to post
Share on other sites

Thanks for the reply

This is my script

Msgbox(1,"M Factor","Seat-1 M Factor :" & @CRLF & $answer1 & @CRLF & "Seat-2 M Factor :" & @CRLF & $answer2)

how do get it Seat-1 M Factor : and answer1 in one line

Share this post


Link to post
Share on other sites

never mind i figured it out it is @tab

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Thanks for the reply

This is my script

Msgbox(1,"M Factor","Seat-1 M Factor :" & @CRLF & $answer1 & @CRLF & "Seat-2 M Factor :" & @CRLF & $answer2)

how do get it Seat-1 M Factor : and answer1 in one line

Hmm, you're not understanding the concept of @CRLF. @CRLF is like saying "make new line", so in your case you do not want your @CRLF's between your $var's. So try this:

Msgbox(1,"M Factor","Seat-1 M Factor : " & $answer1 & @CRLF & "Seat-2 M Factor : " & $answer2)

Kurt

EDIT: Minor correction

Edited by _Kurt

Awaiting Diablo III..

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

how do get it Seat-1 M Factor : and answer1 in one line

If you want it on one line why do you put a CRLF between them ?

Msgbox(1,"M Factor","Seat-1 M Factor :" & $answer1 & @CRLF & "Seat-2 M Factor :" & $answer2)

EDIT : zhaij...doh.

Edited by Helge

Share this post


Link to post
Share on other sites

Thanks again Guys

That worked..But I ahve another quesitons if I want to extract some text values from another GUI how do i extract it..any example will work from me.

Thanks again

Share this post


Link to post
Share on other sites

ControlGetText?

WinGetText?

Not sure on this one :)

Kurt


Awaiting Diablo III..

Share this post


Link to post
Share on other sites

When i do the wingettext...I get doubles of all the data..any idea why

Share this post


Link to post
Share on other sites

what do you get with conrolGetText?


The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center]

Share this post


Link to post
Share on other sites

I don't get anything with controlgettext just blank. Any idea why wingettext is double ppl. Any help is appericiated

THanks

Share this post


Link to post
Share on other sites

Well can you read some of the text with the Autoit Info Tool ??


Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Share this post


Link to post
Share on other sites

When I use the Wingettext, I use it to copy to a variable User1... When I reterive it, the information comes out as double Ex: AceJoshAceJosh.

I can't figure out why.

Any advice to this problem is appricated

Share this post


Link to post
Share on other sites

When I use the Wingettext, I use it to copy to a variable User1... When I reterive it, the information comes out as double Ex: AceJoshAceJosh.

I can't figure out why.

Any advice to this problem is appricated

Reading your previous "Topics" and such, I'm sure we all know what application(s) you are trying to use it on. But in the future, posting such application(s) may get you a quicker response on how to fix your issue(s)... In other words, provide a working example with the application to test on that duplicates the issue you are having.

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

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