click left mouse button

gutschein

2014-04-01 11:15:49

Hi all,

I've now bought me last year, the Yamaha P121 SH.
Super piano.


Question: Since I reluctantly take your hands off the keyboard (especially if the children practice) I wanted to show the start button with the right piano pedal.



Could it work with it?

When I press the right Pedal I get this code
Status: B0,Key: 43, Velocity: 7F

When I left the right Pedal, I get this code
Status: B0,Key: 43, Velocity: 00

How can I enable the START button(From Piano Tutor in Scripte/Training) with the right pedal

My Idee:

I put the mouse over the Start button.
I press the left piano pedal

problem
I needed the command to "click left mouse button"
Then I could turn this button on always on the left pedal

I would be very grateful if you could help me wide.

Thank you very much
frank
Attachments
midi12.JPG
midi12.JPG (54.93 KiB) Viewed 5044 times

DvlsAdvct

2014-04-01 23:03:46

Hi Frank

What you want to do is totally doable. You need to use Mouse Movement commands as your outgoing action. To be clear, though, since I don't want to assume, when you press the Right pedal your signal is:

B0 42 7F

and when you press the LEFT pedal your signal is

B0 43 00

I just want to be 100% clear. You want to trigger Start when you press the LEFT pedal, not the RIGHT one, correct? Do you also want to select the Stop button, or only the start button?

gutschein

2014-04-02 12:12:10

Hi,
many thanks for the help.

Sorry for my bad Englisch. I mean only the LEFT Piano Pedal

The left pedal (soft pedal) is pressed.
The left pedal will then make the left mouse click
The mouse is above the OK button.

The left Pedal thus beätätigt the OK button.

What command would the left mouse click (Outgoing F8)
"Key Stork Emulation" and "Key press of Sequnez"

System: Windows 7 32 Bit

alternative

Pressing the left pedal pressed STOP button B0 42 7F
Releasing the left pedal pressed START button B0 43 00

Thank you very much
Frank

DvlsAdvct

2014-04-02 15:26:16

Not a problem at all.

So if you want to use a left mouse click you need to set up two different translators. One will position the mouse over the OK button and another to click with the mouse. You mention F8, is that the keystroke for OK as well? It would be much easier to just use that.

But if you want to use the mouse you are going to have to find the position of the button, mainly through trial and error. You want to use the ABS Position command and play with the X and Y values until you have the pointer over the OK button. Please note, this only works if the OK button will always be the same place on your screen every time.

Code: Select all

Translator 1: OK Position
Incoming Message: B0 42 7F
Rules: None
Outgoing Message: Mouse: Abs Position
And then we need a click command so the mouse clicks on the button. We are going to add a slight delay in milliseconds so the mouse can reach the button before the click occurs.

Code: Select all

Translator 2: OK Click
Incoming Message: B0 42 7F
Rules: None
Outgoing Message: Mouse: Button Click Left 2ms Delay
And that should do it.

Let me know if that works
Jared

gutschein

2014-04-02 16:56:25

Thanks for the help.
Unfortunately, there is for the OK button, no keyboard shortcut.

Question: Where do I enter the commands?
What is the syntax for the mouse position?

A small example or picture would be great

I use Bome's Midi Translator Classic

Thank you very much
Frank

DvlsAdvct

2014-04-02 17:10:39

Ah, well, that'll do it.

MIDI Translator Classic only processes MIDI messages, you cannot process Mouse messages. The only way to access Mouse messages is with MIDI Translator Pro.

If the OK button could receive a MIDI message or a keystroke Classic would be appropriate.

Thanks
Jared

gutschein

2014-04-02 17:38:54

Many thanks

It almost works.

Each time you press the left pedal the cursor moves down.
He does not jump to a point, but wander down

gutschein

2014-04-02 17:43:46

It Works i find the Setting

Many many thanks

DvlsAdvct

2014-04-02 17:45:15

Excellent. If you have any other questions don't hesitate to ask.

gutschein

2014-04-02 18:56:53

Thank you.
Let's see what else I can need everything.
There arise new possibilities

gutschein

2014-04-03 21:53:19

Hello,

I have a question.

In Harmony Assistant, there is the script "Learning Notes on Piano"
I click on a note in a bar.
From this note, my pianoplay is then monitored.
If I want to start the exercise again, I have to click again on the location from which I want to start.

problem:
I try clicking on bar 6 Or times on bar 16.
So do not ever in the same place (like the OK button)

question:
Can "Bome's Midi Translator Pro" Remember the current point where the mouse is.
So I then only can make the left click "with the left pedal?


If so, how?

Thank you very much



In German
Hallo,

eine Frage habe ich noch.
In HarmonyAssistant gibt es das Script "Learning Notes on Piano"
Ich klicke auf eine Note.
Ab dieser Note wird dann mein Spiel überwacht.
Wenn ich die Übung neu starten will, muss ich wieder auf die Stelle klicken, ab der ich beginnen möchte.

Problem:
Ich klicke mal auf Takt 6. Oder mal Auf Takt 16.
Also nicht immer auf die gleiche Stelle (wie beim OK-Button)

Frage:
Kann sich "Bome's Midi Translator Pro" den aktuellen Punkt merken, wo die Maus steht.
So dass ich dann mit dem Linken Pedal nur den linken Mausklick" machen kann?

Wenn ja wie?

Vielen Dank
Attachments
learninig.png
learninig.png (166.99 KiB) Viewed 5005 times

DvlsAdvct

2014-04-03 22:09:45

Hi again gutschein

Unfortunately, as of now, MT can't receive a current mouse position, though it is a feature that will hopefully be implemented.

Thanks
Jared

gutschein

2014-04-04 11:12:31

Hi,

but it works.
I gave the digit 0 for X and Y.

Thank you very much