?
Solved

send click to IE window

Posted on 2004-04-02
4
Medium Priority
?
159 Views
Last Modified: 2010-04-05
how can i send click messages to an IE window?
0
Comment
Question by:bpana
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 800 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

Industry Leaders: 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!

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month11 days, 14 hours left to enroll

752 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