Important alert: (current site time 7/16/2013 3:06:06 AM EDT)
 

winzip icon

PSC Monitor - Now downloads in a separate thread for increased speed and stability

Email
Submitted on: 6/5/2002 2:07:36 AM
By: MrBobo  
Level: Intermediate
User Rating: By 51 Users
Compatibility: VB 6.0
Views: 23612
author picture
(About the author)
 
     Are you addicted to PSC? Does visiting PSC actually get in the way of your coding? This may help. It checks for new submissions and new votes on your submissions. Now updated to include new comments notification and viewing all comments. It also provides links to the most common pages you use, all in a popup menu in the system tray. Demonstrates downloading using API, disabling right-click menu in web browsers, string parsing, system tray management, internet connection state, handing multiple settings using the registry. UPDATE: The original version of this PSC Monitor used API to download the source code of a selected PSC web page and parsed this source code for specific data. It did this job well, but the application was unresponsive whilst downloading was taking place. To overcome this problem it now uses a separate tiny exe file (BBdowner.exe - source code included) to download the data in a separate thread, thus allowing for multiple tasks being carried out simultaneously and allowing the app to be reponsive even during downloading. I hope you appreciate the increased stability and speed. Before running PSC Monitor, compile BBdowner.exe and place in the same folder as PSCMonitor.exe, thats all - easy!

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 63 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

6/5/2002 2:28:30 AMJohn Galanopoulos

MrBobo, you rock. this is one of the coolest and MOST usefull submissions. very handy. And i had a pleasand surprise :) Thanks for everything. Needless to say, 5 Planets!
(If this comment was disrespectful, please report it.)

 
6/5/2002 2:45:02 AMJ.C. Bize

This is a great idea, thanks for this wonderful utility
(If this comment was disrespectful, please report it.)

 
6/5/2002 2:48:25 AMBPeek

This is an excelent app. Well on it's way to "Code of The Month"
(If this comment was disrespectful, please report it.)

 
6/5/2002 3:22:00 AMCarles P.V.

***** more!
(If this comment was disrespectful, please report it.)

 
6/5/2002 8:15:14 AMPaul Zaczkowski

Truly amazing. One of the talented here at PSC, good luck on your journey through life Bobo, and may GOD be with you. *****(5 Stars) from me!
(If this comment was disrespectful, please report it.)

 
6/5/2002 8:25:06 AMdelTex

I also wanna do this but i simply can't since im still a newbie... tnx for doing this! This is a blast! 5 for you man!
(If this comment was disrespectful, please report it.)

 
6/5/2002 9:03:34 AMLouLou

This is a deffinate code of the month as long as it doesnt get deleted by a f*cking hacker. I will be using this regularly and its a deffinate 5 globes from me. keep up the good work. An extra feature would be to notify us when a comment is made and also show the comment. Cool Stuff
(If this comment was disrespectful, please report it.)

 
6/5/2002 9:28:56 AMTerry L

MrBobo!! It's nice to know that we still have Programer's around in programming for the so call programer's to learn from.. Thank you!! and 5 Apples to the Teacher.... Thanks
(If this comment was disrespectful, please report it.)

 
6/5/2002 9:44:00 AMGeoffrey Hazen

Wow, actually a useful peice of code that hasn't been ripped off from another site or a programming book. Very well organized code. 5 planets from me. Too bad someone will eventually rip off your code and post it 12 months later or on another site and call it their own. Keep up the good work!
(If this comment was disrespectful, please report it.)

 
6/5/2002 10:32:23 AMMrSomeone

nice job!
(If this comment was disrespectful, please report it.)

 
6/5/2002 10:32:59 AMDaNo

Wow!!! Very very cool! *****
(If this comment was disrespectful, please report it.)

 
6/5/2002 12:24:41 PMJeff D

MrBobo
Great job *****+! You code is not only Outstanding, useful, and convienient, but demonstrates many functions that can be used in programs such as Registry, API, etc. I really like the system tray functionality. If you do modify this in any way, (hard to determine what needs improved) be sure to let me know. SUPER PROGRMA(hard to determine what needs improved) SUPER PROGRAM!
(If this comment was disrespectful, please report it.)

 
6/5/2002 11:21:14 PMGlen Marsham

Another very good piece of code
(If this comment was disrespectful, please report it.)

 
6/6/2002 2:53:31 PMRussell Kinasz

Wow! Nice code! 5 Globes from me! =)
(If this comment was disrespectful, please report it.)

 
6/6/2002 3:12:50 PMJeff D

Downloaded your code again, said to my self again - "This is great, even added the Comments on box", must recast my 5 vote again...
(If this comment was disrespectful, please report it.)

 
6/6/2002 3:23:31 PMRegX

In regard to server overuse / abuse my PSC monitor code is very similiar. I actually asked Ian after posting my code if there was anything he would like me to change to reduce server load.
All he said was to make the minimum refresh 1 minute instad of 30 seconds.
So I don't thing there is a problem. Also MrBobo is right, this could actually reduce the load to the server since it is only grabbing the source code and not calling images or scripts.
(If this comment was disrespectful, please report it.)

 
6/6/2002 11:28:57 PMKevin

very good idea... deserves winning
(If this comment was disrespectful, please report it.)

 
6/10/2002 7:38:56 AMmatt squire

Nice work, this will be very usefull.
(If this comment was disrespectful, please report it.)

 
6/11/2002 2:01:09 AMZhu JinYong

Very good application!You make PSC people life easy! Thanks.
(If this comment was disrespectful, please report it.)

 
6/12/2002 5:51:30 AM_Merlin_

