Autohotkey script that disables Back mouse button

Discussion in 'Card Hunter General Chat' started by Aiven, Sep 30, 2013.

  1. Aiven

    Aiven Orc Soldier

    I just made this little script that disables the Back and Forward buttons on my mouse, when I play Card Hunter. Even though I rarely hit those, when I did, the browser would go back and I would lose my current game. I have no idea if there is any interest in this, but I'm just throwing it out there anyway.


    How it works:
    1. Run the script.
    2. Now whenever you are playing Card Hunter, your Back and Forward mouse buttons are disabled.


    Code:
    #NoEnv   
    #SingleInstance force
    SendMode Input
    SetWorkingDir %A_ScriptDir%
     
    ScrollLock::
    Suspend
    Send {ScrollLock}
    Return
    ^!F9::ExitApp
     
    #IfWinActive, Card Hunter
    Xbutton1::Return
    Xbutton2::Return
    I have also compiled the script into an exe file for people that don't already use Autohotkey. It is attached as a zip file.
     

    Attached Files:

  2. karadoc

    karadoc Hydra

    Thankfully my mouse doesn't have fancy buttons like that. :p

    For for people who do have such buttons, I'd highly recommend using something like this.
     
  3. Unlucky Scarecrow

    Unlucky Scarecrow Goblin Champion

    I just open up a fresh browser tab and put the server's URL in there. (I have it bookmarked so I just have to click.) Pretty simple solution and doesn't require a macro.
     
    Aiven and kogi like this.

Share This Page