Welcome Guest.   Make a donation to an author on the site July 30, 2014, 08:11:36 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2012! Download dozens of custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Is it easy to send a request to http://IP?password and make something happen?  (Read 3224 times)
mediaguycouk
Supporting Member
**
Posts: 244


see users location on a map View Profile WWW Give some DonationCredits to this forum member
« on: August 03, 2010, 11:42:28 AM »

Hi clever people.

I work in a University. In our lecture theatres we have a touch screen that makes all the equipment work, a computer and a projector (as well as other bits we can ignore).

We've been asked to make a button on the touchscreen that makes a picture appear on the projector. There are some expensive ways around this but the cheapest would be the following

Press button on touch panel > Touch panel sends a GET to the computer > The computer is listening for this GET and when it recieves it, it shows a picture.

Is this easy to do? Or does it involve running web servers on computers. I.e. can I write a simple c# program that says 'wait for this command on port 1337'?
Logged

Learning C# - Graham Robinson
MilesAhead
Member
**
Posts: 4,703



View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: August 07, 2010, 12:42:30 PM »

If you're doing Windows it may be easiest to run a small pre-packaged web server(you can get free ones out there) and just use the InetGet() function.  It requires a Windows OS that has IE 3 or later... should not be a problem. smiley

This is the InetGet call in AutoIt3

http://www.autoitscript.c...ocs/functions/InetGet.htm


but c# should have an equivalent.  You have to check the download.. maybe by file size. If the server got an error, like file not found, it may return a small xml file with some gibberish about "/somefile.jpg" not found instead of the .jpg.

Once you have the image locally you can take it from there.

Logged

mediaguycouk
Supporting Member
**
Posts: 244


see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #2 on: August 09, 2010, 07:48:07 AM »

Apologies for the late reply.

I don't actually need to download anything, just to get the computer to display the image. So the computer should be listening for a command, and when it gets it it will display an image on the screen of the computer.

It's one of those things that seems hard to say and harder to actually get working. I was just wondering if one of the geniuses here had seen something around.

Thanks
Graham
Logged

Learning C# - Graham Robinson
MilesAhead
Member
**
Posts: 4,703



View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: August 09, 2010, 05:31:30 PM »

I don't know if there's a utility already written. You might check sites like SoftPedia.  If you have to roll your own I would look at Socket class and ShellExecute.  The machine with the images would listen and depending on some code or number, know which image to open.  ShellExecute could launch the display program with the image filename as param.

There may be some free presentation type utility out there.  SoftPedia has quite a few varied apps.
Logged

skwire
Charter Member
***
Posts: 4,021



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #4 on: August 09, 2010, 10:01:22 PM »

http://www.autohotkey.com/forum/topic28838.html

Works well; I use it.
Logged

mediaguycouk
Supporting Member
**
Posts: 244


see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #5 on: August 10, 2010, 02:04:45 AM »

That looks amazing. I'll try and check it out over the next few days.

Thanks skwire
Logged

Learning C# - Graham Robinson
Jabberwock
Participant
*
Posts: 71

View Profile Give some DonationCredits to this forum member
« Reply #6 on: August 14, 2010, 05:21:42 AM »

You could use EventGhost for this, as it has server/client communication. For control you could use its OSD or webserver. For display e.g. IrfanView. The additional advantage would be built-in multimedia functions, which could be used for the projector, A/V equipment etc.
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.027s | Server load: 0.2 ]