Hi Guys,
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.
Printable View
Hi Guys,
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.
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". :(
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.