Beispiel #1
0
        public void StartRecording()
        {
            StartHook();
            ClipboardMonitor.OnClipboardChange += ClipboardMonitor_OnClipboardChange;
            ClipboardMonitor.Start();

            MyWebSocketServer = new WebSocketServer("ws://127.0.0.1:40411");
            MyWebSocketServer.Start(socket =>
            {
                socket.OnOpen = () =>
                {
                    Console.WriteLine("Open!");
                    socket.Send("hello");
                };

                socket.OnClose   = () => Console.WriteLine("Close!");
                socket.OnMessage = message =>
                {
                    socket.Send("Bingo");
                };
            });
        }
Beispiel #2
0
 public void PauseRecording()
 {
     StopHook();
     ClipboardMonitor.Stop();
     MyRecordModel.ReadUIAControlInfoFromFile();
 }