Run keyboard Function keys from DOS
Results 1 to 3 of 3

Thread: Run keyboard Function keys from DOS

  1. #1
    Join Date
    Mar 2001

    Wink Run keyboard Function keys from DOS

    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.


  2. #2
    Join Date
    Apr 2005
    Maryland, USA
    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".

  3. #3
    Join Date
    Jun 2001
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts