Solved

send click to IE window

Posted on 2004-04-02
4
156 Views
Last Modified: 2010-04-05
how can i send click messages to an IE window?
0
Comment
Question by:bpana
4 Comments
 
LVL 11

Expert Comment

by:shaneholmes
ID: 10745261
Check out this website for anything related to delphi & IE

http://www.euromind.com/iedelphi/
0
 
LVL 6

Author Comment

by:bpana
ID: 10745290
hi,

i have tried:

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

but nothing happened :(

any ideea?
0
 
LVL 3

Accepted Solution

by:
dlengel earned 200 total points
ID: 10745768
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
 
LVL 5

Expert Comment

by:Hypoviax
ID: 10754788
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question