Jump to content

Winwait Commandline Help


Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...