• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 161
  • Last Modified:

send click to IE window

how can i send click messages to an IE window?
0
bpana
Asked:
bpana
1 Solution
 
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
 
dlengelCommented:
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
 
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now