MattX Posted January 11, 2005 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
Wolvereness Posted January 11, 2005 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]
MattX Posted January 11, 2005 Author 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.
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