topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Sunday October 25, 2020, 1:55 pm
  • 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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - mediaguycouk [ switch to compact view ]

Pages: [1] 2next
1
Hi all,
I've got a multicast IPTV system where I work and a piece of software, which no longer works in Windows 7, discovers what channels are available using SSDP. I was hoping to write a short console application that would annouce itself and then wait for replies.

My programming skills lend themselves to manipulating online examples to do what I want, but I'm having trouble finding any example code for this type of thing, this being the only example I can find - http://www.codeproje...l.aspx?display=Print . I was wondering if anyone knew of anything else out there?

2
Developer's Corner / onsubmit doesn't work in IE
« on: March 14, 2011, 05:09 PM »
Hi all,
I'm getting confused by a problem. Everything works fine in Firefox, but in IE I can't get a form to submit correctly with the enter key.

I have this function

Code: Javascript [Select]
  1. function enter()
  2. {
  3.         if (step == 7)
  4.         {
  5.                 return true;
  6.         }
  7.         else
  8.         {
  9.                 next();
  10.                 return false;
  11.         }
  12. }

and this line of code

Code: HTML [Select]
  1. <form id="form" name="form" method="post" action="upload.php" onsubmit="return enter();">

But enter() never seems to load until you get to a real submit button. I've put the entire code here - http://www.unics.co.uk/onsubmit/

Does anyone know what might be the issue?

3
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'?

4
Hi all,
I've just written a very simple AHK script to load up VNC and then log into a PC, open IE, go to a website and login. The trouble is that if I click off the window it all breaks.

Is there a way of sending keys to a particular process (and if so how to find the process)? The process is started by AHK in the script.

Thanks

Graham

5
General Software Discussion / Default audio settings
« on: March 25, 2010, 02:18 PM »
Does anyone know of a program that will remember a audio setting (default playback / recording device, levels, mute settings, etc) and will automatically set them each time it loads?

I'm also looking for a levels meter that can sit in the system tray or desktop. Can anyone help me out?

6
Screenshot Captor / No disc in Drive D
« on: March 01, 2010, 05:36 AM »
Hi Mouser,
I upgraded my work computer to Windows 7 last week and I've just installed SC. The trouble is after I install (to C:\Program Files (x86)\ScreenshotCaptor) I get 4-5 error messages appear saying

"There is no disk in the drive. Please insert a disk into drive D:"

D is my CD drive. I've uninstalled and re-installed. My shortcut points to "C:\Program Files (x86)\ScreenshotCaptor\ScreenshotCaptor.exe", the program occasionally says 'no timers availble' and I cannot use it.

Can you think what the problem is?

