Aces Posted June 11, 2007 Share Posted June 11, 2007 Func runmenu() $input = InputBox("Run...", "Please type the path you would like to run.") Run($input)EndFuncIf I don't put anything in, it gives me an error message after I press OK.I want to modify my code so that if I do not enter anything into the InputBox, no error message comes up. ~~ AutoIt v3 Minion ~~Name: Kevin "Aces-X" MorrisOrganization: A C DevelopmentE-Mail: AcesX91@acecoding.netOS: XP Professional; Vista package~~ Released Software ~~CPU-Mach: Topic at acecoding.net ForumsProxyzBuddy: Beta testing at the moment, private onlyWHSTool: Not released to the public Link to comment Share on other sites More sharing options...
poisonkiller Posted June 11, 2007 Share Posted June 11, 2007 Func runmenu() $input = InputBox("Run...", "Please type the path you would like to run.") If not @error or $input <> "" Then Run($input) EndIf EndFunc 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