Sign in to follow this  
Followers 0
CoDeX2k

How to send something to a dos box?

7 posts in this topic

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

Share this post


Link to post
Share on other sites



_RunDos()


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

nope, allready tryed won't work!

Share this post


Link to post
Share on other sites

ControlSend()?


[left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]

Share this post


Link to post
Share on other sites

ControlSend()?

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?

Regards,

CoDeX2k

Share this post


Link to post
Share on other sites

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

Share this post


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

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