brett Posted May 11, 2004 Share Posted May 11, 2004 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 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 More sharing options...
Administrators Jon Posted May 11, 2004 Administrators Share Posted May 11, 2004 Sleep(50) is a fraction of a second, 1000 = 1 second Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
brett Posted May 11, 2004 Author Share Posted May 11, 2004 hehe...i knew that works great now thanks -Brett 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