Try this:
Local $mousePos = MouseGetPos()
Local $maxX = REPLACE_WITH_MAX_X_VALUE
For $x = $mousePos[0] To $maxX Step 80
MouseClick($MOUSE_CLICK_RIGHT, $x, $mousePos[1], 1)
Sleep(4000)
MouseClick($MOUSE_CLICK_LEFT, $x + 20, $mousePos[1] + 20, 1)
Sleep(4000)
Next
And, if you don't know where the max X will be (because maybe your window might move), you can use:
; WinGetPos returns a 4x array, where
; [0] = the X of the upper-left corner of the window
; [1] = the Y of the upper-left corner of the window
; [2] = the width of the window
; [3] = the height of the window
Local $windowRect = WinGetPos("INSERT_TITLE_OF_WINDOW_HERE")
Local $maxX = $windowRect[0] + $windowRect[2]