|
-
Oct 7th, 2000, 05:52 PM
#1
Thread Starter
Addicted Member
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]
-
Oct 7th, 2000, 09:06 PM
#2
Thread Starter
Addicted Member
-
Oct 7th, 2000, 09:28 PM
#3
Q1 and Q2
What controls are you using? Maybe you're using the InternetExplorer Object?
Different controls have different methods.
-
Oct 7th, 2000, 09:39 PM
#4
Thread Starter
Addicted Member
I'm using the winsock control for the downloading.
-
Oct 8th, 2000, 07:11 AM
#5
Frenzied Member
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.
-
Oct 8th, 2000, 09:46 AM
#6
Thread Starter
Addicted Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|