Double Right Mouse Click

I have an operation that requires me to finish a drawing with a double right mouse click. How would you recommend that I script such a command?

put the remoteWorkInterval into RWI
set the remoteWorkInterval to .01 // shorten the time between actions
rightClick "someImage" // assuming you need to click in a particular location
rightClick // just right click again without looking for an image
set the remoteWorkInterval to RWI // restore the starting value

Perfect! Thank you

One more question.

How would I do a right mouse click drag and drop?

That’s not a common action, so there’s no built-in command to do it specifically, but you can do it with several commands:

moveTo "thingToDrag"
mouseButtonDown 3
moveTo "placeToDrop"
mouseButtonUp 3