Log in

View Full Version : Scroll Lock On/Off



Owltoid
07-30-2009, 10:49 AM
Well, the new computer is here and I'm playing with a few things. I transitioned to wireless keyboard & mouse which is nice, but the keyboard doesn't have a scroll lock light.

Can anyone think of a solution that allows me to tell if the scroll lock is on or off? I will probably have my task bar visible, so even a small icon in the taskbar tray next to the clock would be acceptable (that's what my work laptop does... it puts a green scroll lock icon next to the clock if scroll lock is on).

With HKN what other state modifiers can you use besides scroll lock and caps lock? What else has an "on" and "off" state?

Abend
07-30-2009, 11:37 AM
With HKN what other state modifiers can you use besides scroll lock and caps lock? What else has an "on" and "off" state?
NumLock afaik.

olipcs
07-30-2009, 11:41 AM
short question?
- do you only usescrolllock on/of, for diabeling/enabeling HKN?
- If so you could achieve the same withe a hotkey which calls <ToggleHotkeys>

Owltoid
07-30-2009, 11:56 AM
short question?
- do you only usescrolllock on/of, for diabeling/enabeling HKN?
- If so you could achieve the same withe a hotkey which calls <ToggleHotkeys>

Yes, I only use it for disabling/enabling HKN. I'm hoping to have some sort of visual cue of when it is enabled or disabled. I don't care if it's scroll lock or ctrl-shift-alt-Q as long as I can tell if it's currently on or off (old keyboard had the nice scroll lock light that this wireless keyboard doesn't).

I guess one idea is to somehow link a hotkey using <ToggleHotKeys> to play a sound for when it's on and a different sound for when it's off. However, I often play without sound so that wouldn't help during those times. I'm really hoping for a visual indicator.

Thanks for the help!

ElectronDF
07-30-2009, 12:14 PM
There really has to be a freeware keylock status program, just keep looking. Try "system tray, keylock, status". I use both scrolllock and pause. Scrolllock is 90% for most keys. Then pause does everything. I also put in about 60% of "if window is World of Warcraft" so I can type in a browser and not have alts go crazy. Not to burst your bubble, but I have never ever heard anyone say, "Wait up guys, my wired keyboard is messing up". It is always wireless stuff. Maybe that is with crappy products, I just don't trust them enough to not mess up once in a while.

Abend
07-30-2009, 12:22 PM
short question?
- do you only usescrolllock on/of, for diabeling/enabeling HKN?
- If so you could achieve the same withe a hotkey which calls <ToggleHotkeys>

Yes, I only use it for disabling/enabling HKN. I'm hoping to have some sort of visual cue of when it is enabled or disabled. I don't care if it's scroll lock or ctrl-shift-alt-Q as long as I can tell if it's currently on or off (old keyboard had the nice scroll lock light that this wireless keyboard doesn't).

I guess one idea is to somehow link a hotkey using <ToggleHotKeys> to play a sound for when it's on and a different sound for when it's off. However, I often play without sound so that wouldn't help during those times. I'm really hoping for a visual indicator.

Thanks for the help!

The HotKeyNet tray icon will go gray if its disabled, that should be enough of a visual cue ?

Freddie
07-30-2009, 01:18 PM
Like Abend said, HotkeyNet's tray icon is an on/off indicator.

Would it help if I implement a window overlay?

Owltoid
07-30-2009, 01:49 PM
Like Abend said, HotkeyNet's tray icon is an on/off indicator.

Would it help if I implement a window overlay?

Oh wow, I had no idea! Thanks Abend and Freddie. I'll check that out later tonight.

I'm not sure what a window overlay is, but if you're talking about some type of small status light that is always on top then I could see that being very useful.

Freddie
07-30-2009, 02:02 PM
I'm not sure either. A number of people have requested some sort of graphic that would float on top of the display. Or maybe they meant it should be attached to a particular game window and always appear to float on top of that window.

Owltoid
07-30-2009, 03:58 PM
Can HKN hide the Windows Taskbar? I'm thinking of making a button that toggles hot keys and simultaneously hides the taskbar (or displays it when not passing hot keys).

Owltoid
07-30-2009, 04:06 PM
I guess it has been awhile since I've really thought about my HKN setup and what is the best way to do things. I'm not starting to think it would just be better to have one button to turn hotkeys on, and one button to turn hotkeys off, which it looks like Freddie has made to be extremely easy! It looks like I can remove the "ScrollLockOn" from my Hotkey definitions and just have a basic toggle to turn things on and off.

I love HKN :D

Freddie
07-30-2009, 06:56 PM
Can HKN hide the Windows Taskbar? I'm thinking of making a button that toggles hot keys and simultaneously hides the taskbar (or displays it when not passing hot keys).
The current build can't do this so I just posted a new build that can. (Build 178.) It has a new command that changes the operating system's "auto-hide task bar" setting. I thought this would accomplish what you want but be more useful than hiding the task bar by brute force. If the new command doesn't do the job, let me know and I'll change it.

To hide the task bar, turn the new setting on.

SetTaskbarAutoHide ('http://hotkeynet.com/ref/settaskbarautohide.html')


I love HKN :D
Thanks. :) I really appreciate the nice things you've been saying about the program. :)

vikemosabe
08-11-2009, 03:10 PM
Hey Freddie, I've been wanting a feature such as this and was excited last week when I saw it in the new build.
Thanks for continuing to work on this amazing program.

As far as a visual cue is concerned:
my problem is that I always play with the taskbar minimized, which negates the greyed out icon.
If it were easy to add in a command that allows you to place something as simple as a colored square on top of everything while hkn is open that could be green for on and red for off or something that would be awesome.
I suppose if you'd need to give some control over it in the command to take an x, y, width, height so people could put it where they wanted and just have it float there at all times.

Out of curiosity, what language do you program hkn in?
I'm assuming C or C++ based on the book suggestions on your forums.

Owltoid
08-11-2009, 03:46 PM
vikemosabe, I used to use the scroll lock on/off as my method of hotkeys, but since this thread I have switched to "home" turning hotkeys on and "end" turning hotkeys off. I think you should give it a shot... it's much easier to have different buttons for turning things on and off than having a toggle. I would never go back to the scroll lock on/off for hotkeys, though I may use it for PvP vs PvE broadcasting (if off, then PvE, if on then PvP... that was I can do everything with one script).

Freddie was nice enough to implement the autohide on the taskbar, but I'm finding what would really be usefull is a toggling of the taskbar always on top of windows or not. Either way, since I have to play with it NOT always on top for WoW (and don't want to go through clicking it on and off) I just now hit the windows button on my keyboard if I want to switch to another non-WoW window while playing.

Freddie
08-11-2009, 04:42 PM
Freddie was nice enough to implement the autohide on the taskbar, but I'm finding what would really be usefull is a toggling of the taskbar always on top of windows or not.
I just added (in build 180) a command to change the operating system's setting for "Keep taskbar on top of windows."

I tested very briefly (on XP) and was surprised to see that the new command doesn't do what I would have expected from the name. However it should do the same thing as the operating system's checkbox. Please let me know if it doesn't.

http://hotkeynet.com/ref/settaskbaralwaysontop.html

Freddie
08-11-2009, 04:48 PM
Hey Freddie, I've been wanting a feature such as this and was excited last week when I saw it in the new build.
Thanks for continuing to work on this amazing program.
Thanks for the kind words.



As far as a visual cue is concerned:
my problem is that I always play with the taskbar minimized, which negates the greyed out icon.
If it were easy to add in a command that allows you to place something as simple as a colored square on top of everything while hkn is open that could be green for on and red for off or something that would be awesome.
I suppose if you'd need to give some control over it in the command to take an x, y, width, height so people could put it where they wanted and just have it float there at all times.
This has been requested many times and it's on the list of things to do. The only reason it's not in the program now is that I've been reluctant to spend a lot of time adding new features to HKN1 because HKN2 will be replacing it pretty soon. (Quickie features like the new taskbar command in build 180 only take about 15 minutes each so I don't mind adding them to the old program.) If HKN2 isn't ready soon I'll think about adding this to the old program.


Out of curiosity, what language do you program hkn in?
I'm assuming C or C++ based on the book suggestions on your forums.
Yep, C++ / Win32.

Owltoid
08-11-2009, 04:53 PM
I just added (in build 180) a command to change the operating system's setting for "Keep taskbar on top of windows."

I tested very briefly (on XP) and was surprised to see that the new command doesn't do what I would have expected from the name. However it should do the same thing as the operating system's checkbox. Please let me know if it doesn't.

http://hotkeynet.com/ref/settaskbaralwaysontop.html

Very cool, if I get time I'll try this tonight. Thanks! I'm looking forward to HKN2... i'd like to see what you have up your sleeve :)

vikemosabe
08-11-2009, 11:58 PM
I'm looking forward to it as well.
From what I've seen of it the scripting makes more sense and offers a tighter script with less chance for error.

I've stuck to HKN1 for now, but if you need some more testing on HKN2 at some point I'd be happy to go ahead and make the switch.

Btw Freddie, I started using the auto hide switch and I LOVE IT!
It makes it that much easier to switch from multiboxing to doing other things on my computer.
LOVE IT!