2018-05-21, 05:43 PM
gdogg371 Wrote:Am I missing something here? What I mean is if you have 'Something.exe', what goes in that?Anything you want goes in there. It just need to accept the channel number parameter from the command line.
ie, you'd probably do something like the equivalent of this c# code:
Code:
using System;
using System.Collections.Generic;
namespace Blaster
{
class Program
{
static void Main(string[] args)
{
if (args.Length == 0)
{
Console.WriteLine("Usage:");
Console.WriteLine("\tBlaster.exe <ChannelNumber>");
return;
}
// get channel number from command line
string channelNumber = args[0];
// split into individual digits
foreach (char digit in channelNumber.ToCharArray())
{
SendDigit(digit);
}
}
static void SendDigit(char digit)
{
... code to send digit to SkyQ box ...
}
}
}