7
Found Deals and Discounts / Bioshock 2 with free Bioshock
« on: January 22, 2010, 01:57 AM »
(I don't know what this deal is like for non UK)

Steam seem to have (or have ingeniously designed) a mistake on the pre-order of BioShock 2. Their full price is £39.99 and currently have a pre-order offer of 10% off making it £25.99. Now my maths isn't great but I think that 40 - (10% of 40 = 4) = 36. So take them up on the offer while it is there.

During the pre-order they are giving away BioShock 1 for pc. I already have it so if someone wants it for a few donation credits (which I've run out of but want to give to skwire) than let me know.

Graham

8
Found Deals and Discounts / Acronis TrueImage 2010 - £9
« on: November 27, 2009, 05:53 AM »
I had this link in my email today

https://store.acroni...;lid=3&uid=18757

Dear Acronis customer,

With this follow-up email we are happy to offer you the upgrade to Acronis True Image Home 2010, the newest version of backup & recovery solution for home PCs.

Just two months after its release, Acronis True Image Home 2010 has already received over 100 positive reviews from top IT-magazines around the world, claiming this to be the best version of True Image ever released and outpacing other solutions on the market!

Besides your favorite features that protect your PC after just one click and enable fast recovery from viruses, unstable software downloads and failed hard drives, the new Acronis True Image Home 2010 provides continuous data protection, a powerful new flexible scheduler and online storage service. The new product is also compatible with Microsoft® Windows 7!

We are sure that this all-in-one backup & recovery solution is the best choice and are proving that by all means! We are excited to offer you the Upgrade to Acronis True Image Home 2010 and the Upgrade Protection program for just £23.95 – £14.95 savings!

In addition, with Upgrade Protection, you will be eligible to receive the upgrade of the next version of Acronis True Image Home at absolutely no charge!

Click on it, remove the £15 upgrade protection and you're left with TrueImage 2010 for £9.

Important Edit: I've not bought this so I don't know how much checking the 'upgrade' version does

9
Post New Requests Here / IDEA: £ on a non-uk keyboard
« on: August 16, 2009, 07:47 AM »
I was hoping someone could write a simple AHK script for me.

All I need is that when Alt-GR + 3 is pressed then a £ is sent (send ASC 0163)

10
Developer's Corner / Hitting a website via C#.net command line
« on: July 06, 2009, 03:52 AM »
Easy one for you all I'm sure.

Is there a command that will hit a web address (for example mysite.com/scripts/update.php?id=1) but from a command line program?

11
Screenshot Captor / Sophos and Latest version
« on: June 02, 2009, 04:43 AM »
Mouser,
Latest sophos is reporting that ScreenShot Captor Setup is 'exhibiting suspicious behaviour pattern HIPS/ProcMod-003'

Our place is currently under a big attack so I don't want to turn off my AV to send a sample (You can't upload the file while the AV is running as it thinks it is a virus and won't let you select, catch 22) so I thought you might want to.

(This is the setup file and not the program itself)

Graham

---
Edit - http://www.sophos.co.../hipsprocmod003.html

Isn't that a bit of a harsh pro-active alert? Anything that Internet Explorer downloads and runs! Isn't that everything?

12
Hello everyone! This morning I have devil eyes (all the white in my eye is bruised and red) following some laser eye surgery. My eyes are healing well and I'm back at work on my computer.

The trouble is that I'm swearing blindly at a few programmes today and the reason is that I've turned on High Contrast mode in XP / Vista.

There are some programmes that are just brilliant. For example Firefox detects the contrast mode change and removes stylesheets in webpages to make everything white on blank and incredibly clear. Firefoxes zoom mode is unbelievably good. The trouble is there are other programmes, like our ticketing system Remedy that are hopeless.

Some designers seem to like giving text boxes background colours so they can perfectly design their windows. Trouble is you colour a textbox as white and have black text on it. Turn on High Contrast mode and the background turns black and the text turns white, however if you have a picture then that remains. Ergo you have white text on a white background.

So as software designers do you even think of these things? I certainly meet people at university that say 'I don't need to test for accessbility as my target audience doesn't have these problems' but even though I'll probably only have this for a week this is really irritating.

I've even annoyed myself by programming a page in PHP that tells me if the files I'm adding to a database actually exist. Red is broken, green is working and at the moment it's just all black. Own goal for me.

(If you want to see high contrast mode then press Left Alt + Left Shift + Print Screen)

Graham

13
Living Room / Lawn of the Dead
« on: May 06, 2009, 07:31 AM »
If anyone is wondering whether Plants Vs Zombies is any good the answer is yes.

If anyone has any work to do over the next week however, then this game isn't for you.

Tower defence PopCap style  ;D

140405-plantsvszombies_original.jpg
(Image from macworld)

http://www.popcap.com/games/pvz


Edit: added link to game site.

14
Developer's Corner / Call a webpage with a command line c# program
« on: March 25, 2009, 10:23 AM »
I'm converting a Form based C# application to an automatic command line based C# version. However I need to call a webpage (like a cron job would), but I don't know how to do it from the command line. In a form I would call play.webBrowser1.Url = new Uri(address); (after calling the play class that has a web browser element).

Anyone help with this? I don't think I need any feedback from the page at all.

15
Hi there. I'm stumped on something and would like some ideas passed around even if you don't know how to technically achieve what I'm asking for.

Before I start with the problem I'm using
Wowza - Flash streaming server
Flash CS4
JW Media Player (Longtail media player) - Under licence editing the source code.

I have videos on a streaming server that require authentication. Users log in with their university username and password and a $_SESSION variable is logged to show the user is logged in.

In the past I have totally hacked at the source code of JW Media Player to ensure that the video doesn't play without checking the session is logged in. A written application in Flash Media Server 2 also checked this information.

For this new version I would like both Wowza and JW Media player to be as 'vanilla' as possible. The reason for this is Wowza and JW Media Player both have built in authentication.

Wowza uses a secure token before an application (a whole folder of videos) can be played. The trouble is the token doesn't change and if I hard code the token into the flash player someone would only have to download the movie player to be able to play all moves.

What I would prefer to do is to pass some code to the flash player that makes it create the key, however I want it to be useless after it is used.

Before I would use the (sudo) code of

Decrypt (jr;;p, 13/3/09)

Function decrypt(input, date) {
 if (date < today) {
  exit("password can only be decrypted on the date it is created");
 } else {
  return decryptcode(input); // return token to the flash code and not to the user
 }
}


However if I'm doing the decryption inside the flash player it is using the client for its information. The client clock might be incorrect or they might just change it.

What would be best is if the web server were to pass the token at the beginning, but that would just involve the user right clicking and viewing source, which is even worse.

Any ideas or was that a really bad explanation?

16
Found Deals and Discounts / Backup4All [December 22nd]
« on: December 17, 2008, 03:11 AM »
50% off Backup4All on Bits Du Jour

I'm personally on 3 and use it with Acronis True Image. Backup4All does my My Documents for quick backup and extraction and True Image does the whole hard drive.

http://www.bitsdujou...ftware/backupforall/

17
If I have a textbox in a form called 'textbox' and a class called 'class' is there any way of doing this?

Form1:
textbox.text = "";
Class class = new Class();
class.runfunction()

Class:
public void runfunction()
{
 form1.textbox.text = "Some text"; // This would never work, but how could it?
}

18
Developer's Corner / C# Drag and Drop fail
« on: November 11, 2008, 12:30 PM »
Hi all, I'm doing really badly on my first try at a drag and drop. I'm trying to have a listBox that can have a file dragged onto it from Windows Explorer

From the very simple example here - http://support.microsoft.com/kb/307966 I have

Set AllowDrop on the list to TRUE
Set the event DragDrop
Set the event DragEnter

I have the following code

Code: C# [Select]
  1. private void listFilesToConvert_DragEnter(object sender, System.Windows.Forms.DragEventArgs e)
  2.         {
  3.             // DEBUG
  4.             MessageBox.Show("DragEnter");
  5.  
  6.             if (e.Data.GetDataPresent(DataFormats.FileDrop))
  7.                 e.Effect = DragDropEffects.All;
  8.             else
  9.                 e.Effect = DragDropEffects.None;
  10.         }
  11.  
  12.         private void listFilesToConvert_DragDrop(object sender, System.Windows.Forms.DragEventArgs e)
  13.         {
  14.             // DEBUG
  15.             MessageBox.Show("DragDrop");
  16.            
  17.             string[] s = (string[])e.Data.GetData(DataFormats.FileDrop);
  18.             int i;
  19.             for (i = 0; i < s.Length; i++)
  20.                 listFilesToConvert.Items.Add(s[i]);
  21.  
  22.         }

I can't say I understand it all, but it looks very similar to other code on the net. It's probably something simple but I can't work it out.

Neither debug message boxes fire.

Cheers

Graham R

19
Another question I'm stuck on.

I have two forms (for this example) called Main and Ffmpeg. Inside main there is a [Start] and a [Cancel] button. There is a Start_Clicked function and a Cancel_Clicked function.

Inside Start_Click I start ffmpeg (Ffmpeg ffmpeg = new Ffmpeg). This ffmpeg class opens up ffmpeg.exe and sends some arguments. (The code is in https://www.donation...ex.php?topic=15549.0)

Now my question is, how can I send proc.Kill(); to ffmpeg? The Cancel_Clicked function doesn't know what ffmpeg is.

Advanced thanks for your help. Learning languages is damn near impossible without people like yourself that help!

Graham

20
Hi there. I'm back to C# and am getting by with web examples and a few books. However I'm stuck.

I've created a process and it happens to be FFMPEG

Code: C# [Select]
  1. System.Diagnostics.Process proc = new System.Diagnostics.Process();
  2.             //Some rubbish but long code removed
  3.             proc.EnableRaisingEvents = false;
  4.             proc.StartInfo.FileName = ffmpegLocation;
  5.             proc.StartInfo.Arguments = arguement;
  6.             proc.StartInfo.UseShellExecute = false;
  7.             if (showEncodingEngine)
  8.             {
  9.                 proc.StartInfo.CreateNoWindow = false;
  10.             }
  11.             else
  12.             {
  13.                 proc.StartInfo.CreateNoWindow = true;
  14.             }
  15.             proc.StartInfo.RedirectStandardOutput = false;
  16.             proc.StartInfo.RedirectStandardInput = false;
  17.             proc.StartInfo.RedirectStandardError = false;
  18.             proc.Start();
  19.             proc.WaitForExit();
  20.             proc.Close();

What I'd like to do is to have this process run in BelowNormal processor priority. I've found some things in the intelitext about it, but msdn isn't really helping me.

Psudo code would be

proc.Start();
proc.processorpriority = priority.BelowNormal;

But it isn't that easy...

Thanks for any help

21
Yesterday there was a program on bits du jour that would make a storyboard from a videoclip, a little like media player classic does.

What I really want is something that will do what youtube does to videos, go into the clip and select the middle or few seconds in and take a screenshot and export it as a jpg file.

Is there anything out there that does this one thing? It would have to work via a command line as my video encoders generally work without user input.

22
Living Room / Why do browsers have a 'show password' button?
« on: September 04, 2008, 08:52 AM »
I've never really got this and was wondering if anyone could fill me in.

I don't understand why programs have a show password button inside the browser options and it might have to be the reason I remove Chrome.

At home I'm happy but at work I don't feel comfortable with someone walking up to my PC and then listing every username and password I have in the system.

IE just doesn't do it, fine. Firefox allows the passwords to be protected by a master password. You type that password once per session and then to show the passwords, fine. Chrome does neither, you just get to see them all.

Luckily the master password stopped Chrome from just importing them all, nice to see there is some security there in firefox. But I like Chrome and hope that this is just the learning curve of Beta software.

Graham

23
General Software Discussion / Turning a pc on and off remotely
« on: July 16, 2008, 03:15 AM »
I've been talking about Wake over network recently and have successfully managed to make my computer wake from sleep (but not off) via a PHP script on my webpage.

Is there a way of making the computer go to sleep via a webpage? I'm mostly thinking of using Orb via my mobile phone so won't have access to a remote desktop connection, but I could put IIS onto the computer (Vista Enterprise SP1) if IIS could shut down the computer.

Or is there just a program that could do it (that could also be placed on a phone or loaded from a webpage).

Thank you experts!

24
General Software Discussion / Queueing downloads in firefox
« on: July 06, 2008, 06:29 AM »
Wonder if any of you geniuses can help me.

I've been downloading a bunch of 100-200MB files off a server recently and I normally like to, because of the time involved, click on a bunch of downloads then go do something else.

What I have found though is that if I click on 10 files they will all download at an equal speed. Sometimes that means that when I leave for work in the morning I have 10 files at  90% complete and I have to cancel them all.

Is there an option or addon in firefox that could force downloading two files at a time, so that I am more likely to get complete files downloading slightly more slowly but with less chance of the download being in vain.

Thanks!

25
General Software Discussion / Protecting windows from minimising
« on: June 24, 2008, 03:03 AM »
I hope someone can help me. I've just moved computers to one with a dual display (rather than two separate computers). On the right is outlook, on the left is everything else.

I use Start + D very often to show the desktop, but I'd like Outlook (or a blanket 'whatever is on the second monitor') to stay put. Do you know of anything like that? I'm finding it very hard to google as I can't get the keywords to pick up what I'm trying to say.

Many thanks

Graham Robinson

Pages: [1] 2next