|  | 
	
	
		| Darkheart Newbie
 
 
 Joined: 11 Dec 2002
 Posts: 3
 Location: Denmark
 
 | 
			
			  |  Posted: 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?
 |  | 
	
	  |  | 
	
		|  | 
	
		| Darkheart Newbie
 
 
 Joined: 11 Dec 2002
 Posts: 3
 Location: Denmark
 
 | 
			
			  |  Posted: Wed Dec 11, 2002 2:42 pm 
 |  
				| I use version 6.16 by the way. 
 |  | 
	
	  |  | 
	
		|  | 
	
		| seamer Magician
 
 
 Joined: 26 Feb 2001
 Posts: 358
 Location: Australia
 
 | 
			
			  |  Posted: 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...
 |  | 
	
	  |  | 
	
		|  | 
	
		| Cronyx Beginner
 
 
 Joined: 19 Jan 2002
 Posts: 12
 Location: USA
 
 | 
			
			  |  Posted: 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
 |  | 
	
	  |  | 
	
		|  | 
	
		| Kjata GURU
 
  
 Joined: 10 Oct 2000
 Posts: 4379
 Location: USA
 
 | 
			
			  |  Posted: 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
 |  | 
	
	  |  | 
	
		|  | 
	
		| Vijilante SubAdmin
 
  
 Joined: 18 Nov 2001
 Posts: 5187
 
 
 | 
			
			  |  Posted: 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.
 |  | 
	
	  |  | 
	
		|  | 
	
		| Darkheart Newbie
 
 
 Joined: 11 Dec 2002
 Posts: 3
 Location: Denmark
 
 | 
			
			  |  Posted: 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.
 |  | 
	
	  |  | 
	
		|  | 
	
		|  | 
	
		|  |