Jump to content

Code Doesn't Sleep


Recommended Posts

Umm, i'm having a problem with this section of code, its supposed to open my FTP, wait ten seconds, cut all of the files in the FTP, open the folder AutoITFTP, then paste everything in there. but, it is just skipping over all of the Sleep commands :D so, it doesn't work. am i using the wrong syntax for the sleep commands?

thanks

brett

$FTPPath = "C:\AutoITFTP\"

   Run('C:\Program Files\Internet Explorer\IEXPLORE.EXE "ftp://brett89:xxxxx@thor.prohosting.com"')
   Sleep ( 1000 )


   WinActivate("ftp://thor.prohosting.com/ - Microsoft Internet Explorer", "")
   Sleep ( 50 )
   Send ( "^a" )
   Send ( "^x" )
   Sleep ( 50 )
   Run("explorer " & $FTPPath )
   Sleep(50)
   WinActivate("AutoITFTP", "")
   Sleep ( 50 )
   Send ( "^v" )
   Sleep ( 50 )

   WinClose("ftp://thor.prohosting.com/ - Microsoft Internet Explorer", "")
   WinClose("AutoITFTP", "")
-Brett
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...