예제 #1
0
        static void Main()
        {
            MouseTracker.RegisterClicks(OnLeftClick);
            KeyboardTracker.RegisterKeys(OnKeyPress);
            TrayManager.HideInTray.Track();

            client = new DiscordRpcClient("793662574088290325");

            client.Initialize();

            started_at = DateTime.UtcNow;

            Console.WriteLine("Successfully started RPC in " + (compact ? "compact" : "full") + " mode.");
            Console.WriteLine("To exit, simply close the command prompt window.");

            Thread MainThread = new Thread(StartRPCUpdates);

            MainThread.Start();

            Console.WriteLine("Main update thread spawned.");

            Console.ReadLine();
        }