Thanks for the help MrBobo!
Works like a whistle now.
Keep up the good programming. ;D
(If this comment was disrespectful, please report it.)

 
6/12/2002 11:51:19 AM_Merlin_

Thanks for the update! It works fine now :D
(If this comment was disrespectful, please report it.)

 
6/14/2002 9:07:53 AMRigShiokew

Fantastic coding skills, and tangible functionality too. PSC Monitor is wicked. 5 Planets for you.
(If this comment was disrespectful, please report it.)

 
6/15/2002 4:12:45 AMMrBobo

Important notice to PSC Monitor users.
This is important information for anyone who has ALREADY downloaded PSC Monitor and actually use the app regularly. There have been changes made to dramatically reduce the strain on the PSC server. So if you care about PSC and use PSC Monitor, please download the newest version. PSC Monitor works by downloading the HTML source code of a PSC page and determines if a new submission has been made based on data within that source code. The PSC server is quite capable of coping with this traffic as no images etc. are downloaded - that is it's major design advantage over other methods. However, it still triggers an SQL query, and that is the problem. Through various discussions with Ian Ippolito a solution has been worked out that minimises the strain on the PSC SQL server.
(If this comment was disrespectful, please report it.)

 
6/15/2002 4:13:37 AMMrBobo

CONTINUED...
The solution is neat, clean, and actually increases the speed of PSC Monitor dramatically. Credit for these changes go entirely to Ian. If you use PSC Monitor then get the new version for PSC's sake!!!
(If this comment was disrespectful, please report it.)

 
6/15/2002 7:57:41 AMStraxxx

nice code (have u ever tought of a browser intergration)
(If this comment was disrespectful, please report it.)

 
6/15/2002 12:26:08 PMSnakez

Okay MrBobo, you always make great things. This I have to say is one of the best! 5 globes and keep up the good work. Its nice to see people who do not post useless code that just take up space on PSC.

This is a great program, but I find it has problems detecting the internet while using a shared connection on a lan. is this just me? if not, i have some code somewhere on my hd that tells you if your connected, and how (local, network). If you need it just ask and I'll try to find it.
(If this comment was disrespectful, please report it.)

 
6/17/2002 5:34:13 AMZhu JinYong

If the comment wrote in some Language such as Chinese,It wouldn't show correctly.
(If this comment was disrespectful, please report it.)

 
6/17/2002 5:41:50 AMMrBobo

I'm not sure if PSC copes with chinese characters or not. Initially the comments parsing code just did a straight parse of English characters.
During testing I pointed the comments at "http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?lngWId=1&txtCodeId=35517" which is the VBLanguage Pack submission.
On retrieving the comments, some comments showed strange results. After looking at how PSC copes with these non-english characters I implemented code to cope with this situation. However none of those characters were chinese.
(If this comment was disrespectful, please report it.)

 
6/17/2002 1:37:12 PMVlad Vissoultchev

in frmTicker change Ln 118 to [If Not ContactingSite Then PopupMenu mnuPUBase, , , , mnuPU(16)] so a default menu item is shown in systray popup menu

HTH,

</wqw>

(If this comment was disrespectful, please report it.)

 
6/17/2002 2:13:11 PMMrBobo

Good idea Vlad, your suggestion has been implemented. Thanks.
(If this comment was disrespectful, please report it.)

 
6/18/2002 4:51:21 AMVlad Vissoultchev

speaking of optimization you can use Brow.Navigate "about:" & Replace(getTicker, vbCrLf, " ") instead of createing temp .htm file.

i can't point lines in frmTicker because it's really scattered in the code.

HTH,

</wqw>
(If this comment was disrespectful, please report it.)

 
6/18/2002 9:25:24 AMM a t t = H a l l

Excellently executed idea! Just one thing i object to however; regarding the bbdowner.exe concept. Rather than saving to the registry, use a command line, after all thats what they are for! You can contain multiple variables in one string by using a split character and a sub to extract the data. I have a sub i coded myself sitting on my computer if you want it.

5/5

-[DS]Dark_Side
(If this comment was disrespectful, please report it.)

 
6/20/2002 4:46:16 AMM a t t = H a l l

You could even blag it and use Winsock to establish a connection with the program, that way you can easily tell if the arbituary program (bbdowner.exe) is running. And this would mean PSCMonitor would work un-compiled in the design environment!

-[DS]Dark_Side
(If this comment was disrespectful, please report it.)

 
6/29/2002 5:29:29 PMVlad Vissoultchev

for a simple in-process framework check out http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=36373&lngWId=1
HTH,

</wqw>

(If this comment was disrespectful, please report it.)

 
8/1/2002 7:08:35 PMXsan

I cant find the exe file.it has problem when running
(If this comment was disrespectful, please report it.)

 
8/1/2002 10:14:43 PMMrBobo

Have a look at the file Instructions.txt. The source code for the BBdowner.exe is in the enclosed zip file. Compile this tiny exe file first.
(If this comment was disrespectful, please report it.)

 
8/20/2002 5:01:29 PMJuha Soderqvist

Good stuff, i now have a dir called MrBobo where i have your totally excellent code examples. i give this a 5
(If this comment was disrespectful, please report it.)

 
1/15/2003 11:47:02 AMKundan

Simply fantastic!...It was something I was looking for since a long time...5 globes!
(If this comment was disrespectful, please report it.)

 
2/11/2007 1:24:52 PMMatt DeKok

Invalid Procedure Call or Argument

upon starting
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.