tiger223 Posted April 1, 2004 Posted April 1, 2004 if $CmdLine[0] > 0 then Run("D:\uptime.exe ip:" & $CmdLine[1] & " /cmd", "", @SW_SHOW) WinWait("Test - '& $CmdLine[1] &'") sleep(2900) ControlSend("Test - '& $CmdLine[1] &'","","","-n{enter}") endif The window which is activated is Test - userinput For some reason I can't get it to work. Any ideas? Thanks.
scriptkitty Posted April 1, 2004 Posted April 1, 2004 You used single and double quotes, use the same to start and end. if $CmdLine[0] > 0 then Run("D:\uptime.exe ip:" & $CmdLine[1] & " /cmd", "", @SW_SHOW) WinWait("Test - " & $CmdLine[1]) sleep(2900) ControlSend("Test - "& $CmdLine[1],"","","-n{enter}") endif 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