Infinitex0 Posted January 14, 2006 Posted January 14, 2006 (edited) Is it possible to have multiple answers to a input box example: Q:what does 2+2=. A:4 OR A:6-2 Edited January 14, 2006 by Infinitex0 The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center]
w0uter Posted January 14, 2006 Posted January 14, 2006 if the standard messagebox doesnt cut it make your own gui. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
Moderators SmOke_N Posted January 14, 2006 Moderators Posted January 14, 2006 Something like this? Dim $Question[3] $Question[1] = InputBox("Question One", "What does 4+4 = ?" & @CRLF & @TAB & "A: 8" & @CRLF & @TAB & " Or" & @CRLF & @TAB & "B: 9 - 2" _ & @CRLF & @CRLF & "Type the letter of the answer in the box.") $Question[2] = InputBox("Question One", "What does 4+3 = ?" & @CRLF & @TAB & "A: 8" & @CRLF & @TAB & " Or" & @CRLF & @TAB & "B: 9 - 2" _ & @CRLF & @CRLF & "Type the letter of the answer in the box.") Dim $Answers[3] $Answers[1] = 'A' $Answers[2] = 'B' Local $Check_Answers = 0 For $i = 1 To UBound($Question) - 1 If StringInStr($Question[$i], $Answers[$i]) Then $Check_Answers = $Check_Answers + 1 Next Local $Percentage = ($Check_Answers) / (UBound($Question) - 1) * (100) MsgBox(48, 'Results', 'You scored a ' & $Percentage & '% on this test!') 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.
Infinitex0 Posted January 15, 2006 Author Posted January 15, 2006 Thanks The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center]
Moderators SmOke_N Posted January 15, 2006 Moderators Posted January 15, 2006 ThanksErr... Good Deal... I don't even remember responding to this thread.. but glad it helped! 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.
Infinitex0 Posted April 10, 2006 Author Posted April 10, 2006 LOL I was looking through my topics and D@/\/\N I didn't know crap. {sigh} good times. The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center]
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