pressed = IsMidMouse()
True
if the middle mouse button is currently
pressed, otherwise False
.
Repeat Wait(1) Until IsMidMouse() = TrueThe above code waits until the middle mouse button is pressed. (you can have that easier by using WaitMidMouse(); the one above is only useful if you want to do something while the mouse button is not pressed)