MattX 0 Posted January 11, 2005 This small message box script works fine, but what I want to do is bring up an Input box in which the message you want to display can be entered. Nice and basic but my questions are: What happens if the user uses a load of carrage returns, and is it possible to compile the script automatically afterwards or will that have to be done manually ? Code [ so far ] - FYI is as follows $__msgbox = MsgBox(64, 'St Johns Network Message Of The Day', _ 'Test message for the St Johns Network Message Of The Day Program.' & @CRLF & _ @CRLF & _ 'Matt - IT Tech' & @CRLF & _ @CRLF & _ 'Click on OK to close this box.') if ($__msgbox = 1) Then Exit EndIf Share this post Link to post Share on other sites
Wolvereness 0 Posted January 11, 2005 This small message box script works fine, but what I want to do is bring up an Input box in which the message you want to display can be entered.Nice and basic but my questions are:What happens if the user uses a load of carrage returns, and is it possible to compile the script automatically afterwards or will that have to be done manually ?Code [ so far ] - FYI is as follows$__msgbox = MsgBox(64, 'St Johns Network Message Of The Day', _ 'Test message for the St Johns Network Message Of The Day Program.' & @CRLF & _ @CRLF & _ 'Matt - IT Tech' & @CRLF & _ @CRLF & _ 'Click on OK to close this box.') if ($__msgbox = 1) Then Exit EndIf<{POST_SNAPBACK}>I would do a file FileWrite($path,'MsgBox(64, '"Title",' & StringReplace(InputBox(),'@CRLF', @CRLF) & ')')Run($autoitcompilerpath & ' "' & $path & '"')FileCopy Offering any help to anyone (to my capabilities of course)Want to say thanks? Click here! [quote name='Albert Einstein']Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.[/quote][quote name='Wolvereness' date='7:35PM Central, Jan 11, 2005']I'm NEVER wrong, I call it something else[/quote] Share this post Link to post Share on other sites
MattX 0 Posted January 11, 2005 I would do a file FileWrite($path,'MsgBox(64, '"Title",' & StringReplace(InputBox(),'@CRLF', @CRLF) & ')')Run($autoitcompilerpath & ' "' & $path & '"')FileCopy<{POST_SNAPBACK}>Thats an interesting way round it - I'll give it a go. Thanks. Share this post Link to post Share on other sites