CoDeX2k Posted August 4, 2006 Share 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 Link to comment Share on other sites More sharing options...
AzKay Posted August 4, 2006 Share Posted August 4, 2006 _RunDos() # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
CoDeX2k Posted August 4, 2006 Author Share Posted August 4, 2006 nope, allready tryed won't work! Link to comment Share on other sites More sharing options...
Skrip Posted August 4, 2006 Share 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] Link to comment Share on other sites More sharing options...
CoDeX2k Posted August 4, 2006 Author Share 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 Link to comment Share on other sites More sharing options...
John Posted August 4, 2006 Share 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 Link to comment Share on other sites More sharing options...
Paulie Posted August 4, 2006 Share 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. Link to comment Share on other sites More sharing options...
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