How to send Ctrl+Alt+S through SendKeys.Send() method to save a file

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I need to save a file which is in an External Window using SendKeys.Send or SendKeys.SendWait() method. The keys needed to be sent are  Ctrl+Alt+S and I wrote the below code : <br/><br/>SendKeys.SendWait("^%(S)");  // to get the Save As window...<br/>Thread.Sleep(5000);<br/>SetForegroundWindow(FindWindow(null, "Save As"));<br/>Thread.Sleep(5000);<br/>SendKeys.SendWait("abc"); //giving the file name in the save as file dialogue <br/><br/>But it is not working... <br/>Can anybody of help me in this...<br/><br/>Ramesh.

View the full article
 
Back
Top