Results 1 to 3 of 3

Thread: Mouse Click

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715

    Wink

    I dont know if any of you ever saw NETZERO

    but my friend has it, and he says he can't ever leave the computer on download, and walk away, after like 5 min of in activeness, the windows comes up, and says you have been idle for a while, please click I'm here to continue to be online

    I'm not sure if the message is exactly the same but is there a way that I can possition the mouse, and make the mouse click every minute?

    please help
    NXSupport - Your one-stop source for computer help

  2. #2
    Guest
    I made a program to do that 'cuz I couldn't stand that Netzero crap. I eventually switched ISPs because I got rid of the Netzero banner and not it detects if one is loaded and if its not..it disconnects you. But here's the code:

    Code:
    Public Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
    Declare Function findwindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
    
    
    Public Const WM_LBUTTONDOWN = &H201
    Public Const WM_LBUTTONUP = &H202
    
    
    
    Private Sub Timer1_Timer()
    Dim a***rame&
    Dim awtdialog&
    Dim button&
    a***rame& = findwindow("a***rame", vbNullString)
    awtdialog& = findwindow("awtdialog", vbNullString)
    button& = FindWindowEx(awtdialog&, 0&, "button", vbNullString)
    Call Click(button&)
    End Sub
    
    
    Sub Click(Wh)
    DoEvents
    X = sendmessagebynum(Wh, WM_LBUTTONDOWN, 0, 0&)
    X = sendmessagebynum(Wh, WM_LBUTTONUP, 0, 0&)
    End Sub

    [Edited by Matthew Gates on 07-11-2000 at 10:24 PM]

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    THANKS alot

    I was also thinking of making a program that would go to places on the web, for example, I open the web browser and start my program, then it would goto like http://www.yahoo.com, then it would click CHECK MAIL, then it would enter the information, and click submit, etc.

    can someone please give me code for how to do that

    thanks in advance
    NXSupport - Your one-stop source for computer help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width