AutoHotkey Community

It is currently May 27th, 2012, 7:30 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: May 24th, 2006, 6:46 pm 
Offline

Joined: March 2nd, 2005, 10:59 am
Posts: 59
Hello
I launch a DOS program by the run command. THis program needs an affirmation (y) to go on. How can I send a "y" to the dos prompt or give it at once when the program is launched?
Thank you very much for the help!
MIchael


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 24th, 2006, 7:25 pm 
Offline

Joined: December 22nd, 2005, 7:43 pm
Posts: 245
Code:
Settitlematchmode, 2
ifwinexist, command
winactivate, command
Send, Y


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 24th, 2006, 9:06 pm 
Offline

Joined: March 2nd, 2005, 10:59 am
Posts: 59
Thank you Greg!
thats it


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 26th, 2006, 4:32 pm 
Offline

Joined: March 2nd, 2005, 10:59 am
Posts: 59
Hello
old thread but still important to me because I would like to hide the window and for an unknown reason it does not always close the window.
has anybody an other advice?
Thanks
Michael


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 26th, 2006, 5:06 pm 
Quote:
I launch a DOS program by the run command
Which one?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 26th, 2006, 5:14 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
If the Dos window is hidden, I think you cannot Send something to it.
Perhaps using ControlSend might work.

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 26th, 2006, 5:38 pm 
Offline

Joined: March 2nd, 2005, 10:59 am
Posts: 59
Hello BoBo
its
"vshadow.exe -da"
that should close all shadow devices on the system and it needs confirmation :-(
Michael


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: HotkeyStick, oldbrother, sjc1000, SKAN, thor, Yahoo [Bot] and 58 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group