Exemplo n.º 1
0
        static void Main(string[] args)
        {
            try
            {
                // Set the path to the app data folder so we save logs + screenshots there
                APPPATH = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Airtab");

                if (!Directory.Exists(APPPATH))
                {
                    Directory.CreateDirectory(APPPATH);
                }

                Directory.SetCurrentDirectory(APPPATH);

                InputClient client = new Win32InputClient();
                InputServer(client);
            }
            catch (Exception ex)
            {
                System.IO.File.WriteAllText("serverCrash.txt", ex.ToString());
                throw;
            }
        }