VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Streaming Screenshots

Brandon Gabert  (3 Submissions)   Internet/HTML   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

My code sends streaming screenshots over the internet, will work under Win98 and Win2k. Uses the GetDC and cDIBSection API's, req's the Intel Jpeg Library v1.1, freely downloadable from vbaccelerator.com, or get it off my site, https://www.pumkinhed.com/ijl/index.html

Inputs
Well its two programs actually, the server and the client, so the client needs the server IP and the port. The server needs no configuring, working out some bugs, but feedback is greatly appreciated. Would suggest changing RefreshRate and ServerQuality variables in the server to more acceptable levels, current settings are 5000ms RefreshRate and 90 ServerQuality. None of the server statistics are operational yet, but thats simple enough, as you can see its totally beta, but its done.

Assumes
Nothing, execute the server, then execute the client, and click connect in the client, voila, works over the internet too.

Returns
It returns a screenshot to the client, and if you search through the code for 'CopyToClipboard' and uncomment that line, in both the server and the client, it will save the recorded images to the clipboard.

Side Effects
Well, it has Win2k problems, I avoided them by just using On Error Resume Next which is bad style, but I can't figure out why winsock keeps disconnecting, especially since the IP is local (127.0.0.1, how much more local can i get, lol) Ok, also, the hdc of the memory copying in the cDIBSection seems to follow the titlebar of the server?? unconfirmed, but tested.

API Declarations
yeah, lots of em

Rate Streaming Screenshots (4(4 Vote))

Download Streaming Screenshots

Streaming Screenshots Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters