June 29th, 2007, 03:02 AM
Run keyboard Function keys from DOS
Does anyone know if there is a way in DOS batch file, to run keyboard Function keys?
for example: lets say that I want to hit F11 on my keyboard (to maximize a windows XP window), only, I would like to run a dos command to do it.
June 29th, 2007, 04:45 AM
AFAIK there are no DOS commands to "press a function key". You'd need a third-party program.
There used to be little third-party DOS utilities floating around years ago to toggle [NumLock] and [CapsLock] On/Off, press [PrintScreen], and a couple of "press the [Enter] key" once or twice. But I don't believe I remember seeing any that would "press a function key".
November 3rd, 2011, 04:28 PM
I know this is an old thread, but the info may still be useful to someone.
There's an old, (and great), set of old DOS commands that are still available online, from Horst Schaffer. I consider these tools to be indispensable for my DOS machine.
Click on this link, then click on the "PBATS" button at the bottom. "KPUSH" is the relevant command for this question, but all of the commands are useful.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)