Sensing what key is pressed on the keyboard

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
phillid
Posts: 109
Joined: 03 Apr 2010 20:27
Location: Wellington, New Zealand
Contact:

Sensing what key is pressed on the keyboard

#1 Post by phillid » 23 Jun 2010 23:13

Hey. I want to be able to sense which key is being pressed on the keyboard during the running of my batch file. I'm in a situation where the 'set /p' wont be suitable. I know that QBASIC can do this, but can a batch file??

Cheers
Phillid

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Sensing what key is pressed on the keyboard

#2 Post by aGerman » 24 Jun 2010 13:02

This isn't possible using native batch.
Have look to the "getch" tool on this web site.

Regards
aGerman

phillid
Posts: 109
Joined: 03 Apr 2010 20:27
Location: Wellington, New Zealand
Contact:

Re: Sensing what key is pressed on the keyboard

#3 Post by phillid » 24 Jun 2010 20:34

Very nice software packacge - really easy to use

Thanks :D

phillid

Post Reply