tiger223 Posted April 1, 2004 Share 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. Link to comment Share on other sites More sharing options...
tiger223 Posted April 1, 2004 Author Share Posted April 1, 2004 Is Control Send Right? Link to comment Share on other sites More sharing options...
tiger223 Posted April 1, 2004 Author Share Posted April 1, 2004 Thank You Very Much. Larry. Link to comment Share on other sites More sharing options...
scriptkitty Posted April 1, 2004 Share 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. 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