Jump to content
Dante Unbound: Share Bug Reports and Feedback Here! ×
  • 0

Is this kind of macro allowed?


Arcon
 Share

Question

My mouse offers me to set macros on it. On my old keyboard i wore out the e key from spamming melee as its all i used to use. Am i allowed to enable a macro on my mouse to spam the melee button?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

provided the macro is built so it autofires WHILE holding a button it is fine, what is not allowed is /afk macros, as in a macro that toggles on an autofire so you melee attack without any user input, provided you are pressing or holding a key and providing input, your macro can indeed do as you want.

BELOW ARE 2 EXAMPLES OF AUTOHOTKEY MACROS FOR MELEE, 1 GOOD, 1 BAD.

BAD MACRO THAT AUTOMATES MELEE ON MIDDLEMOUSE TOGGLE - NOT ALLOWED DUE TO AUTOMATION

Quote

#InstallKeybdHook
SetTitleMatchMode, 1
SetKeyDelay 10
SetMouseDelay,-1
toggle=0

SetTimer, Toggler, 50

MButton::toggle := !toggle

Toggler:
    if (toggle = true)
        MouseClick, Left
    else
Return


GOOD MACRO THAT ONLY MELEE AUTOFIRES WHILE MIDDLEMOUSE IS HELD = GOOD MACRO

Quote

#InstallKeybdHook
SetTitleMatchMode, 1
SetKeyDelay 10
SetMouseDelay,-1

MButton::
    While GetKeyState("MButton", "P"){
        MouseClick, Left
    }
return

 

Edited by Methanoid
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...