News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Remap a key

Started by skywalker, January 12, 2006, 03:54:07 PM

Previous topic - Next topic

skywalker

I am looking to learn how to remap one key on my keyboard via an assembler program.

Any help would be appreciated.

Thanks.

Tedd

Keyboard hook?
Remove the keypress from the queue and replace it with your chosen keypress.
No snowflake in an avalanche feels responsible.

skywalker

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 ?


Tedd

Nope. You're going to have to research this one for yourself.

You seem to be asking a number of suspect questions lately.
No snowflake in an avalanche feels responsible.

skywalker

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.




Jimg

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

skywalker

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. :-)


P1

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)

skywalker

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. :-)