Solved

send click to IE window

Posted on 2004-04-02
4
157 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 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

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
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…

740 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