Glorious core macro pressing wrong button

i have a macro that autoclicks the left mouse button. for some reason the macro makes the mouse press the middle mouse button instead.