Quote:
Originally Posted by codersguru
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(Sender: TObject);
var
hWindow, hStatusBarHandle: HWND;
begin
hWindow := FindWindow('ExploreWClass', nil);
if FensterHandle = 0 then Exit;
hStatusBarHandle := FindWindowEx(hWindow, 0, 'msctls_statusbar32', nil);
label1.Caption := GetStatusBarText(hStatusBarHandle, 2);
end;