I have managed to fine some kind of test mode in the Vision boxes that they call it Monkey mode. There are a few fetures outlined in the monkey.xml and I think that if we can get this mode enabled then that will enable us to record and pause TV but not record on shedule until we get the EPG running.
I have found the key combinations in the Source codes but cannot find the section of the code that waits for these combinations and calls on the functions associated with them.
The two code snippets are form the Monkey.xml file and the other is from the TV2.Test.monkey namespace from within the TV2 Client
public class Monkey
{
private static int _captureCount = 0;
private static OnMsgArrived _captureDelegate = new OnMsgArrived(Monkey.CaptureHandler);
private static DateTime _lastKeyTime = DateTime.MinValue;
private static int _maxSleep = 0x3e8;
private static int _minSleep = 200;
private static MonkeyMode _mode = MonkeyMode.Default;
private static bool _MonkeyActive;
private static int _monkeyRandomSeed = 0;
private static DateTime _monkeyStart = DateTime.MinValue;
private static bool _once = false;
private static StreamWriter _sw = null;
private static Microsoft.TV2.TestScripter.TestScriptEngine _testScriptEngine;
private static string[] keys = keys_default;
private static string[] keys_default = new string[] {
"channelup", "channeldown", "channelup", "channeldown", "channelup", "channeldown", "channelup", "channeldown", "channelup", "channeldown", "channelup", "channeldown", "up", "down", "left", "right",
"up", "down", "left", "right", "up", "down", "left", "right", "up", "down", "left", "right", "raw,ch,0", "raw,ch,1", "raw,ch,2", "raw,ch,3",
"raw,ch,4", "raw,ch,5", "raw,ch,6", "raw,ch,7", "raw,ch,8", "raw,ch,9", "raw,ch,backspace", "select", "select", "menu", "recordedtv", "guide", "guide", "skipback", "skipfwd", "back",
"info", "UI.WatchTV", "UI.WatchTV", "UI.WatchTV", "ffwd", "rwd", "play", "pause", "ffwd", "rwd", "play", "pause", "ffwd", "rwd", "play", "pause",
"rec", "pause", "mute"
};
private static string[] keys_dvr = new string[] {
"channelup", "channeldown", "channelup", "channeldown", "channelup", "channeldown", "channelup", "channeldown", "channelup", "channeldown", "channelup", "channeldown", "select", "select", "menu", "recordedtv",
"raw,ch,0", "raw,ch,1", "raw,ch,2", "raw,ch,3", "raw,ch,4", "raw,ch,5", "raw,ch,6", "raw,ch,7", "raw,ch,8", "raw,ch,9", "raw,ch,backspace", "guide", "guide", "skipback", "skipfwd", "back",
"info", "UI.WatchTV", "UI.WatchTV", "UI.WatchTV", "ffwd", "rwd", "play", "pause", "ffwd", "rwd", "play", "pause", "ffwd", "rwd", "play", "pause",
"rec", "pause"
};
private static string[] keys_navigation = new string[] {
"up", "down", "left", "right", "up", "down", "left", "right", "up", "down", "left", "right", "up", "down", "left", "right",
"select", "select", "menu", "recordedtv", "guide", "guide", "skipback", "skipfwd", "back", "info", "UI.WatchTV"
};
private static string[] keys_recordings = new string[] { "channelup", "channeldown", "channeldown", "select", "rec", "UI.WatchTV" };
private static string[] keys_search = new string[] {
"raw,ch,a", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,b", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,c", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,d", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace",
"raw,ch,e", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,f", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,g", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,h", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace",
"raw,ch,i", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,j", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,k", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,l", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace",
"raw,ch,m", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,n", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,o", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,p", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace",
"raw,ch,q", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,r", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,s", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,t", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace",
"raw,ch,u", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,v", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,w", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,x", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace",
"raw,ch,y", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,z", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,1", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,2", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace",
"raw,ch,3", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,4", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,5", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,6", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace",
"raw,ch,7", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,8", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,9", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,0", "raw,ch,backspace", "raw,ch,backspace", "raw,ch,backspace",
"right", "left", "down", "up", "channelup", "channeldown"
};
private static string[] keys_sequence = new string[] {
"guide", "menu", "guide", "down", "select", "down", "guide", "menu", "right", "select", "raw,ch,2", "raw,ch,2", "raw,ch,2", "raw,ch,2", "down", "down",
"down", "select", "guide", "menu", "right", "right", "right", "down", "down", "select", "raw,ch,1", "raw,ch,1", "raw,ch,1", "raw,ch,1", "raw,ch,1", "raw,ch,1",
"raw,ch,1", "raw,ch,1"
};
private static string[] keys_stayonpage = new string[] { "up", "down", "left", "right", "channelup", "channeldown" };
private static string[] keys_timhack = new string[] { "menu", "guide" };
private static string[] keys_trickmodes = new string[] {
"channelup", "channeldown", "channelup", "channeldown", "channelup", "channeldown", "channelup", "channeldown", "channelup", "channeldown", "channelup", "channeldown", "UI.WatchTV", "skipback", "skipfwd", "raw,ch,0",
"raw,ch,1", "raw,ch,2", "raw,ch,3", "raw,ch,4", "raw,ch,5", "raw,ch,6", "raw,ch,7", "raw,ch,8", "raw,ch,9", "raw,ch,backspace", "ffwd", "rwd", "play", "pause", "ffwd", "rwd",
"play", "pause", "ffwd", "rwd", "play", "pause", "pause"
};
private static string[] keys_trickmodes2 = new string[] {
"rwd", "ffwd", "noop", "noop", "noop", "noop", "noop", "noop", "noop", "noop", "noop", "noop", "noop", "noop", "noop", "noop",
"noop", "noop", "noop", "noop", "noop", "noop", "noop", "noop", "noop", "noop"
};
private static string[] keys_tune = new string[] {
"channelup", "channeldown", "channelup", "channeldown", "channelup", "channeldown", "channelup", "channeldown", "channelup", "channeldown", "channelup", "channeldown", "raw,ch,0", "raw,ch,1", "raw,ch,2", "raw,ch,3",
"raw,ch,4", "raw,ch,5", "raw,ch,6", "raw,ch,7", "raw,ch,8", "raw,ch,9", "raw,ch,backspace", "up", "down", "left", "right", "up", "down", "left", "right", "raw,ch,0",
"raw,ch,1", "raw,ch,2", "raw,ch,3", "raw,ch,4", "raw,ch,5", "raw,ch,6", "raw,ch,7", "raw,ch,8", "raw,ch,9", "raw,ch,backspace", "up", "down", "left", "right", "up", "down",
"left", "right", "UI.WatchTV"
};
<HorizontalFlowPanel>
<Text width="140" left="0" height="31" layout="center" margin="rect(10,10,0,0)">Monkey Mode:</Text>
<Spinner class="Spinner" left="10" margin="rect(10,10,0,0)" id="_modeSpinner">
<Text width="150" layout="center" class="Text.Spinner">Default</Text>
<Text width="150" layout="center" class="Text.Spinner">Recordings</Text>
<Text width="150" layout="center" class="Text.Spinner">Sequential</Text>
<Text width="150" layout="center" class="Text.Spinner">DVR</Text>
<Text width="150" layout="center" class="Text.Spinner">Trick Modes</Text>
<Text width="150" layout="center" class="Text.Spinner">Trick Modes2</Text>
<Text width="150" layout="center" class="Text.Spinner">Tune</Text>
<Text width="150" layout="center" class="Text.Spinner">TuneChupChdn</Text>
<Text width="150" layout="center" class="Text.Spinner">Navigation</Text>
<Text width="150" layout="center" class="Text.Spinner">Memory</Text>
<Text width="150" layout="center" class="Text.Spinner">Capture</Text>
<Text width="150" layout="center" class="Text.Spinner">Replay</Text>
<Text width="150" layout="center" class="Text.Spinner">Stay on Page</Text>
<Text width="150" layout="center" class="Text.Spinner">TimHack</Text>
<Text width="150" layout="center" class="Text.Spinner">Search</Text>
<Text width="150" layout="center" class="Text.Spinner">WMSLongPlay</Text>
<Text width="150" layout="center" class="Text.Spinner">WMSTrickMode</Text>
<Text width="150" layout="center" class="Text.Spinner">RDP</Text>
</Spinner>
</HorizontalFlowPanel>