seanfisk / diablo2-autohotkey-lib

AutoHotkey macro library for Diablo II: Lord of Destruction
13 stars 7 forks source link

Right-click fix #74

Open eskoONE opened 6 years ago

eskoONE commented 6 years ago

is there a way to only use the right-click fix? ive looked through the code but the lines i found cant be used only in ahk? i dont know how to code so may have found the wrong lines.

; Perform a right-click while keeping the left mouse button down.
    ;
    ; Diablo II has an annoying behavior whereby right-clicking causes the left mouse button not to be
    ; considered as held down. This function fixes that behavior.
    ;
    ; You can enable this fix globally in your own configuration with:
    ;
    ;     RButton::Diablo2_RightClick()
    ;
    RightClick() {
        LBRestore := new this._LButtonRestore()
        ; The game won't allow the RButton hold action (e.g., repeatedly activating a skill) to happen
        ; if the LButton is down.
        ;
        ; For some reason, this works far more reliably if {RButton down} comes before {LButton up}.
        this.Send("{RButton down}{LButton up}")
        KeyWait, RButton
        this.Send("{RButton up}")
    }

how can u make use solely of this?

eskoONE commented 6 years ago

with akh only. forgot to mention that.