Hi… is it possible to do that? how?
i got different translators that has same MIDI source, n i set outgoing to mouse click. but the mouse click has different position. n they are non injection support, so i must set the position first.
my goal is with one click/translator i csn do different mouse click in a different position wich has a controlable time interval between them. how can i achieved it? thanks in advance
Hi,
Yes this is possible. Please see the attached sameple
The first translator received the incoming note and in rules, picks the first mouse click location in global
variables ga and gb. It then starts a repeating timer with a 500ms delay between repeats (global variable gc) and a count of 2 (gd)
The second translator looks at the count. For the first iteration it just sets the x, y location from the first translator but then on the last iteration sets it for the second mouse location.
To modify for your needs set the variables ga and gb to the locations you want in the rules of both translators.
Timed-Mouse-Click-with on input-2021-01-17.bmtp (1.5 KB)
Steve Caldwell
Bome Customer Care
Also available for paid consulting services: bome@sniz.biz
great… i shall try it tonight. thanks
it did 2 different position mouse click in one button push… does timer can read changing respon on active window after the translator executed?
MT Pro does not know where it is, you have to tell it where to go when done. You would probably need to program a mouse move to the place that you want it to go after the clicks.
Steve Caldwell
Bome Customer Care
Also available for paid consulting services: bome@sniz.biz
Hi Steve
Thank you very much for this one, I have a question I need to set this for 4 different midi would you please advice as when I set secound one the first one does the secound too Thank you
Hi and welcome to the Bome community!
Please find the attached.
Translator 0.0 (preset 0 translator 0) handles the input trigger. The rules establish the global variables used.
The counter is set to 0 (gd) to set the current sequence number.
// ga and gb are mouse click positions
// ga=x and gb=y
// delay between clicks (in ms)
gc=500
// click counter
gd=0
// how many clicks
ge=2
This triggers the timer (Translator 0.1) which looks at the click counter variable gd and based on that variable sets the desired x and y click locations (ga and gb).
It then increments the counter (gd) for the next iteration.
// First Click Location
// set new x
if gd==0 then ga=100
// set new y
if gd==0 then gb=100
// Second Click Location
// set new x
if gd==1 then ga=200
// set new y
if gd==1 then gb=100
Log "Log gd=%gd% Click Mouse at %ga%, %gb%"
gd=gd+1
Timed-Mouse-Click-with on input-2025-11-17.bmtp (1.7 KB)
Steve Caldwell
Bome Customer Care
Also available for paid consulting services: bome@sniz.biz
2 posts were split to a new topic: MIDI Button (note) to mouse click at various coordinates
A post was merged into an existing topic: MIDI Button (note) to mouse click at various coordinates