CoDeX2k Posted August 4, 2006 Posted August 4, 2006 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
Skrip Posted August 4, 2006 Posted August 4, 2006 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]
CoDeX2k Posted August 4, 2006 Author Posted August 4, 2006 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
John Posted August 4, 2006 Posted August 4, 2006 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
Paulie Posted August 4, 2006 Posted August 4, 2006 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,CoDeX2knope, 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... PCPInstead 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.
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