|
Answer» ok i need a basic bat file i need it to be able to send an emulated press of a key (up arrow) to the active window every 10-20 secs (random) if u make one email it to me at [emailprotected]
-generikk
email ADDY removed to prevent SPAM.A batch file (basic or otherwise) does not have the built-in functionality to send key strokes.
Your Win7 machine has tools to do this HOWEVER. Alternatives would be a VBScript using the sendkeys method of the SHELL object. Powershell would be overkill, but you can send key strokes with the Windows.Forms class. A third party alternative would be to download and INSTALL AutoIt.
Just curious as to application of this?
Most automation has specific timing INVOLVED where you dont want random between 10 and 20 sec intervals.
|