Download MetaTrader 5
To add comments, please log in or register
What is MetaQuotes ID? Find that out from the article!
Gordon Gekko
642
Gordon Gekko 2015.11.11 23:00 

Hi Gurus,

Can I get a chart event, when I click on mouse button (BEFORE I release the button)?

As I experienced, the event occurs when I release the button.

Thanks

Ovo Cz
2954
Ovo Cz 2015.11.12 06:14  
Check the mouse move rather than the mouse click event.
Gordon Gekko
642
Gordon Gekko 2015.11.12 09:18  
Ovo:
Check the mouse move rather than the mouse click event.
I need all of them (as when you use the crosshair). Click down and move as well.
Ovo Cz
2954
Ovo Cz 2015.11.12 10:38  

Ok, I thought you needed a clue. So, here is the doc for the mouse move, copy/pasted.

 For CHARTEVENT_MOUSE_MOVE event the sparam string parameter contains information about state of the keyboard and mouse buttons:

Bit

Description

1

State of the left mouse button

2

State of the right mouse button

3

State of the SHIFT button

4

State of the CTRL button

5

State of the middle mouse button

6

State of the first extra mouse button

7

State of the second extra mouse button

Gordon Gekko
642
Gordon Gekko 2015.11.12 10:45  
Ovo:

Ok, I thought you needed a clue. So, here is the doc for the mouse move, copy/pasted.

 For CHARTEVENT_MOUSE_MOVE event the sparam string parameter contains information about state of the keyboard and mouse buttons:

Bit

Description

1

State of the left mouse button

2

State of the right mouse button

3

State of the SHIFT button

4

State of the CTRL button

5

State of the middle mouse button

6

State of the first extra mouse button

7

State of the second extra mouse button

Thank you, Ovo!
/
To add comments, please log in or register