Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
How2 simulate keystroke with batch file
Name: LUACC Date: January 15, 2002 at 06:55:30 Pacific
Comment:
How do I simulate the pressing of the "enter" key with a batch file program?
Name: greg Date: January 15, 2002 at 13:16:46 Pacific
Reply:
Hi:
Friend at a co. used to use a utility called 'stuff' for simulating keystrokes in batch files.
Don't have it on hand, but try following link:
http://www.filelibrary.com/Contents/DOS/51/5.html
Two from above site look promising: kbd.zip and jckey_io.zip.
Not sure if is what your looking for, but may be of use.
HTH
0
Response Number 2
Name: steve Date: January 15, 2002 at 14:10:01 Pacific
Reply:
This is good :- http://www.filegate.net/bfds/key-fake.zip
0
Response Number 3
Name: fred6008 Date: January 15, 2002 at 20:28:54 Pacific
Reply:
I am not much on batch files; so, I have probably misunderstood the question. However, I think you emulate a key stroke when you go to a new line. Batch files are like the Autoexec.bat which is in fact a special case batch file. Take C: as the keystroke (or two keystrokes in this case) Path=C:...etc. D: DOSKEY In the above three lines the computer would establish a path, switch to drive D: and install DOSKEY. So you have pressed enter in effect by going to a new line.
0
Response Number 4
Name: Bruce Munck Date: March 16, 2002 at 10:26:38 Pacific
Reply:
Hey,Guy/Gal!
Key-fake.com is a great old utility! It was published in PC Magazine in 1985. To simulate an 'enter' key press simply type: "Key-Fake 13" (without the quotes.) It works great for sending command line arguments to DOS programs; however, I haven't had much luck using it with Windows programs (could be my fault.) To use it is to love it.
I got key-fake and havent been able to use it How do i load this into a batch file. I've tried in the batch file by KEY-FAKE (all my strings minus the () ) and that just displays the strings and doesn't do a thing. Any help is appreciated.
Summary: Using 2 batch files I can ping a network and the client IP addresses...is there any way to modify the batch files below so P1.BAT SET variable can include numbers 1 thru 253; in other words can I crea...
Summary: I was experimenting around with batch files when I came across this question: Is it possible to make a command to get a string input from the user? (I was thinking of using a batch file to ask a quest...