Jump to content

Recommended Posts

Posted

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]

Posted

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

Posted

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
Posted

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.

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
×
×
  • Create New...