View Single Post
  #14 (permalink)  
Old 02-17-2009, 08:59 PM
Michel Michel is offline
Senior Member
 
Join Date: Feb 2006
Posts: 592
Michel is on a distinguished road
Quote:
Originally Posted by codersguru View Post
Yes this is a big challenge.

Getting the cursor location on the screen is not the problem. The problem is how to translate this location to time and price is the problem.
I don't know if it is worth the work, but a solution might be to find the sub-window "Data Window" thru some dll and read it (I think its a ListView32 control)

Another idea is to have a small object which follows the pointer and to read its properties

The third idea, maybe the simplest one, is to read the status bar; something like this, from Get the Text of a Statusbar Panel**(Thomas Stutz) an article on delphi3000.com******||
PHP Code:
// Example to read the statusbar text of the explorer.exe 
procedure TForm1.Timer1Timer(SenderTObject); 
var 
  
hWindowhStatusBarHandleHWND
begin 
  hWindow 
:= FindWindow('ExploreWClass'nil); 
  if 
FensterHandle 0 then Exit; 
  
hStatusBarHandle := FindWindowEx(hWindow0'msctls_statusbar32'nil); 
  
label1.Caption := GetStatusBarText(hStatusBarHandle2); 
end

Last edited by Michel; 02-17-2009 at 09:46 PM.
Reply With Quote