The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: skywalker on January 12, 2006, 03:54:07 PM

Title: Remap a key
Post by: skywalker on January 12, 2006, 03:54:07 PM
I am looking to learn how to remap one key on my keyboard via an assembler program.

Any help would be appreciated.

Thanks.
Title: Re: Remap a key
Post by: Tedd on January 12, 2006, 04:55:11 PM
Keyboard hook?
Remove the keypress from the queue and replace it with your chosen keypress.
Title: Re: Remap a key
Post by: skywalker on January 12, 2006, 08:01:36 PM
Quote from: Tedd on January 12, 2006, 04:55:11 PM
Keyboard hook?
Remove the keypress from the queue and replace it with your chosen keypress.


Do you have some example code ?

Title: Re: Remap a key
Post by: Tedd on January 13, 2006, 12:31:35 PM
Nope. You're going to have to research this one for yourself.

You seem to be asking a number of suspect questions lately.
Title: Re: Remap a key
Post by: skywalker on January 13, 2006, 04:43:04 PM
Quote from: Tedd on January 13, 2006, 12:31:35 PM
Nope. You're going to have to research this one for yourself.

You seem to be asking a number of suspect questions lately.

I want to remap PrtScr to do what it does on most other keyboards, put the screen contents into a buffer. The particular keyboard wants to print the screen.

I want to be able to paste the screen into mspaint to do some editing.



Title: Re: Remap a key
Post by: Jimg on January 13, 2006, 08:14:02 PM
Are you sure it's the keyboard?  Did you try another keyboard?  It's most likely some errant device driver installed from the distribution disk for a printer.  Find it and kill it  :toothy
Title: Re: Remap a key
Post by: skywalker on January 14, 2006, 09:09:48 PM
Quote from: Jimg on January 13, 2006, 08:14:02 PM
Are you sure it's the keyboard?  Did you try another keyboard?  It's most likely some errant device driver installed from the distribution disk for a printer.  Find it and kill it  :toothy

How do I kill a driver. (the inanimate kind that is. :-)

Title: Re: Remap a key
Post by: P1 on January 15, 2006, 08:53:53 PM
Quote from: skywalker on January 13, 2006, 04:43:04 PMI want to remap PrtScr to do what it does on most other keyboards, put the screen contents into a buffer. The particular keyboard wants to print the screen.

I want to be able to paste the screen into mspaint to do some editing.
Well, for starters, it's Alt + PrtSc for Windows, to put the active window into the buffer.  Ctrl + V to paste it into MSPaint.

Have fun with Windows.

Regards,  P1  :8)
Title: Re: Remap a key
Post by: skywalker on January 16, 2006, 03:24:22 AM
Quote from: P1 on January 15, 2006, 08:53:53 PM
Quote from: skywalker on January 13, 2006, 04:43:04 PMI want to remap PrtScr to do what it does on most other keyboards, put the screen contents into a buffer. The particular keyboard wants to print the screen.

I want to be able to paste the screen into mspaint to do some editing.
Well, for starters, it's Alt + PrtSc for Windows, to put the active window into the buffer.  Ctrl + V to paste it into MSPaint.

Have fun with Windows.

Regards,  P1  :8)

Your way apparently is another way. I just did a PrtScr and then Shift Insert and it worked on a Microsoft keyboard.

I'll try your way on the other keyboard and see if that way works.

Windows is always fun, almost as fun as working from a cmd prompt. :-)