PDA

View Full Version : [HotKeyNet] ScrollLock light on keyboard not working?



Kruu
03-26-2011, 07:13 AM
when I use scrolllock as a hotkey the light on my keyboard stops working. Is there a setting to fix this?


// PAUSE HOTKEY
<hotkey pause, ScrollLock>
<sendpc local>
<ToggleHotkeys>


the goal was to use SL to pause/unpause HKN so the light would indicate state, pause key was to be used to match state to the light.

Khatovar
03-26-2011, 07:46 AM
You've set up two different keys to do the same thing. Scrolllock toggles broadcasting and Pause toggles broadcasting.

I'm really not sure what you're trying to do. If Scrolllock toggles the keys to broadcast and shows a light when it's on, then why do you need another key to toggle broadcasting?

If what you're trying to do is set it up so that when scrolllock is on, pause toggles broadcasting, but if scrolllock is off, pause does nothing or something else, then you would do

<hotkey ScrollLockOn Pause>
<sendpc local>
<ToggleHotkeys>

Freddie
03-26-2011, 11:17 AM
when I use scrolllock as a hotkey the light on my keyboard stops working. Is there a setting to fix this?
Yes, include <PassThrough> in the hotkey definition.

The reason the light stops working is because you turned ScrollLock into a hotkey. That means you're redefining the actions that take place when ScrollLock is pressed, so it no longer performs its normal actions which include turning the LED off and on. If you want ScrollLock to continue to perform its normal actions, you have to pass the trigger event (your finger pressing ScrollLock) to the operating system with <PassThrough> so the operating system can toggle the LED.


...pause key was to be used to match state to the light.
You don't need the Pause key to match the states. You can keep the LED and HotkeyNet in sync like this:


<Hotkey ScrollLockOn ScrollLock>
<PassThrough>
<TurnHotkeysOff>

<Hotkey ScrollLockOff ScrollLock>
<PassThrough>
<TurnHotkeysOn>

Kruu
03-30-2011, 08:47 PM
Yes, include <PassThrough> in the hotkey definition.

The reason the light stops working is because you turned ScrollLock into a hotkey. That means you're redefining the actions that take place when ScrollLock is pressed, so it no longer performs its normal actions which include turning the LED off and on. If you want ScrollLock to continue to perform its normal actions, you have to pass the trigger event (your finger pressing ScrollLock) to the operating system with <PassThrough> so the operating system can toggle the LED.


You don't need the Pause key to match the states. You can keep the LED and HotkeyNet in sync like this:


<Hotkey ScrollLockOn ScrollLock>
<PassThrough>
<TurnHotkeysOff>

<Hotkey ScrollLockOff ScrollLock>
<PassThrough>
<TurnHotkeysOn>


Exactly what I wanted thanks for the reply :D