Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simulate a mouse event on a twebbrowser PLEASE HELP ME !!! iam deseper

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I want to simulate a mouse event buttondown buttonup on a form with a twebbrowser to a relative position x,y .
But the form is not visible....
i have try postmessage or sendmessage but nothing;


Please HELP ME

Thank you very much

cyberalle@ifrance.com

sorry for my english...
 
Have a look at the following code, I think this will do what you want by calling the mouseDown event directly.

Code:
procedure TForm1.myControlMouseDown(Sender: TObject; Button: TMouseButton;
  Shift: TShiftState; X, Y: Integer);
begin
  messageDlg('hello from X:'+IntToStr(x)+' Y:'+intToStr(y),mtInformation,[mbOK],0);
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  myControlMouseDown(self,mbLeft,[],25,33);
end;
Billy H

bhogar@acxiom.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top