3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Free, legal, online TV on your TV set

Step 3Software

Software
Now make a program that:

  • OnLoad() takes the txt file as input and prepares a grid of channels.
  • Opens and displays a stream when you click on a channel from the grid.
  • Contains a button that toggles the window between the computer and TV screen, so that you don't have to do it manually.
  • Any other ideas you get (for example, I added a button to open video files).

Of course you can do this in many programming languages; I used VB 6 since it is very simple and can be programmed quickly making it look good. In VB 6, you'll need a WindowsMediaPlayer ocx to handle the stream.

How to toggle the window between computer screen and TV set
In my case, when you click on an object called "Picture3" (button for moving window, see picture bellow) it runs this piece of code:

If Picture3.Tag = ">" Then
Me.WindowState = 0
Me.Left = Screen.Width
Me.WindowState = 2
Picture3.Tag = "<"
Else
Me.WindowState = 0
Me.Left = 0
Me.WindowState = 2
Picture3.Tag = ">"
End If
« Previous StepDownload PDFView All StepsNext Step »
1 comment
May 11, 2009. 2:16 PMFik says:
I think that so called "real" programmers hate VB out of insecurity, perhaps fearing that most people can write useful programs in VB without getting a degree in computer science. There have been times between jobs that I have earned a living programming in VB, and I use VB to play while in a real job (such as now). Of course VB is not the most efficient or elegant language out there, but ... what's wrong with a computer language that allows you to earn a living and play?

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
21
Followers
7
Author:lucianoabcd