Пример #1
0
        public frmMain()
        {
            InitializeComponent();
            hook = new XKeyboardHook();
            hook.KeyPressed += new EventHandler<KeyPressedEventArgs>(hook_KeyPressed);

            tmpName = Environment.GetEnvironmentVariable("TEMP") + @"\upscreen.png";
            apiKey = Upscreen.Properties.Settings.Default.AnonAPI;
            success = false;

            registerHotkey();
        }
Пример #2
0
        public frmMain()
        {
            InitializeComponent();
            hook             = new XKeyboardHook();
            hook.KeyPressed += new EventHandler <KeyPressedEventArgs>(hook_KeyPressed);

            tmpName = Environment.GetEnvironmentVariable("TEMP") + @"\upscreen.png";
            apiKey  = Upscreen.Properties.Settings.Default.AnonAPI;
            success = false;

            registerHotkey();
        }