Aassdd Posted February 20, 2008 Share Posted February 20, 2008 Here is my script: $input = InputBox("asd", "website:", "", "", Default, 125) If $input = ("google") Then ShellExecute("http://www.google.com/") If $input = ("yahoo") Then ShellExecute("http://www.yahoo.com/") If $input = ("autoit") Then ShellExecute("http://www.autoitscript.com/") (it doesn't execute only once, it's a hotkey - so the input remains in the memory) Is it possible to show the last input as the "default" parameter in the input box? Link to comment Share on other sites More sharing options...
weaponx Posted February 20, 2008 Share Posted February 20, 2008 (edited) Thats easy. Dim $lastInput = "" $input = InputBox("asd", "website:",$lastInput, "", Default, 125) $lastInput = $input If $input = ("google") Then ShellExecute("http://www.google.com/") If $input = ("yahoo") Then ShellExecute("http://www.yahoo.com/") If $input = ("autoit") Then ShellExecute("http://www.autoitscript.com/") Edited February 20, 2008 by weaponx Link to comment Share on other sites More sharing options...
Aassdd Posted February 20, 2008 Author Share Posted February 20, 2008 Lol, I was trying the same thing but without using "Dim", I never understand what is used for. Only in vb with the calc example (Dim var as Integer) lol. 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