Results 1 to 6 of 6

Thread: Mouse Tracking

  1. #1

    Thread Starter
    Addicted Member Stephen Bazemore's Avatar
    Join Date
    Aug 2000
    Location
    North Carolina
    Posts
    158

    Question 2 questions.. Please help.

    hello,

    Im having a little trouble with my auto update. I get the file to download but during the download I would like to have the percentage complete updated in the title bar. I dont really know where to start but my main thought was to do something like this :

    Code:
    Counter = 0
    Do While Counter <> 100
    Counter = Counter + 1
    Me.Caption = "Appname : " & txtURL.Text & CStr(Counter)
    That doesnt work. So now i'm kinda stuck. I also have another question. I need to know how to make my program watch for mouse clicks within your browser while in the system tray. The systray part is easy, but I cant figure out how to watch for the mouse clicks. What i'm wanting is when someone clicks on a file to download I want my program to pop up. I dont want it to pop up when a normal link is clicked on. I just dont know where to start when it comes to this kind of stuff. Any and all help is appreciated.

    [Edited by Stephen Bazemore on 10-07-2000 at 10:05 PM]
    Stephen Bazemore
    Email:[email protected]

  2. #2

    Thread Starter
    Addicted Member Stephen Bazemore's Avatar
    Join Date
    Aug 2000
    Location
    North Carolina
    Posts
    158
    Anyone know?
    Stephen Bazemore
    Email:[email protected]

  3. #3
    Guest
    Q1 and Q2

    What controls are you using? Maybe you're using the InternetExplorer Object?
    Different controls have different methods.


  4. #4

    Thread Starter
    Addicted Member Stephen Bazemore's Avatar
    Join Date
    Aug 2000
    Location
    North Carolina
    Posts
    158
    I'm using the winsock control for the downloading.
    Stephen Bazemore
    Email:[email protected]

  5. #5
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Mouse tracking?

    Hmmm for the winsock:

    First get the remote filesize by getting the header.
    Download the file in chunks, while updating the progressbar
    Code:
    size = Getremotefilesize
    ProgressbarMax = size
    Do
    chunk = 1024
    GetChunk(1024)
    progressbarval = progressbarval + chunk
    Loop
    Ofcourse this is pseudo code, I never worked with winsock before so I don't know how to do it.
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  6. #6

    Thread Starter
    Addicted Member Stephen Bazemore's Avatar
    Join Date
    Aug 2000
    Location
    North Carolina
    Posts
    158
    I'm not having trouble downloading the file or with the progress bar. I've got that to work fine. I just dont know how to make a percentage complete from the progress on the progress bar.

    Stephen Bazemore
    Email:[email protected]

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