Nanascalala Posted April 3, 2004 Posted April 3, 2004 I can't remeber what the keys were to add a new line to a msgbox. I need to give the user an input box with somethin that look slike this:QuestionWhich spot do you want to save to? (Type the spot number)1) &var12) &var23) &var34) &var45) &var5-[iNPUT BOX]-PLZ HELP!! Thx.!-nanascalala
jpm Posted April 3, 2004 Posted April 3, 2004 $msg="Which spot do you want to save to? (Type the spot number)" $msg= $msg & @LF & "1) &var1" $msg= $msg & @LF & "2) &var2" $msg= $msg & @LF & "3) &var3" $msg= $msg & @LF & "4) &var4" $msg= $msg & @LF & "5) &var5" InputBox("title", $msg ) Here is
scriptkitty Posted April 3, 2004 Posted April 3, 2004 (edited) make sure to give Imputbox a variable though. ya code to fast at times. $msg="Which spot do you want to save to? (Type the spot number)" $msg= $msg & @LF & "1) &var1" $msg= $msg & @LF & "2) &var2" $msg= $msg & @LF & "3) &var3" $msg= $msg & @LF & "4) &var4" $msg= $msg & @LF & "5) &var5" while 1 $var=InputBox("title", $msg ) if int($var)>0 and int($var)<6 then exitloop wend or try this out: $msg="Which spot do you want to save to? "& @crlf &"(Type the spot number)" $msgs=Stringsplit("bob,joe,fred,sam,jimbo",",") for $i=1 to $msgs[0] $msg= $msg & @LF & $i & ") "& $msgs[$i] next while 1 $var=InputBox("title", $msg ) if int($var)>0 and int($var)<$msgs[0]+1 then exitloop wend msgbox(1,"Your pick was",$msgs[int($var)]) Edited April 3, 2004 by scriptkitty AutoIt3, the MACGYVER Pocket Knife for computers.
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