View Single Post
  #10 (permalink)  
Old 02-14-2009, 04:05 PM
pips4life pips4life is offline
Junior Member
 
Join Date: Apr 2007
Posts: 7
pips4life is on a distinguished road
Re: A challenge to capture mouse-position in a hotkeyed script

Quote:
Originally Posted by pips4life View Post
Hi MT4 programming experts,

Over on the MQL4 web site, several people have asked if they could capture keyboard or mouse clicks from within a program. The typical answer is no, and yet I've seen some very clever applications that use a DLL to capture or emulate keyboard events. What I want to do is capture a mouse event, for which I have found no useful MQL4 examples.

...
I assume Newdigital moved my post into this thread... however, I have followed all of the links here and none of them solve my problem.

I need a program to capture a mouse event, not a keyboard event. The two are very different. A keyboard event can be captured to run something as it relates in general to your current chart, such as to open a Buy/Sell at market price. In contrast, a mouse event (i.e. left-mouse click) -- if this problem can be solved -- can capture a specific time & price on your current chart!

Native MT4 commands can do this with ease of course. You can execute a menu command or push an icon, and the program then prompts you to left-mouse-click on whatever spot on your chart you want for your command. I'm looking for a way that I can access this mouse control from within a script (or perhaps by an EA as well).

Still looking for a solution... anyone have any ideas?

Thanks in advance,
Pips4life
Reply With Quote