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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why can't I sendkey to my dos shell window?

Status
Not open for further replies.

tpq

Programmer
Apr 2, 2003
12
US
I couldn't send any keyboard stroke to a dos shell window.
Here is my aspect script:

proc main
integer TaskID
integer WinId

set aspect keys on
winminimize $PWMAINWIN
run "cmd" TaskID

taskwin TaskId WinId
winfocus WinId

sendkeystr "dir`r"

winmaximize $PWMAINWIN
endproc

Thanks
 
My hunch is that this is due to it being a DOS window and not a true Windows application.

As a workaround, you can use the dos ASPECT command to get the directory listing and pipe it a text file that you can then load.


aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top