themax90 Posted December 21, 2004 Share Posted December 21, 2004 Ok guys this is a toughy because I couldn't figure it out and I SCOURED the help file. I need to hide a cmd window titled "C:\WINDOWS\System32\ftp.exe" and send the following keystrokes to it Anonymous{enter} (pass){enter} cd /MServ/{enter} put(and get) (certain.ini files){enter} bye{enter} Like can I do a WinSetState("C:\WINDOWS\System32\ftp.exe", "", @SW_HIDE) and still send info to it? Link to comment Share on other sites More sharing options...
pcdestroyer Posted December 21, 2004 Share Posted December 21, 2004 i don't think that's possible ... Link to comment Share on other sites More sharing options...
layer Posted December 21, 2004 Share Posted December 21, 2004 haha pcdestroyer, you play counter-strike too (i do ) ok, sry, back to agent smith's post: um... hmmm.... im not to sure, anyone else? FootbaG Link to comment Share on other sites More sharing options...
the_lord_mephy Posted December 21, 2004 Share Posted December 21, 2004 ControlSend("C:\WINDOWS\System32\ftp.exe", "", "", "Anonymus{enter}") etc. My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Link to comment Share on other sites More sharing options...
themax90 Posted December 22, 2004 Author Share Posted December 22, 2004 (edited) Thanks Lord Mephy, your the first person to actually help. Agent Smith Edit:Fixed typo Edited December 22, 2004 by Agent Smith Link to comment Share on other sites More sharing options...
Guest survivant Posted December 22, 2004 Share Posted December 22, 2004 Cool your doing the same thing that I do. Did you ware able to download with the ftp ? I didn't be able to pass text to ftp using the ControlSend function If you have a solution can you write to me : sebastien.dionne@expertus.ca thanks that's my actual script Run("ftp.exe") WinWaitActive("C:\WINDOWS\system32\ftp.exe") Send("open 10.10.10.10{ENTER}") Sleep(100) Send("test{ENTER}") Sleep(100) Send("test{ENTER}") Sleep(100) Send("cd /test{ENTER}") Sleep(100) Send("get test.txt{ENTER}") Sleep(100) Link to comment Share on other sites More sharing options...
themax90 Posted December 22, 2004 Author Share Posted December 22, 2004 Check out my post...http://www.autoitscript.com/forum/index.ph...t=ST&f=9&t=6884When you Run a program with @SW_HIDE it's not actualy there for about 0.01 seconds. Control send will only SEND to a valid window. So put your ftp.exe in your script dir and have every Window command do @scriptdir & "\ftp.exe" and it works. Check the post I made functions and all that. Click on my signature, My autoit stuff, follow the functions link and hit ftp stuff. 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