• 3 Posts
  • 40 Comments
Joined 1 year ago
cake
Cake day: July 5th, 2023

help-circle









  • Your idea to use AHK script is probably the best and least intrusive. You sit down, run the script, whatever you need can be in it, you can actually really tune your input experience with some AutoHotKey magic. I catch myself adding a few more lines every year as new ideas come.

    Just remember to unload the script when you are ending your work and the next person won’t even know about it.




  • Okay, so make a script, name it whatever you feel like and paste this:

    ; The keyboard hook must be installed.
    InstallKeybdHook
    SendSuppressedKeyUp(key) {
        DllCall("keybd_event"
            , "char", GetKeyVK(key)
            , "char", GetKeySC(key)
            , "uint", KEYEVENTF_KEYUP := 0x2
            , "uptr", KEY_BLOCK_THIS := 0xFFC3D450)
    }
    
    ; Disable Alt+key shortcuts for the IME.
    ~LAlt::SendSuppressedKeyUp "LAlt"
    
    ; Test hotkey:
    !CapsLock::MsgBox A_ThisHotkey
    
    ; Remap CapsLock to LCtrl in a way compatible with IME.
    *CapsLock::
    {
        Send "{Blind}{LCtrl DownR}"
        SendSuppressedKeyUp "LCtrl"
    }
    *CapsLock up::
    {
        Send "{Blind}{LCtrl Up}"
    } 
    

    Save it, run it and you should be good to go.

    edit: This is V2, just in case.




  • For me it always just felt very close to “I am here” / “I am done” / “I am late” / “I am fine” — not as description of a place but state.

    All the quirks, weirdnesses and exceptions are the best / most fun parts of any language. Close second, how it constantly evolves and where the words originated from.




  • Yeah, got this page opened in my browser already, just for the v2. I will definitely play with that and do some testing on what can be achieved with all that.

    I still have no clue why I didn’t even consider AHK as a solution or at least a partial solution when it was the solution so many times before already…


  • Why… Why I haven’t thought about that…

    Thank You! I am using my AHK script for so many different things already but I have never thought that I even could map controller inputs to do anything there… When I was rewriting things from v1 to v2 and tidying everything up, I was reading the wiki a lot but not even once saw controller mapping as an option.

    Or maybe I just don’t remember?

    I always knew AHK was really versatile but it just keeps on coming with yet another pleasant surprise! Plenty of reading ahead of me!


  • I appreciated your message, like everyone else’s here. It’s still amazing for me that I have my tiny, contrived idea of what I need, a whim, or a problem (that doesn’t exist) on a level of “duh, this button and color scheme doesn’t represent my spirit animal well enough”, and yet — there are people willing to put an effort and their time into replying, sharing their ideas / knowledge with me…

    With Steam Input I once had such a twisted situation — circus would be the word to describe it best. It just somehow stopped working after my Windows updated once and made all my USB ports unusable so I had no input at all… and simultaneously in Safe Mode Steam didn’t want to start — so I just couldn’t untick that hellish option, deleting steam made things even worse, it was my second bluescreen on W10 since installation. Luckily some registry magic did the trick and I am never again touching the Steam Input.

    I will probably continue using and one day get used to Kodi, but it won’t stop me from searching for a player or something that will have the closest functionality to what I am looking for.