Timer mouse click

hi… how many repeat count dods allowed for one click two different mouse click in different position?

in other wotds how can i get three different position moude click with just on click? thanks

one trigger click i meant

You can have a repeating timer that clicks the mouse any number if times and set it up so it clicks at a different location for every iteration.

Typically you set a counter to see what iteration you are at and then use that to determine the next click location

Incoming: Note on MIDI CH 0 note 0 any value
Rules : gc=20
Outgoing: Click TImer 20 times initial delay 10 ms repeat delay 10 ms

Incoming : Click timer
Rules:
pp=gc
gc=gc-1
// x position
if pp==20 then qq=10
if pp==19 then qq=20

// y position
if pp=20 then tt=20
if pp=19 then tt=10

Outgoing: Mouse click at x position y positin tt

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz

wow… i can hav more than 2 different click position then?
i sll got something to do right noe steve,…but for sure I will try it later.
whats pp refers to?thaks

pp and tt are local variables you can use within the translator. to specify the storage for values you want to use. There are 10 local variables available per translator
oo pp qq rr ss tt uu vv ww xx

There are 360 global variables that can be shared between translators
ga-gz g0-g9 ha-hz h0-h9 … za-zz z0-z9

This is all called out in the user manual. (Help menu or F1 from within MT Pro)

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz
1 Like

works great…thanks mate

FYI…i try to use local var yy and zz…and ts work.thanks

Pardon my understanding…accodring to ur statement above so i can use same local var as long as they in different translator right?

There are only 10 local variables oo through xx. Every thing else is global.

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz

Local variables can be re-used but they are common to any translator with the same incoming trigger so. This can sometimes be used to your advantage making some things “semi-private”. For the most part, however consider them private. I seldom run into name collisions due to this little understood fact.

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz

i see… so i has to different translator and different trigger source right?

You are correct.

They are local to the incoming trigger.