Sign in to follow this  
Followers 0
themax90

Help with sending keystrokes to hidden windows

7 posts in this topic

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?

Share this post


Link to post
Share on other sites

i don't think that's possible ...

Share this post


Link to post
Share on other sites

haha pcdestroyer, you play counter-strike too (i do :idiot:)

ok, sry, back to agent smith's post:

um... hmmm.... im not to sure, anyone else?


FootbaG

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Thanks Lord Mephy, your the first person to actually help.

Agent Smith

Edit:Fixed typo

Edited by Agent Smith

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
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.

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