Computing.Net > Forums > Disk Operating System > How2 simulate keystroke with batch file

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

Reply to Message Icon

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?

Thanks,
Luacc



Sponsored Link
Ads by Google

Response Number 1
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.


0

Response Number 5
Name: brandon schaefer
Date: May 11, 2002 at 11:06:01 Pacific
Reply:

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.

thanks

biggs


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon

bios flash, swap rom chip... very old hard disk



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: How2 simulate keystroke with batch file

setup epson with batch file www.computing.net/answers/dos/setup-epson-with-batch-file/5261.html

Ping several PCs with batch file www.computing.net/answers/dos/ping-several-pcs-with-batch-file/10485.html

Batch-File Scripting www.computing.net/answers/dos/batchfile-scripting/14676.html