Autohotkey - Use SC value to find appropriate key in SharpKeys?


  1. Posts : 11
    Windows 10
       #1

    Autohotkey - Use SC value to find appropriate key in SharpKeys?


    Can you? I have the SC value (056) for a key on my keyboard that should be where right ctrl should be. Is it possible to find the value in SharpKeys using that SC value?

    I just bought this OMEN 15-dc0020ca and not only did they do away with the Home key, but they also got rid of the right crtl. It appears it's impossible to remap the "OMEN" key back to Home, so I've been trying to compromise. It's really sad that I've had to remap the numpad forward slash key, but what do you do? Use fn+"OMEN"? Yea, right... But now there's this extra vertical line/backslash key next to alt and I need it to be useful as right ctrl.

    Thank you for your help, TenForums.
      My Computer

  2. dalchina's Avatar
    Posts : 31,391
    Win 10 Pro (1903)
       #2

    Hi, not sure what you're asking (e.g. 1st sentence has 2x "should be"...

    If you wish to assign a scan code to a key which is presently Rt Ctrl, I think you may be able to do that with Autohotkey:

    Rctrl::SC056

    Autohotkey - Use SC value to find appropriate key in SharpKeys?-1.jpg

    SC<scancode> is documented- but not as shown above:
    Autohotkey - Use SC value to find appropriate key in SharpKeys?-1.jpg

    I've not tried it...

    The problem with Keytweak and Sharpkeys is they won't allow input of a scan code.
      My Computers


  3. Posts : 11
    Windows 10
    Thread Starter
       #3

    Yea, that's basically what I've trying to figure out. If a specific key has a scan code in one program, it must be possible to compare that to the values in SharpKeys to locate the same one. Like, for example, you have: Autohotkey - Use SC value to find appropriate key in SharpKeys?-key-values-sharpkeys.jpg

    That has all those fancy number-letter combos in there and they seem specific to each key. If Autohotkey can discriminate between one key and another, wouldn't it then be possible to have a chart depicting the corresponding values? Go from what those things in SharpKeys are called to the scan code recognized in Autohotkey. You know, I can't be the first person to think of this! haha

    Yesterday I tried every single one of the "unknown" keys in SharpKeys to try to remap my "OMEN" key back to home. The most I was able to learn was that Autohotkey doesn't have a scan code for it. Luckily, the key next to right alt does.

    ... I can't help but wonder if it would help other users if I made a chart for the SC and their values seen in SharpKeys. Like if it's a universal thing, then that would save people some whole quack of time!

    Autohotkey - Use SC value to find appropriate key in SharpKeys?-key-values-sharpkeys.png
    some SC shown by the keyhook script

    Oh, and a pretty neat thing I saw when I was playing around with KeyTweak and SharpKeys: they would show the same alterations in their UIs; which is no surprise, but apparently you could make a chart showing the correlating keys between all three programs, if you wanted! After all, KeyTweak uses # values on the keys instead of what identifiers are used in the other two programs.
      My Computer

  4. dalchina's Avatar
    Posts : 31,391
    Win 10 Pro (1903)
       #4

    Another key with no scan code is Fn as you probably know, so I imagine Omen is similarly hardware and non-mappable. Easy to check for absence of code using e.g. Type Key in Sharpkeys

    As you have Autohotkey you can try the syntax I've given as an experiment, if that's what you're trying to do.
      My Computers


  5. Posts : 11
    Windows 10
    Thread Starter
       #5

    ah Sorry. The AHK script doesn't change its behavior. I also just tried all the unknown keys in SharpKeys in a similar fashion to the OMEN key. Thanks for the help, dalchina. I guess I'm off to learn how to add my own keys to SharpKeys. I, honestly, figured the AHK script would work, being that it has an SC and everything. All well.
      My Computer

  6. dalchina's Avatar
    Posts : 31,391
    Win 10 Pro (1903)
       #6

    I wasn't sure if that syntax would work, noting the stated restriction about use of SCnnn, hence my hesitation.

    You could try the Autohotkey forum, unless you can find another keyboard tweak tool..
      My Computers


  7. Posts : 11
    Windows 10
    Thread Starter
       #7

    Hey! So, I learnt that there's an incredibly conspicuous "Type Key" button in SharpKeys you can press! All this time I thought it was letting me know the keys listed were types of keys! Nope. It's an actual button! Life is so easy now! I can use the right control button again!
      My Computer

  8. dalchina's Avatar
    Posts : 31,391
    Win 10 Pro (1903)
       #8

    Yes - mentioned in my #4. Sounds as if you've found a solution- good.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:23.
Find Us




Windows 10 Forums