Presses the left mouse button

there is a command that instead of just clicking it presses the left mouse button for a while

You can achieve this with the XMove command:

  • XMove | x,y | #down
  • Pause | 5000
  • XMove | x,y | #up