Log in

View Full Version : AllMainkeys



Fuzzyboy
12-11-2008, 10:12 AM
I'm loving the program so far - very flexible and easy to customize :-)

Simple question - basically I want to send all keys, including modifiers (sort of like the keyclones default settings) and stick to excluding a few select keys (tab etc). Is there a key list which includes all keys (modifiers and all) and if not, what string would I use to include all keys including modifiers? (so I don't just send "A" but also LCTRL + "A", RCTRL + "A", SHIFT + "A" etc etc)

olipcs
12-11-2008, 10:21 AM
Hi, honestly I don't know if there is a list of all possible keys.

What you can do in HotkeyNet (build 153) to comenear your needs, is using a template for defining the broadcast keys like:



// %1% = Key, Keysequence or Keylist to be broadcasted
<Template Broadcastkey>
<Hotkey %1%; lalt %1%; lctrl %1%; lshift %1%; ralt %1%; rctrl %1%; rshift %1%>
<Sendlabel w1,w2,w3,w4,w5>
<Key %trigger%>
<EndTemplate>

<KeyList BroadcastList A-Z,0-9,F1-F12 except A,S,W,D,E,Q,tab>
<ApplyTemplate Broadcastkey BroadcastList>

and put all keys you want (or don't want) in the KeyList (for reference see: HKN: KeyList ('http://hotkeynet.com/ref/keylist.html') ).

(of course aou need to substitute the labels w1,w2,w3,w4,w5 with the labels you are using)

Freddie
12-11-2008, 10:29 AM
Thanks for the kind words. HotkeyNet was designed as a hotkey program, not a broadcaster, so I built a limitation into the program to protect people from certain errors -- it doesn't allow you to define shift, ctrl and alt by themselves as triggers. Therefore you can't broadcast those keys by pressing them.

I plan to remove this limitation soon. In the meantime you can define as hotkeys every combination of modifer plus main key. I'm not sure if that serves your purposes or not.

Olipc's suggestion will work fine. (I think he knows the program better than I do. ) Here's an alternative way using the built-in list "AllMainKeys."


<KeyList MyList AllMainKeys except Tab>

<Hotkey MyList; Shift MyList; Alt MyList; Ctrl MyList>
<SendLabel L1, L2, L3...>
<Key %Trigger%>
If you use that you'll need to exclude movement keys from your key list and define them separately with MovementHotkey.

olipcs
12-11-2008, 10:41 AM
Olipc's suggestion will work fine. (I think he knows the program better than I do. ) Here's an alternative way using the built-in list "AllMainKeys." no, i do not, I never knew there is a predefiend "AllMainKeys"-List!
Maybe I myself should better read the reference of KeyList, d'oh!

Freddie
12-11-2008, 10:48 AM
i do not, I never knew there is a predefiend "AllMainKeys"-List!
I knew a lot of things at the time I added them, but I forget them because I don't use the program.