Log in

View Full Version : [HotKeyNet] modified hotkeys



Vreejack
11-22-2012, 11:18 AM
I need separate modified and unmodified hotkeys. Should this work?

<hotkey a>
<sendlabel w1>
<key a>

<hotkey lalt a>
<sendlabel w2>
<key lalt a>

it seems the second one is being sent as an unmodied 'a'. Is this because the 'a' appears before the client gets a chance to notice the alt key?
So should it then be
<sendlabel w2>
<keydown lalt>
<wait 50>
<key a>
<keyup lalt>

Khatovar
11-22-2012, 11:26 AM
Under Options > Send Mode Settings > Delays between modifiers and main keys make sure "Clear Modifiers before executing hotkey" is unchecked.

Vreejack
11-22-2012, 12:17 PM
Tunded out to be a timing issue.

This works:

<hotkey lalt d>
<SendLabel w2><wait 50>
<Key F2><wait 50>
<Key lalt d>
<restore>

Apparently I just need to add a <wait 50> after every command that sends something.
It might need to be longer for insurance, but it will take experimentation. This eliminates a lot of troubles I have been having.

Vreejack
11-22-2012, 12:29 PM
Edit: Oh, duh. That's an option I can set :p