Jump to content

Recommended Posts

Posted

Its me again. Im still waiting for my other problem to be fixed, but I'm not so bothered about that yet.

Now this is for the splash screen:

$disclaimer = GUICtrlCreateInput("Secure_ICT does not take any responsibillity for any damage you may cause whilst using this program.", 72, 48, 529, 21, BitOR($ES_AUTOHSCROLL,$ES_READONLY))

[autoit]

All I need to know is how to add a break between each line.

E.G:

Secure_ICT does not take any responsibillity for any damage you may cause whilst using this program.

Will end up like:

Secure_ICT does not take any responsibillity for any damage you may cause whilst using this 
program.

More words more words etc etc
  • Moderators
Posted

$sText = 'Some Text' & @CRLF & 'Some Other Text' & @CRLF & 'Yet some more text'
MsgBox(64, 'Info:', $sText)

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.

Posted

Use GUICtrlCreateEdit instead, as Input is for single line only.

Use @CRLF to "break the it up" in multiple lines, as shown by SmOke_N.

And consider using continuation lines to avoid long lines in the code...

$text = "line 1" & @CRLF & _
"line 2" & @CRLF & _
"line 3"

MsgBox(64, "", $text)
  • Moderators
Posted

This method works for the splash screen I have, but not for the text box.

He told you to change the GUICtrlCreate "input" to "edit"

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.

Posted

This method works for the splash screen I have, but not for the text box.

What do you mean by text box?


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...