3 Replies - 332 Views - Last Post: 13 June 2012 - 02:32 PM Rate Topic: -----

#1 k@sf  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 22
  • Joined: 09-June 12

[QUESTION]Click specific spot in your own browser using coordinated

Posted 09 June 2012 - 12:55 PM

hello
so i have came so far by now :
Public Class Form1

    Private Sub WebBrowser1_DocumentCompleted(sender As Object, e As WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted

    End Sub

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        WebBrowser1.Navigate("http://www.thismachine.info/", "_self", Nothing, "User-Agent: Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A537a Safari/419.3")
    End Sub
End Class


yeah i know nothing special but im still noob
anyways , i want to simulate a click in a specific spot of this browser ... lets say i want to click the upper part of the webpage . how will i do that ? i actually searched but i found only click given the coordinates of the desktop or things like this but nothing for giving coordinated to your program and that will click INSIDE your browser
as always thank you very much :)

Is This A Good Question/Topic? 0
  • +

Replies To: [QUESTION]Click specific spot in your own browser using coordinated

#2 k@sf  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 22
  • Joined: 09-June 12

Re: [QUESTION]Click specific spot in your own browser using coordinated

Posted 10 June 2012 - 02:08 AM

noone know how to help me ???? :/
Was This Post Helpful? 0
  • +
  • -

#3 k@sf  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 22
  • Joined: 09-June 12

Re: [QUESTION]Click specific spot in your own browser using coordinated

Posted 13 June 2012 - 10:37 AM

i still need this
please any help is greatly appreciated ;)
Was This Post Helpful? 0
  • +
  • -

#4 GunnerInc  Icon User is offline

  • "Hurry up and wait"
  • member icon




Reputation: 719
  • View blog
  • Posts: 1,978
  • Joined: 28-March 11

Re: [QUESTION]Click specific spot in your own browser using coordinated

Posted 13 June 2012 - 02:32 PM

The only way I know of is with the Windows API.

First you need to call GetCursorPos
Then call ScreenToClient, now you will have the x and y coords of the cursor. Now pass those coords to your "click" code.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1