1. #1

    AutoHotKey Script stops working after 2 seconds

    Hello!

    I'm running an extremely simple AHK script to remap my CapsLock key into my RightCtrl key so that I can use capslock as my VOIP push-to-talk keybind.

    Randomly when I booted up my computer today, this script works for the first like 2 seconds, and then completely stops remapping the capslock key and it reverts to normal behavior, while the script is still running.

    Here's my script in its entirety:
    Code:
    CapsLock::RCtrl
    LWin::LAlt
    Anyone have any clues why this is happening? I can't figure it out.


    (If this is in the wrong place, sorry! Not sure where this fits category wise)

  2. #2
    Deleted
    can't you just change PTT in your VOIP?

  3. #3
    Quote Originally Posted by Jonticus View Post
    can't you just change PTT in your VOIP?
    Well I want to use capslock as my PTT since its a great keybind for it and capslock is a useless button anyway.

  4. #4
    The Patient Yimereh's Avatar
    10+ Year Old Account
    Join Date
    Nov 2013
    Location
    The North where Monopoly Money reigns
    Posts
    210
    I'm no AHK expert but what about inserting your code into an infinite loop that breaks on user input. That would account for the possibility that your hotkey is being reset to default shortly after you fire it up. If that doesn't solve the problem hopefully someone else with more experience can help you diagnose the problem.
    My Partner does vegan food art @Monaco's Kitchen:
    Facebook: https://www.facebook.com/Monacos-Kit...age_fan_invite
    Instagram: https://www.instagram.com/monacoskitchen/

Posting Permissions

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