You are skipping parameters that are not optional, and you are not specifying relative movement. When reading the documentation for a command or function, only the parameters enclosed in
[ ] are optional. It also seems you are trying to drag 150 pixels to the right instead of 50 pixels to the left like you stated. Here is how you drag 50 pixels to the left:
Code: Select all
MouseClickDrag, L, 0, 0, -50, 0,, R
What the above does is drag from a point 0,0 to a point -50,0 in a relative fashion. As an alternative that accomplishes the same thing (dragging 50 pixels to the left in a relative fashion):
Code: Select all
MouseClickDrag, L, 50, 0, 0, 0,, R
In this case, it drags from a point 50,0 to 0,0 in a relative fashion, which also is 50 pixels to the left.
I haven’t tested it, so perhaps leaving a coordinate parameter blank is the same as specifying 0 for this command, but you should get into the habit of always putting something in a parameter that is not optional.