VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Streaming Screenshots

by Brandon Gabert (3 Submissions)
Category: Internet/HTML
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (4 Votes)

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.
Code 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

Download Streaming Screenshots

Download Streaming Screenshots (23 KB)

Streaming Screenshots Comments

No comments have been posted about Streaming Screenshots. Why not be the first to post a comment about Streaming Screenshots.

Post your comment

Subject:
Message:
0/1000 characters