Hello Steve
I’m struggling to program mouse movement left - right with encoder but to move from current position (it will be click on position, then move left\right than release)
Thank you
Hello Steve
I’m struggling to program mouse movement left - right with encoder but to move from current position (it will be click on position, then move left\right than release)
Thank you
Hi and welcome to the Bome community!
Could you show me your project so far? Also open your log window, check MIDI IN and MIDI OUT and Outgoing and copy and paste what is going on. That will tell me what kind of encoder you have and what is happening.
This tutorial might also help.
Steve Caldwell
Bome Customer Care
I’m using this from the tutorial but my problem is that mouse is moving from the center of the screen i need it to move from the position that is clicked
I’m using digi 003
1: IN 1.1 Control Change on ch. 1 with CC#:10 (0x0A) and any value set “pp” to value=58
2: OUT 1.1 Mouse move to X=928 Y=540 on primary display
3: IN 1.1 Control Change on ch. 1 with CC#:10 (0x0A) and any value set “pp” to value=59
4: OUT 1.1 Mouse move to X=944 Y=540 on primary display
5: IN 1.1 Control Change on ch. 1 with CC#:10 (0x0A) and any value set “pp” to value=60
6: OUT 1.1 Mouse move to X=960 Y=540 on primary display
7: IN 1.1 Control Change on ch. 1 with CC#:10 (0x0A) and any value set “pp” to value=61
8: OUT 1.1 Mouse move to X=976 Y=540 on primary display
9: IN 1.1 Control Change on ch. 1 with CC#:10 (0x0A) and any value set “pp” to value=62
10: OUT 1.1 Mouse move to X=992 Y=540 on primary display
11: IN 1.1 Control Change on ch. 1 with CC#:10 (0x0A) and any value set “pp” to value=61
12: OUT 1.1 Mouse move to X=976 Y=540 on primary display
13: IN 1.1 Control Change on ch. 1 with CC#:10 (0x0A) and any value set “pp” to value=60
14: OUT 1.1 Mouse move to X=960 Y=540 on primary display
Hi so are you trying to drag something with the mouse or do you want to click a given position and then just move (without dragging) the mouse from that position?
Steve Caldwell
Bome Customer Care
Click a given position than drag
Here is log from whole process
301: MIDI IN [FW 003 MIDI 1(In/Out)]: B0 0E 7F
302: IN 1.5 Control Change on ch. 1 with CC#:14 (0x0E) and value:127 (0x7F)
303: OUT 1.5 Left mouse button down at 84,948 on primary display
304: MIDI IN [FW 003 MIDI 1(In/Out)]: B0 0A 3A
305: IN 1.1 Control Change on ch. 1 with CC#:10 (0x0A) and any value set “pp” to value=58
306: OUT 1.1 Mouse move to X=928 Y=540 on primary display
307: MIDI IN [FW 003 MIDI 1(In/Out)]: B0 0A 3B
308: IN 1.1 Control Change on ch. 1 with CC#:10 (0x0A) and any value set “pp” to value=59
309: OUT 1.1 Mouse move to X=944 Y=540 on primary display
310: MIDI IN [FW 003 MIDI 1(In/Out)]: B0 0A 3C
311: IN 1.1 Control Change on ch. 1 with CC#:10 (0x0A) and any value set “pp” to value=60
312: OUT 1.1 Mouse move to X=960 Y=540 on primary display
313: MIDI IN [FW 003 MIDI 1(In/Out)]: B0 0A 3D
314: IN 1.1 Control Change on ch. 1 with CC#:10 (0x0A) and any value set “pp” to value=61
315: OUT 1.1 Mouse move to X=976 Y=540 on primary display
316: MIDI IN [FW 003 MIDI 1(In/Out)]: B0 0A 3E
317: IN 1.1 Control Change on ch. 1 with CC#:10 (0x0A) and any value set “pp” to value=62
318: OUT 1.1 Mouse move to X=992 Y=540 on primary display
319: MIDI IN [FW 003 MIDI 1(In/Out)]: B0 0A 3D
320: IN 1.1 Control Change on ch. 1 with CC#:10 (0x0A) and any value set “pp” to value=61
321: OUT 1.1 Mouse move to X=976 Y=540 on primary display
322: MIDI IN [FW 003 MIDI 1(In/Out)]: B0 0A 3C
323: IN 1.1 Control Change on ch. 1 with CC#:10 (0x0A) and any value set “pp” to value=60
324: OUT 1.1 Mouse move to X=960 Y=540 on primary display
325: MIDI IN [FW 003 MIDI 1(In/Out)]: B0 0A 3B
326: IN 1.1 Control Change on ch. 1 with CC#:10 (0x0A) and any value set “pp” to value=59
327: OUT 1.1 Mouse move to X=944 Y=540 on primary display
328: MIDI IN [FW 003 MIDI 1(In/Out)]: B0 0A 3A
329: IN 1.1 Control Change on ch. 1 with CC#:10 (0x0A) and any value set “pp” to value=58
330: OUT 1.1 Mouse move to X=928 Y=540 on primary display
331: MIDI IN [FW 003 MIDI 1(In/Out)]: B0 0A 39
332: IN 1.1 Control Change on ch. 1 with CC#:10 (0x0A) and any value set “pp” to value=57
333: OUT 1.1 Mouse move to X=912 Y=540 on primary display
334: MIDI IN [FW 003 MIDI 1(In/Out)]: B0 0A 38
335: IN 1.1 Control Change on ch. 1 with CC#:10 (0x0A) and any value set “pp” to value=56
336: OUT 1.1 Mouse move to X=896 Y=540 on primary display
337: MIDI IN [FW 003 MIDI 1(In/Out)]: B0 0E 00
338: IN 1.0 Control Change on ch. 1 with CC#:14 (0x0E) and value:0 (0x00)
339: OUT 1.0 Left mouse button up at 896,540 on primary display
OK , please see the attached.
The translators in the ‘Init’ preset handle setting the values of the global variables used in this project.
Translator 1.0 sets a 1 second watchdog timer. This timer will handle the click release of the mouse when you stop moving the knob for more than 1 second
Translator 1.1 clicks down on the mouse at the current position (but not click up) to get ready for the drag operation
Translator 1.2 actually drags the mouse. Since we are using an absolute encoder, we need to calculate the amount of CC movement since it was touched last. We store the last known position in the global variable gc.
Translator 1.3 is the watchdog timer and fires when you stop moving the knob. It sends the click up message.
Translator 1.5 allows you to push and hold a button to center the knob. Other translators do nothing when the centering happens. This is because an absolute encoder has hard stops at values 0 and 127. The idea is to push the button, then move the knob to the center position, then release the button (translator 1.6) to recalibrate the knob.
There are a lot of rules here and interaction between translators so I suggest you spend some time studying how it all works.
I’m also renaming the title to more accurately reflect the request.
Mouse-Drag-2025-03-25.bmtp (4.7 KB)
Steve Caldwell
Bome Customer Care