Jump to content

How to send something to a dos box?


Recommended Posts

I do this with a hidden Apache webserver window using an autoit tray icon. WinActivate works to gain focus to SendKeys to even when the window is hidden.

Run('"C:\Apache\Apache2\bin\Apache.exe" -w -f "C:\Apache\Apache2\conf\httpd.conf" -d "C:\Apache\Apache2\."', "C:\Apache\Apache2\", @SW_HIDE)

Func _killit()
   WinActivate("APACHE")
   Sleep(500)
   Send ("^c")
EndFunc
Link to comment
Share on other sites

Hi,

i wan't to send CTRL+C and "N" to a DOS Box. How is this easy possible. Btw. the DOS Box is @SW_Hide.

Regards,

CoDeX2k

nope, allready tryed won't work!

Tryed out. Worked but only on the cmd i wan't to shutdown a batch. With CTRL+C i tried with ^c and {CTRLDOWN}c{CTRLUP} both won't work.

any other idea?

Ya... PCP

Instead of making people randomly stab in the dark in hopes that they'll say what you want, try actually telling people what you've tryed, and what didn't work.

You'll get alot more help if you do.

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