Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Darkheart
Newbie


Joined: 11 Dec 2002
Posts: 3
Location: Denmark

PostPosted: Wed Dec 11, 2002 2:38 pm   

Using the Numlock key as a macro
 
Currently when I use the Numlock key without any other keys, it switches
Numlock on/off, and I can't use the Numlock key with CTRL or ALT-CTRL (when
using ALT-CTRL separately).

What I'd like to be able to do is:
1. Use the Numlock key for a macro without numlock being switched on/off
2. Use the Numlock key with each of shift, ctrl, alt, and alt-ctrl

Anyone help me out?
Reply with quote
Darkheart
Newbie


Joined: 11 Dec 2002
Posts: 3
Location: Denmark

PostPosted: Wed Dec 11, 2002 2:42 pm   
 
I use version 6.16 by the way.
Reply with quote
seamer
Magician


Joined: 26 Feb 2001
Posts: 358
Location: Australia

PostPosted: Wed Dec 11, 2002 3:28 pm   
 
i havent heard of numlock being mappable, as far as i know its a system button like capslock and end/home/pg up/pg down and thus uncontrollable...you might be able to work out a way if you hack the keyboard drivers up :P
i could be wrong, tho...best suggestion i can give is to pretend using numlock never occurred, and undoubtedly i'll be corrected if i am wrong

Why oh WHY did I have pass door on...
Reply with quote
Cronyx
Beginner


Joined: 19 Jan 2002
Posts: 12
Location: USA

PostPosted: Thu Dec 12, 2002 7:27 am   
 
I've got pgup, pgdown, home and insert all mapped to multi-lined commnands, actually.

"There is a very fine line between genius and insanity. I have erased this line." -- Oscar Levant
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Dec 12, 2002 2:28 pm   
 
Yup, all of those keys are sent to Windows for processing. I haven't done any specific testing, but I'm guessing that the Num Lock key is a purely keyboard-only key. This key is only for use by the keyboard in determining whether it should access the second function of the other keys in the keypad or not.

Kjata
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Dec 13, 2002 2:05 am   
 
Actually Num-Lock can be detected by continously monitoring port 0x60. Windows however does not pass any signal like wmKeyPressed for that key. So unless you feel like programming a very low level routine that is able to capture it and convert to a non-typable character then put it into the Windows keyboard buffer it won't happen.

Oh btw, Windows doesn't like people writing programs that attempt to directly read ports.
Reply with quote
Darkheart
Newbie


Joined: 11 Dec 2002
Posts: 3
Location: Denmark

PostPosted: Fri Dec 13, 2002 12:41 pm   
 
Thanks for the responses so far, but it seems I need to clarify a little.

The NUM key can be mapped with some (but not all) of the keys successfully, but
the use of those macros toggles Numlock on/off.

So far I've successfully made macros involving the NUM key and the following keys:
- Alone
- With ALT
- With ALT-CTRL (but only when using the ALT GR key, not using the two keys separately)
- With SHIFT

The more specific questions are therefore:
- Is there a way to switch off the NUM key as a toggle for Numlock, always leaving Numlock
in the 'on' position?
- Is there a way to make CTRL work with the NUM key like the other mentioned keys do?
- Is there a way to make ALT-CTRL work with the NUM key when using those keys seperately
in stead of using the combined key for them (ALT GR)?

I'm aware that your posts pretty much already stated that what I'm asking is not easily
done but those were made under the assumption that the NUM key can't be used at all, so
I'm hoping that this clarification might help.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net