Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending Mouse click to internet explorer window

Status
Not open for further replies.

Paladyr

Programmer
Apr 22, 2001
508
US
I've been trying to figure this out for a while now but can't find any good examples. Here's what I have:

Code:
Dim test As Long
lngR = FindWindow(vbNullString, "caption at top of internet explorer")
  test = SendMessage(lngR, WM_LBUTTONDOWN, 0, -1)
  DoEvents
  Text = SendMessage(lngR, WM_LBUTTONUP, 0, -1)
  DoEvents
  Sleep (1500)
  test = SendMessage(lngR, WM_LBUTTONDOWN, 0, -1)
  DoEvents
  Text = SendMessage(lngR, WM_LBUTTONUP, 0, -1)

lngR is always 0. What am I doing wrong or is there a place I can get some good examples?
 
Alright it works with a simple notepad document and a webpage viewing google so it must be something wrong with the name of the webpage. it has () and !!!. Could that be messing it up?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top