示例#1
0
文件: frmMain.cs 项目: ruel/Upscreen
        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();
        }