send click to IE window

how can i send click messages to an IE window?
LVL 6
bpanaAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
dlengelConnect With a Mentor Commented:
If the mouse is in the correct position above the Explorer Window, or you don't care about position, I have used the following code sucessfully.  SendMessage never worked for me either.

    Mouse_Event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
    Mouse_Event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);

(It worked in a program I wrote to automatically beat the Minesweeper game)

Daniel Engel
0
 
shaneholmesCommented:
Check out this website for anything related to delphi & IE

http://www.euromind.com/iedelphi/
0
 
bpanaAuthor Commented:
hi,

i have tried:

SendMessage(ghwnd, WM_LBUTTONUP, 0, MakeLong(250,250));

but nothing happened :(

any ideea?
0
 
HypoviaxCommented:
I would follow dlengel's suggestion. This method works well.

You may find setting the cursor position function useful too

setcursorpos(x,y)

Regards,

Hypoviax
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.