Jump to content

Help with sending keystrokes to hidden windows


themax90
 Share

Recommended Posts

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

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

Guest survivant

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

Check out my post...

http://www.autoitscript.com/forum/index.ph...t=ST&f=9&t=6884

When 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

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...