Close
Showing results 1 to 6 of 6
  1. #1

    Default Trouble mapping the keyboard

    Hi,

    I am trying HKN as an alternative to Keyclone (mainly for mouse broadcasting reasons, as Keyclone is kinda slow at the moment).

    I could set up the entire thing quick easily thanks to the guides I found on this and HKN websites. I have a problem with key mapping though. Here it is :

    I am using an AZERTY keyboard. The slash key "/" is obtained by pressing Shift+":" on such keyboards. When typing Shift+":", I do obtain a slash on my active wow window, but on the background windows I only get a ":". Though I could probably get through it by remapping my entire keybindings, I wondered if anybody had experienced the same problem.

    Here is the script I use :

    <KeyList MyList A-Z, 0-9, numpad0-numpad9, Enter, Tab, Space, Backspace, Esc, oem1-oem8 except K, z, q, s, d, up, down, left, right>

    <Hotkey MyList; Shift MyList; Alt MyList; Ctrl MyList>

    <SendLabel w1, w2, w3, w4, w5>
    <Key %Trigger%>
    Note : For whatever reason, I can seem to get AllMainKeys to work properly to replace all the things before "except". I just generates errors saying "Disregarding empty hotkey"

    Any clues ?

    Thanks in advance
    Nyth

  2. #2

    Default RE: Trouble mapping the keyboard

    Quote Originally Posted by 'Nyth',index.php?page=Thread&postID=171335#post171 335
    I am using an AZERTY keyboard. The slash key "/" is obtained by pressing Shift+":" on such keyboards. When typing Shift+":", I do obtain a slash on my active wow window, but on the background windows I only get a ":".
    I apologize for this. Shifted characters don't send properly to background windows. This is one of the unfinished things in the program. However there's a work around.

    By the way all the unfinished stuff and known bugs are listed under "Bugs" on the main menu at the top of every web page on HotkeyNet's site. This problem is also mentioned under "limitations" on many of the pages about sending to background windows.

    The work around is to use SendWinS instead of SendWinM when you want to send a shifted character to a background window. In other words, you make a special label for just that one character with SendWinS. Then write the hotkey for that character separately with that label. (You can have as many separate <Hotkey> definitions as you want as long as you don't repeat any trigger combinations.)

    Note : For whatever reason, I can seem to get AllMainKeys to work properly to replace all the things before "except". I just generates errors saying "Disregarding empty hotkey"
    Can you paste the definition that's not working? "Disregarding empty hotkey" means that the definition doesn't tell HotkeyNet to perform any actions.... HotkeyNet is warning you that pressing the trigger won't do anything.
    �Author of HotkeyNet and Mojo

  3. #3

    Default

    Hey Freddie,

    Thanks for the quick reply! If I understand you correctly, fot the slash key that would mean a code similar to this, am I right ? :
    <Label w1s Local SendWinS WoW1>

    <hotkey "key">
    <SendLabel w1s>
    <Key %Trigger%>
    Just to make sure... the "key" should be ":" (unshifted press of the key) or "/" (shifted state of the key) ? I guess the latter but I just want to make sure I got the code correctly.

    As for the question with AllMainKeys, if I remember well (not in front of the wow computer at the moment), it was something like this :

    <Hotkey AllMainKeys; shift AllMainKeys; Ctrl AllMainKeys>

    <SendLabel w1, w2, w3, w4, w5>
    <Key %Trigger%>
    But, that is a secondary problem, as long as I can use shifted keys, I am happy.

    Cheers,
    Nyth

  4. #4

    Default

    Just to make sure... the "key" should be ":" (unshifted press of the key) or "/" (shifted state of the key) ?
    You've got it right except for this. You have to use the name of the key. The name of the key is different from the characters generated by the key. The name depends on your keyboard layout and the language setting of your operating system, so I can't tell it to you. HotkeyNet will show you the name on your PC if you press the key while looking in the upper right corner of HotkeyNet's screen. With most keys on most keyboards, the name stays the same whether shift is held down or not. You have to try on your keyboard and see.

    <Hotkey AllMainKeys; shift AllMainKeys; Ctrl AllMainKeys>
    <SendLabel w1, w2, w3, w4, w5>
    <Key %Trigger%>
    That looks fine. But you said "except" was involved somehow? Maybe you should paste your whole script here so I can see what's wrong and/or try it myself if necessary.
    �Author of HotkeyNet and Mojo

  5. #5

    Default

    Hmm, Unfortunately I can't get it right with the "/" at the moment. the ":" (normal) "/" (shifted) key is called oem2 on my computer (checked with HKN).

    So following your advice (the way I understood it), I tried :
    <Label w1s Local SendWinS Wow1>

    <hotkey Shift Oem2>
    <SendLabel w1s>
    <Key %Trigger%>
    Is that supposed to work ? or is there anything I am doing wrong here ?

    Note : I have the "Oem2" key removed from the general list using "except" and HKN doesn't show any errors when loading the script.

    As for the AllMainKeys, I was wondering. Could it be because some keys are already used higher in the script such as F1-F5 for PiP, and it would block the whole list because it generates errors on these keys ?

    Thanks in advance for your patience
    Nyth

  6. #6

    Default

    Quote Originally Posted by 'Nyth',index.php?page=Thread&postID=172017#post172 017
    Hmm, Unfortunately I can't get it right with the "/" at the moment. the ":" (normal) "/" (shifted) key is called oem2 on my computer (checked with HKN).

    So following your advice (the way I understood it), I tried :
    <Label w1s Local SendWinS Wow1>

    <hotkey Shift Oem2>
    <SendLabel w1s>
    <Key %Trigger%>
    Is that supposed to work ? or is there anything I am doing wrong here ?
    This is a correct script but that doesn't mean it will do what you want on this particular PC or with this particular target application. This stuff is very dependent on the PC's keyboard and bios and keyboard settings, and on the application you're sending keystrokes to.

    So we need to do a little detective work. There are two ways the keystrokes are used: (1) as the trigger (the keys you press with your fingers) and (2) as the output (the data that gets injected into the target application). Let's check them one at a time.

    When you press the key combination, does the hotkey get triggered? You can tell my looking at HotkeyNet's screen and seeing whether it reacts. It should show <Hotkey Shift Oem2> in the upper left.

    Second thing, the output. Press Shift Oem2 and look at HotkeyNet's main window. What messages does it display about this command?

    Third thing. What is Shift Oem2 bound to in WoW?

    As for the AllMainKeys, I was wondering. Could it be because some keys are already used higher in the script such as F1-F5 for PiP, and it would block the whole list because it generates errors on these keys ?
    I still don't understand what the problem is. In other words, I don't understand why you're asking for help with this. I don't know what error you're seeing or what isn't working. Can you post or email me the script?

    Thanks in advance for your patience
    This is nothing! You should see some of the threads I've been through with HotkeyNet!
    �Author of HotkeyNet and Mojo

Similar Threads

  1. xkey2 not mapping =/
    By nemisis in forum New Multi-Boxers & Support
    Replies: 1
    Last Post: 01-06-2009, 03:16 AM
  2. key mapping confused.. :(
    By welwyn in forum Software Tools
    Replies: 1
    Last Post: 11-19-2008, 10:21 PM
  3. Mouse-mapping Problem
    By dontBPETTY in forum Software Tools
    Replies: 2
    Last Post: 05-18-2008, 11:41 PM
  4. Key Mapping - Apologies if this is already widely known
    By Draku in forum General WoW Discussion
    Replies: 14
    Last Post: 03-20-2008, 02:35 PM

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •