topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday October 11, 2024, 4:20 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Is it easy to send a request to http://IP?password and make something happen?  (Read 8611 times)

mediaguycouk

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 247
    • View Profile
    • Mediaguy
    • Donate to Member
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'?
Learning C# - Graham Robinson

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
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. :)

This is the InetGet call in AutoIt3

http://www.autoitscr...unctions/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.


mediaguycouk

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 247
    • View Profile
    • Mediaguy
    • Donate to Member
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
Learning C# - Graham Robinson

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
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.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member

mediaguycouk

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 247
    • View Profile
    • Mediaguy
    • Donate to Member
http://www.autohotke...orum/topic28838.html
That looks amazing. I'll try and check it out over the next few days.

Thanks skwire
Learning C# - Graham Robinson

Jabberwock

  • Participant
  • Joined in 2006
  • *
  • default avatar
  • Posts: 76
    • View Profile
    • Donate to Member
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.