Sign in to follow this  
Followers 0
brett

Code Doesn't Sleep

3 posts in this topic

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

Share this post


Link to post
Share on other sites



hehe...i knew that :D

works great now thanks


-Brett

Share this post


Link to post
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
Sign in to follow this  
Followers 0