Can I modify my keyboard driver to output a specific string of keypresses?

  • Thread starter Max.Planck
  • Start date
  • Tags
    Keyboard
In summary: I don't understand the need to operate with multiple computers, without installing the macro software on all the computers. Are you using a KVM (keyboard, video, mouse) switch to share the same keyboard, monitor, and/or mouse with multiple...No, I'm not using a KVM switch. I'm just using a regular keyboard and monitor.No, I'm not using a KVM switch. I'm just using a regular keyboard and monitor.
  • #1
Max.Planck
129
0
Is it possible to modify the keyboard driver, so that the keyboard outputs a certain string of keypresses when i press a certain key combination. So for example, when I press CTRL-ALT-1, the keyboard sends an implementation of the max-flow algorithm to the computer, just like you typed it.
 
Computer science news on Phys.org
  • #2
In the dark ages of Windows 3.1 there was a Windows program that allowed you to register any combination of inputs (keystrokes, mouse movements) and replay them. Tool itself disappeared from Windows, but if memory serves me well some of the calls necessary to write something like that still exist in Windows API - so technically it should be possible, although probably not on the keyboard driver level.

Note that many programs have built in system of macro recording/playing.
 
  • #4
I don't think this is what I'm looking for. Ill define more precisely what I want to accomplish. Basically, I don't want to install any software on the OS itself, but modify the drivers of the keyboard, such that it also works when I plug it into another machine.
 
  • #5
Max.Planck said:
I don't think this is what I'm looking for. Ill define more precisely what I want to accomplish. Basically, I don't want to install any software on the OS itself, but modify the drivers of the keyboard, such that it also works when I plug it into another machine.

You'll still need to install the custom driver on that machine.
 
  • #6
Is there no plug-and-play solution? Or maybe a keyboard with this kind of functionality, i.e. that I configure it on one pc and use that configuration on other pc's, without installing additional software on those pcs?
 
  • #7
Max.Planck said:
Is there no plug-and-play solution?

Plug and play devices still use generic windows drivers to function. The drivers tell the OS how to use the hardware. It's conceivable that a "programmable" keyboard could be built and have it install the driver automatically (unless windows/antivirus prevents it), but I've never heard of one. I can't find anything via a google search.

Maybe something like this
http://www.fentek-ind.com/kbtpcusbb.htm

But I'm not sure if once you program it, it's set or you need the software on each computer or install a driver.
 
  • #8
Its also absurdly expensive...
 
  • #9
If you want to modify the keyboard device driver, it might be included with windows driver kit:

msdn_wdk.htm

It's been a long time and several operating systems ago since I did device drivers, but some things are still similar. You need two computers with a remote debugging setup: one to run the driver (target system); and one to develop, compile, and remote debug the code (host system). The WDK is now setup to run with Visual Studio, and you'll probably have to buy a copy of Visual Studio as it seems unlkely that Visual C / C++ express, which is free. will work with the WDK. I don't know what else you'll have to buy. When I was working on device drivers, my company had a MSDN developer license, which was paid via a yearly fee (and it wasn't cheap).

If you're trying to modify the internal firmware for a keyboard, each brand is different internally, and you would need a keyboard that allows you to update the firmware, plus have access to a firmware development kit. This seems like it would be relatively rare.
 
Last edited:
  • #10
rcgldr said:
If you're trying to modify the internal firmware for a keyboard, each brand is different internally, and you would need a keyboard that allows you to update the firmware, plus have access to a firmware development kit. This seems like it would be relatively rare.

Thanks for the reply. Yes I think the last thing is the thing I'm looking for, basically I want a plug-and-play solution. So I would like to program the keyboard on one computer, and have it work on every computer without installing software on those computers.
 
  • #11
Max.Planck said:
Thanks for the reply. Yes I think the last thing is the thing I'm looking for, basically I want a plug-and-play solution. So I would like to program the keyboard on one computer, and have it work on every computer without installing software on those computers.
You could try a macro keyboard (normally used for gaming), some of which are not that expensive, but some or all of those may just use a driver to translate scan codes. You'd want a keyboard that would store the macros in some form of non-volatile memory within the keyboard itself, so that a power cycle wouldn't reset the macros.

I don't understand the need to operate with multiple computers, without installing the macro software on all the computers. Are you using a KVM (keyboard, video, mouse) switch to share the same keyboard, monitor, and/or mouse with multiple computers?
 
  • #12
Can you not define a custom keymap inside a program for windows?
 
  • #13
There are many solutions, free, that let you define new keyboard layouts and drivers for any Windows NT family (nt4, 2x, Xp, V, 7...), and need no programming. Like: disable the "insert", "capslock" or "numlock" keys. They don't work on Win95-98-98se-Me.

Sadly, I don't have my notes on the present computer.

I'd very strongly warn against changing the keymap for just one application nor shorting windows' driver stack... Users are allowed to (and I do...) change some options when an application is already running, like replace the "." by "," as a decimal separator. Believe it or not, Windows reacts properly to that, and applications relying on Windows run as well. Other example: users are allower to replace a Usb keyboard when Win and the applications are running, for instance from English to Japanese. Very bad joke for anyone programming a key poll himself.
 

Related to Can I modify my keyboard driver to output a specific string of keypresses?

1. How can I modify my keyboard driver to add new shortcuts?

To modify your keyboard driver to add new shortcuts, you will need to access the keyboard settings on your computer. From there, you can create custom key combinations or remap existing keys to perform different functions.

2. Can I modify my keyboard driver to change the layout of my keys?

Yes, you can modify your keyboard driver to change the layout of your keys. This can be useful if you are used to a different keyboard layout or want to create a custom layout for your specific needs. You can use third-party software or access the keyboard settings on your computer to make these changes.

3. Is it possible to modify my keyboard driver to fix a malfunctioning key?

In some cases, it is possible to modify your keyboard driver to fix a malfunctioning key. You can try reinstalling the driver or updating it to see if that resolves the issue. If not, you may need to replace the physical keys or the entire keyboard.

4. How can I create macros using my keyboard driver?

To create macros using your keyboard driver, you will need to use specialized software or access the keyboard settings on your computer. From there, you can assign a series of actions to a single key or combination of keys, allowing you to automate tasks and save time.

5. Can I modify my keyboard driver to adjust the sensitivity of my keys?

Yes, you can modify your keyboard driver to adjust the sensitivity of your keys. This can be helpful if you find that your keys are either too sensitive or not sensitive enough. You can use third-party software or access the keyboard settings on your computer to make these adjustments.

Similar threads

  • Computing and Technology
Replies
19
Views
2K
  • Computing and Technology
Replies
6
Views
7K
Replies
5
Views
1K
  • Computing and Technology
Replies
9
Views
9K
Replies
2
Views
3K
  • Computing and Technology
Replies
0
Views
402
  • Computing and Technology
Replies
9
Views
18K
  • Computing and Technology
Replies
14
Views
2K
  • Electrical Engineering
Replies
4
Views
3K
  • Programming and Computer Science
Replies
2
Views
2K
Back
Top