Jump to content

Recommended Posts

Posted

How do i get multiple lines in a messagebox?

#Include <date.au3>
$starttime = _DateTimeFormat( _NowCalc(),0)
$Number = 6
Sleep(3000)
MsgBox(0, "testing time and breakrow", 'Starttime:' & $starttime & <br> & 'Display number:' & $Number & <br> & 'EndTime:' & _DateTimeFormat( _NowCalc(),0))

What im trying to do here is set the starttime to $starttime and when the messagebox appears show starttime on one row, display a text and number on the second, and display for the messagebox actual time on the third row.

Any ideas?

//Bill

Posted

MsgBox(0, "testing time and breakrow", 'Starttime:' & $starttime & @CR & 'Display number:' & $Number & @CR & 'EndTime:' & _DateTimeFormat( _NowCalc(),0))

Who needs puzzles when we have AutoIt!!

Posted

Thanks! What does @CRLF mean and do?

Have a look at the helpfile , its all in there.

Who needs puzzles when we have AutoIt!!

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
×
×
  • Create New...