Re: auto mouse click

From: Cor Ligthert (notmyfirstname_at_planet.nl)
Date: 12/18/04


Date: Sat, 18 Dec 2004 11:20:59 +0100

Aam,

Be so kind as Herfried wrote already to stay in the same thread. I was
already expecting you where talking about a webpage however was not sure,
so tell that forever next time when you visit this newsgroup. Default here
is a winform.

Beneath I give you a sample how you can do you problem (I don't know if
there are better ones, it is just a sample).

\\\Neets a label on a webform
Private Sub Page_Load(ByVal sender As System.Object, _
        ByVal e As System.EventArgs) Handles MyBase.Load
        If Not IsPostBack Then
            Label1.Text = ("1")
        Else
            Label1.Text = (CInt(Label1.Text) + 1).ToString
        End If
        Dim scriptString As String = "<script language=JavaScript>" & _
              "setTimeout(""" & _
              Page.GetPostBackEventReference(Me) & _
              """,1000)</script>"
        Page.RegisterStartupScript("setPBTimer", scriptString)
 End Sub
///

I hope this helps a little bit?

Cor

"aam" <aam@discussions.microsoft.com>

> hi, im trying to figure out how i can program the mouse to automatically
> click on a button of a web page that i'm viewing.i do not have control
> over
> the page.i would also like to set up an adjustable timer with it where the
> mouse can be set to click every so many seconds (1-10).i'm having trouble
> figuring out how to do and code this.thanks for any help.