Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SendKeys Statement 1

Status
Not open for further replies.

FJAY

Programmer
Apr 23, 2003
106
CA
Good Afternoon - sendkeys is not working when I try to send it to a C Shell prompt. The C shell prompt is opened from inside my Vb program. After it opens ti sends some commands using the SendKeys statement.

dim retVal
retval = shell("C Shell", 1)
Doevents
SendKeys cd ..
sendKeys ls.

Please somebody help me.
 
SendKeys can only plase keycodes into the current program's keyin buffer, it doesn't work across processes. Even though the shell is opened from within your program, it's still running in its own process space.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top