 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
mordeth
Joined: 16 Jan 2005 Posts: 7
|
Posted: Sun Apr 24, 2005 2:31 am Post subject: using numpad mouse with DiNovo numpad |
|
|
Hey guys,
I recently perchased a logitech dinovo keyboard which for those of you who dont know, has a detached numpad. What I would like to do is get the numpad to mouse script working with it for even more wireless freedom.
The problem is that it has no NumLock button. Well thats not so much the, problem, as I can just simulate both numlock and scrollLock (which it is also lacking it) with other hotkeys. The real prleblem is that since it has no numlock, the keypad only ever sends the num keys (ie Numpad0, Numpad1 etc) even when the NumLock state is set to off. Basically it seems to be incapabable of sending NumpadLeft, NumpadHome etc...
So I remapped all the keypad keys to behave correctly in response to the numLock state, using the comprehensive remapping method with both the up and down state. The problem is that when running the numpad to mouse script, the script doesnt take the remapped keys, it just takes the actual key that the keypad sent.
I guess this does kind of makes sense though. Without changing the numpad script to only work with the keys I have at my disposal (and losing some of its customising functionality) is there a way to get the script working as it should? How can get it to take in the remapped values? At the moment the remapping is in my autohotkey.ini file and the numpad script is being run by itself. It seems like it is an issue of precedence.
Any help would be great. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10480
|
Posted: Mon Apr 25, 2005 11:22 am Post subject: Re: using numpad mouse with DiNovo numpad |
|
|
| mordeth wrote: | ...since it has no numlock, the keypad ... seems to be incapabable of sending NumpadLeft, NumpadHome etc...
So I remapped all the keypad keys to behave correctly in response to the numLock state, using the comprehensive remapping method
... the script doesnt take the remapped keys, it just takes the actual key that the keypad sent.
How can get it to take in the remapped values? | The keypad-to-mouse script relies heavily on the keyboard hook for its hotkeys, which is understandable but has the side-effect of preventing simulated keystrokes -- such as those sent my your remapped keys in AutoHotkey.ini -- from being detected as physical keystrokes capable of triggering hotkeys in the other script.
Therefore, probably the only approach is to modify the keypad-to-mouse script to detect the state of Numlock and interpret keys such as Numpad4 differently depending on whether Numlock is currently on or off. Although this would require extensive changes to the script, the changes would probably be fairly simple, so it shouldn't take too long once you have a full understanding of the how the script works and a working understanding of commands like GetKeyState (to fetch the state of Numlock). |
|
| Back to top |
|
 |
mordeth
Joined: 16 Jan 2005 Posts: 7
|
Posted: Mon Apr 25, 2005 12:19 pm Post subject: |
|
|
yeah the keyboard hook preventing this would make a lot of sense
I shall just have to sit down and work out how the script works
thanks for the reply |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|