In WSH, how can I parse multiple presses like ALT-CTRL-DEL?

Duplicate:

take screenshots of the application using WSH Script

How can I use multiple keys in WSH Script like (ALT, CTRL, DELETE)? How can I take a screenshot of the application and insert it into MSWord using WSH SCript?

-3


source to share


2 answers


With SendKeys, you can't. I told you about it .

Regarding sending multiple keys - please read the documentation at SendKeys()

MSDN
. It's not hard to find out.



There may be an ActiveX component somewhere that can take screenshots for you, but with scripting using vanilla Windows this is not possible.

+3


source


Yes, I think, as Tomalak said, what you are trying to do is likely to require invoking an ActiveX component using the CreateObject command.

I would advise you, though usually when you get to the point where your script is trying to call applications (Word) and take screenshots ... it's time to invest in some development software (Visual Studio or whatever) and write actual application.



If you're totally in the mood for it, DevGuru has a decent help page for the CreateObject command.

0


source







All Articles