AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how? send ctrl-c (break) to a hidden cmd

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
BETLOG



Joined: 27 Nov 2006
Posts: 218
Location: Queensland, Australia

PostPosted: Tue May 08, 2007 8:48 am    Post subject: how? send ctrl-c (break) to a hidden cmd Reply with quote

Is it possible to send a ^c (break) to a %comspec% thats hidden...
ie: RunWait, %comspec% /c %COMMANDLINE%,,Hide,

also; i plan to initiate this ^c action with a gui button... if that makes any difference.
Back to top
View user's profile Send private message
Helpy
Guest





PostPosted: Tue May 08, 2007 10:41 am    Post subject: Reply with quote

Did you tried ControlSend ^c or similar?
Back to top
BETLOG



Joined: 27 Nov 2006
Posts: 218
Location: Queensland, Australia

PostPosted: Tue May 08, 2007 11:43 am    Post subject: Reply with quote

Yes, thanks... that works well.
Code:
DetectHiddenWindows, On
IfWinExist, ahk_pid %CMDPID%, , ,
   ControlSend, ,^c,ahk_pid %CMDPID%, , ,
DetectHiddenWindows, Off    
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group