View Full Version : Using the scroll wheel as a hotkey
Ifalna
12-05-2008, 03:43 PM
Have had a look around, and am worried I already know the answer, but is there any way to get HKN to pick up the mouse scroll wheel to use a broadcaster? Mouse clicks aren't a problem but my new macro plan for dpsing is revolving around being able to use the mouse wheel to activate the clones dps/healing.
Any ideas would be appreciated.
pengwynman
12-05-2008, 04:28 PM
Have had a look around, and am worried I already know the answer, but is there any way to get HKN to pick up the mouse scroll wheel to use a broadcaster? Mouse clicks aren't a problem but my new macro plan for dpsing is revolving around being able to use the mouse wheel to activate the clones dps/healing.
Any ideas would be appreciated.Hmm... if this is possible i wonder if i could set up some kind of long castsequence macro for my super low friction free-spinning g9 mouse wheel :P
Ualaa
12-05-2008, 09:10 PM
Just going into the default warcraft keybindings, accessed by pressing Escape in game and then selecting Key Bindings.
You can use your thumb buttons, scroll wheel or the page forward/page backward buttons as keybinds.
Pretty much my macro's are all made within warcraft. But I use G-keys and mouse buttons to access many of them.
I did not like the mouse wheel for macro's, as I like to zoom in and out, during play.
Ifalna
12-06-2008, 05:36 AM
Just going into the default warcraft keybindings, accessed by pressing Escape in game and then selecting Key Bindings.
That does not help HKN broadcast the mouse wheel. Keybinding the mouse is not an issue at all, broadcasting it is.
Freddie
12-06-2008, 09:22 AM
No, sorry, the current version of HotkeyNet can't send mousewheel events or react to mousewheel events.
This has been requested about half a dozen times now so maybe I'll add it to the to do list. (It depends on how much work it is -- I'll look and see.)
Ifalna
12-06-2008, 10:43 AM
Thanks for the Info Freddie, I will work around it to the best I can, hopefully its not too much hassle to implement ;)
Tancredo2112
07-08-2009, 01:12 PM
Heh, I see at http://hotkeynet.com/p/download.html that since version HKN 166 there exists (thanks Freddie for responding to community requests!)
WheelForward WheelBackward
I could not locate any info in the reference section at http://hotkeynet.com/ref/functions.html and am looking for a way to pass both events from the master to each slave.
I do have a good functioning script that I've hacked together from others, and made minor tweaks to; just looking to add this small functionality. For the curious, it's for buffing as needed each half hour in WoW, using the mod SmartBuff v3.1bDev2 ('http://wow.curse.com/downloads/wow-addons/details/smart-buff.aspx')
Thanks!
olipcs
07-08-2009, 02:39 PM
well, since WheelForward and WheelBackward are simply ment as key_names, like f.e. 'a' or 'space', I think something like:
<Hotkey WheelForward>
<Sendlabel w1,w2,w3,w4,w5>
<Key WheelForward>
<Hotkey WheelBackward>
<Sendlabel w1,w2,w3,w4,w5>
<Key WheelBackward>
should work. (of course with changing w1-w5 to the labels you use...)
Tancredo2112
07-08-2009, 02:54 PM
Awesome, I should have seen that, too distracted managing teams :)
HKN seem to be picking up the request fine, in watching the debug window. WheelForward shows as virtual key : 10, and WheelBackward shows as virtual key : 11. Both show scan code : 0 and extended : no
I am not sure that it is being passed per se to clients; when HKN is not paused, there seems to be no function now in game while moving the mouse wheel forward or back.
I am guessing what needs to be passed is not <Key WheelForward> etc. but perhaps something else ?
Appreciate you putting this on the right track at least !
olipcs
07-08-2009, 03:35 PM
hm, funny. I tested this myself, after you mentioned it, and couldn'T use <Key WheelForward> also.
So I tryed to use it as only the trigger and send PgUp, PgDn (which I bound as second keys for zooming) with:
<Hotkey WheelForward>
<Sendlabel w1,w2,w3,w4,w5>
<Key PgUp>
<Hotkey WheelBackward>
<Sendlabel w1,w2,w3,w4,w5>
<Key PgDn>
..this worked as it should...
..I think we have to wait for Freddie to clarify if this is a bug, WoW-Specific or working-as-intended...
Edit: on a second thought:
-Maybe the answer is in the exact wording of the description of the build 166:
Hotkeys can now be triggered by turning the mouse wheel. The following keywords have been added. They are used like the names of keys:
— WheelForward.
— WheelBackward. if reading this carefully, it says that hotkeys can be triggered by the mousewheel, but not that you can send the mousewheel with <Key>, so maybe thats why it isn't working. If this is the case, than I'm sorry for showing you the wrong way with <Key WheelForward> :(
olipcs
07-08-2009, 03:54 PM
ok, out of curriosity, i tested a the following simple script with my browser, my explorer, my editor.
<Hotkey WheelForward>
<SendFocusWin>
<Key WheelForward>
<Hotkey WheelBackward>
<SendFocusWin>
<Key WheelBackward>
allways no scrolling did happen (but this may also be, because all of this programms use child windows (i think), argh...).
Tancredo2112
07-08-2009, 04:10 PM
No worries, worst case I may have to macro something up in game, and find space for another key, etc.
I agree, we'll have to let Freddie weigh in; he's been more than responsive to the community !
Pocalypse
07-08-2009, 05:23 PM
I use an existing key for my smartbuff by adding the following at the end of the macro:
/stopmacro [combat]
/click SmartBuff_KeyButton
(or it might be /click SmartBuff_ActionButton, I'm at work right now).
So my key does something different in combat, and smartbuffs out of combat.
Freddie
07-08-2009, 06:44 PM
There's no way to send MouseWheelForward or MouseWheelBackward events. Those words can be used only as triggers of hotkeys.
It was done this way because the mouse wheel is conceptually different from all other keys and buttons. (I'll explain why this is true in a moment.) As a result, it was easy to add "trigger-only" support, but it would be much more work to add a way to send mouse wheel rolls. Changes to keywords would be required and additional info would have to be sent from one PC to another.
Mouse wheel rolls are different because when the mouse driver and operating system report them to programs like HotkeyNet, the message says, "the mouse wheel was rolled forward (or backward) a certain distance." There's a magnitude involved -- how far the wheel rolled. But there's nothing like this with other keys and buttons.
Therefore to send a mouse wheel event, the program would need a keyword like this:
<Roll Forward 8>
Where 8 is the number of clicks to roll. This would be easy to add to the program. But this only works if you know in advance how far to roll, and that's not how people want to use the feature. They want the program to broadcast rolls. That means the program must notice how far you rolled the wheel when you actually use the mouse, and then it must copy that magnitude to other windows.
For example, people want to write something like this:
<Hotkey MouseWheelForward>
<SendPC REMOTE_PC>
<SendWin MY_WINDOW>
<Roll %Trigger%>
In order to make this work, the program would have to record the magnitude of the roll in an implicit variable and send that info to other computers.
In the new program, %Trigger% will be replaced by a real variable rather than a text macro, and it will be easier to do this.
Edit: Also, the new program will do pure event broadcasting which will make this extremely simple.
olipcs
07-09-2009, 02:57 AM
I see, thanks for the clarification!
vBulletin® v4.2.2, Copyright ©2000-2025, Jelsoft Enterprises Ltd.