Welcome to the Rise of Agon Community

Create an account today to engage in discussions and community events on the Rise of Agon forums.

Cant bind mouse4 & 5 ingame, need AHK help

Discussion in 'General Discussion' started by pronax, May 16, 2017.

  1. pronax

    pronax New Member
    Hero

    Joined:
    Aug 28, 2015
    Messages:
    9
    Likes Received:
    3
    I was not sure as to what subforum to post this in, but here it goes.

    I cant bind mouse4 & 5 ingame for some reason, and it's also not possible to bin d mwheelup / mwheeldown (im not as suprised with that tho)

    The mice im using is from a swedish company called teknikmagasinet, and the mice is (Arachnid Maratus) im not sure if that has anything to do with it.

    I have found one possible workaround if i change in the drivers of the mice so that mosue4 is assigned to a letter instead of "IE forward" but the problem with that is that i will have to change it every time i want to play another game.

    So my question is if anyone know any other workaround that is easy to do, or if someone can write a AHK script for me that will assign mouse4 & 5 to the letters "K" & "L" and so that it only works when the darkfall window is in focus.

    Appreciate any help!
     
    RootedOak likes this.
  2. brahji

    brahji Black Knight
    Legend

    Joined:
    Sep 28, 2015
    Messages:
    1,120
    Likes Received:
    815
    Easy script to write, I'm sure someone will do that for you pretty quickly.
     
    Collapse Signature Expand Signature
  3. dragula

    dragula Gravelord
    Legend

    Joined:
    Aug 28, 2015
    Messages:
    239
    Likes Received:
    216
    Something like this I think, where the "k" key is the in game bind you're trying to map to.

    #IfWinActive Darkfall: Rise of Agon
    #NoEnv

    ;Disables keybinds if mouse cursor is active
    isMouseShown()
    {
    StructSize := A_PtrSize + 16
    VarSetCapacity(InfoStruct, StructSize)
    NumPut(StructSize, InfoStruct)
    DllCall("GetCursorInfo", UInt, &InfoStruct)
    Result := NumGet(InfoStruct, 8)
    if Result
    return 1
    else
    return 0
    }

    #If !isMouseShown() and WinActive("Darkfall: Rise of Agon")
    ~Wheelup::
    send {k}
    Return
     
    Collapse Signature Expand Signature
  4. pronax

    pronax New Member
    Hero

    Joined:
    Aug 28, 2015
    Messages:
    9
    Likes Received:
    3
    Thank you, will see if I can get it to work, but this seems to be what I needed!
    --- Post updated ---
    The script that got posted above in this thread worked perfectly for anyone that have the same problem, but to bind mouse4 & 5 you would have to add something like this to the script:

    ~Xbutton1::
    send {k}
    Return

    ~Xbutton2::
    send {l}
    Return