public Form1() { InitializeComponent(); ghk = new Hotkeys.GlobalHotkey(Constants.CTRL, Keys.D1, this); //Use CTRL and digit 1 for paste from clipboard ghk2 = new Hotkeys.GlobalHotkey(Constants.CTRL, Keys.D2, this); //Use CTRL and digit 2 for move to backup clipboard ghk3 = new Hotkeys.GlobalHotkey(Constants.CTRL, Keys.D3, this); //Use CTRL and digit 3 for paste from backup clipboard }
private void registerDelKey() { ghk_DEL = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.Delete, this); ghk_DEL.Register(); delKeyRegistered = true; }
public Form1() { InitializeComponent(); this.FormClosing += Form1_FormClosing; ghk = new Hotkeys.GlobalHotkey(Constants.ALT + Constants.SHIFT, Keys.O, this); abk = new GlobalHotkey(Constants.ALT, Keys.A, this); }
public ProjectExplorer() { InitializeComponent(); projectExplorer = new Hotkeys.GlobalHotkey(Constants.WIN, Keys.W, this); pictureBox1.Image = Image.FromFile(Path.Combine(iconsFolder.FullName, "logo.png")); SetPaths(); ReadXMLFiles(); panels.Add(projectGridPanel1); panels.Add(sprintGridPanel1); panels.Add(tasksGridPanel1); panels.Add(sprintKanbanPanel1); panels.Add(taskPlanningPanel1); panels.Add(addTasks); projectGridPanel1.parentPanel = this; sprintGridPanel1.parentPanel = this; tasksGridPanel1.parentPanel = this; sprintKanbanPanel1.parentPanel = this; taskPlanningPanel1.parentPanel = this; addTasks.parentPanel = this; SetBlackTheme(); sprintKanbanPanel1.Refresh(); sprintKanbanPanel1.Dock = DockStyle.Fill; sprintKanbanPanel1.BringToFront(); SetActiveButton(toolStripButtonKanban); this.WindowState = FormWindowState.Maximized; }
public Soundboard() { InitializeComponent(); _console.Hide(); // assign hotkey values ghk1 = new GlobalHotkey(Constants.ALT + Constants.CTRL, Keys.D1, this); ghk2 = new GlobalHotkey(Constants.ALT + Constants.CTRL, Keys.D2, this); ghk3 = new GlobalHotkey(Constants.ALT + Constants.CTRL, Keys.D3, this); ghk4 = new GlobalHotkey(Constants.ALT + Constants.CTRL, Keys.D4, this); ghk5 = new GlobalHotkey(Constants.ALT + Constants.CTRL, Keys.D5, this); ghk6 = new GlobalHotkey(Constants.ALT + Constants.CTRL, Keys.D6, this); ghk7 = new GlobalHotkey(Constants.ALT + Constants.CTRL, Keys.D7, this); ghk8 = new GlobalHotkey(Constants.ALT + Constants.CTRL, Keys.D8, this); ghk9 = new GlobalHotkey(Constants.ALT + Constants.CTRL, Keys.D9, this); // the _hotkey array is used to iterate through all the keys in a loop // in other parts of the program, so there are chunks of code repeated 9 times everywhere. _hotkey[0] = null; // i don't want to deal with zero based numbering for readability's sake _hotkey[1] = ghk1; _hotkey[2] = ghk2; _hotkey[3] = ghk3; _hotkey[4] = ghk4; _hotkey[5] = ghk5; _hotkey[6] = ghk6; _hotkey[7] = ghk7; _hotkey[8] = ghk8; _hotkey[9] = ghk9; }
private void registerGlobalHotkey() { ghk_F1 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F1, this); ghk_F1.Register(); ghk_F2 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F2, this); ghk_F2.Register(); ghk_F8 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F8, this); ghk_F8.Register(); ghk_F9 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F9, this); ghk_F9.Register(); ghk_F11 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F11, this); ghk_F11.Register(); //ghk_DEL = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.Delete, this); //ghk_DEL.Register(); //ghk_CTRL_DEL = new Hotkeys.GlobalHotkey(Constants.CTRL, Keys.Delete, this); //ghk_CTRL_DEL.Register(); ghk_CTRL_ENTER = new Hotkeys.GlobalHotkey(Constants.CTRL, Keys.Enter, this); ghk_CTRL_ENTER.Register(); registerNavigationKey(); }
public Form1() { InitializeComponent(); myForm = new Form2(this); myForm.Show(); myForm.Visible = false; ghk = new Hotkeys.GlobalHotkey(Constants.CTRL, Keys.Q, this); }
private void registerGlobalHotkey() { ghk_UP = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.Up, this); ghk_UP.Register(); ghk_DOWN = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.Down, this); ghk_DOWN.Register(); }
public Form1(string value, string level) { InitializeComponent(); ghk = new Hotkeys.GlobalHotkey(Constants.CTRL, Keys.S, this); label1.Text = "Hi, " + value; name = value; this.level = level; }
public Form1() { InitializeComponent(); InitializeFlash(); ghk = new Hotkeys.GlobalHotkey(Constants.SHIFT, Keys.F1, this); createSearchTextFile(); LogLocation.Text = path; }
public Spammer() { InitializeComponent(); ghk1 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F8, this); ghk1.Register(); ghk2 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F9, this); ghk2.Register(); }
private void registerNavigationKey() { ghk_UP = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.Up, this); ghk_UP.Register(); ghk_DOWN = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.Down, this); ghk_DOWN.Register(); navKeyRegistered = true; }
private void registerGlobalHotkey() { //ghk_F1 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F1, this); //ghk_F1.Register(); ghk_F11 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F11, this); ghk_F11.Register(); ghk_DEL = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.Delete, this); ghk_DEL.Register(); }
private void registerGlobalHotkey() { ghk_F7 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F7, this); ghk_F7.Register(); ghk_F9 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F9, this); ghk_F9.Register(); ghk_F10 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F10, this); ghk_F10.Register(); }
private void button5_Click(object sender, EventArgs e) { ghk.Unregiser(); //unregister before registering again ghk = new Hotkeys.GlobalHotkey(Constants.CTRL, Keys.Space, this); //Use CTRL and space if (ghk.Register()) { label4.Text = "Hotkey CTRL+space registered."; } else { label4.Text = "Hotkey CTRL+space failed to register"; } }
//private System.Windows.Forms.NotifyIcon myNotificationIcon; public formQuick() { InitializeComponent(); this.txtLog.KeyPress += new KeyPressEventHandler(txtLog_KeyPress); showUI = new Hotkeys.GlobalHotkey(Constants.CTRL, Keys.Space, this); //this.components = new System.ComponentModel.Container(); //this.myNotificationIcon = new System.Windows.Forms.NotifyIcon(this.components); //this.myNotificationIcon.Click += new EventHandler(myNotificationIcon_Click); //myNotificationIcon.Icon = new Icon("Mimetypes-text-x-log.ico"); //// The Text property sets the text that will be displayed, //// in a tooltip, when the mouse hovers over the systray icon. //myNotificationIcon.Text = "Show QuickLogger"; //myNotificationIcon.Visible = true; }
public RunScript() { _status.Show(); _status.DesktopLocation = new Point(860, 550); _status.Width = 500; _status.Height = 60; InitializeComponent(); ispause = false; ghk = new Hotkeys.GlobalHotkey(Hotkeys.Constants.CTRL, Keys.P, this); ghk2 = new Hotkeys.GlobalHotkey(Hotkeys.Constants.CTRL, Keys.R, this); ghkkey = new KeyData(true, false, true, false, Keys.P); ghkkey = new KeyData(true, false, true, false, Keys.R); InitKeyList(); }
public Form1() { InitializeComponent(); timer = new Timer(); //a timer for stopping recording at a certain time timer.Interval = 120000; //max recording of 120000ms (2 minutes) timer.Tick += new EventHandler(timer_Tick); if (Properties.Settings.Default.upgradeRequired) { Properties.Settings.Default.Upgrade(); Properties.Settings.Default.upgradeRequired = false; } //if untouched, set default values if (Properties.Settings.Default.unTouched) { Properties.Settings.Default.unTouched = false; modifierKeys = Keys.Shift ^ Keys.Control; pressedKey = Keys.D6; folderLocation.Text = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); SaveSettings(); } else { modifierKeys = Properties.Settings.Default.modifierKeys; pressedKey = Properties.Settings.Default.pressedKey; maxRecordLength.Value = Properties.Settings.Default.maxRecordLength; showNotifications.Checked = Properties.Settings.Default.showNotifications; recordToMp3.Checked = Properties.Settings.Default.recordToMp3; folderLocation.Text = Properties.Settings.Default.folderLocation; saveFormat.Text = Properties.Settings.Default.saveFormat; incrementNumber.Value = Properties.Settings.Default.incrementNumber; } ghk = new GlobalHotkey(Constants.ToInt(modifierKeys), pressedKey, this); ghk.Register(); hotkeyTextBox.Text = new KeysConverter().ConvertToString(modifierKeys ^ pressedKey); notifyIcon.BalloonTipIcon = ToolTipIcon.Info; notifyIcon.BalloonTipTitle = "QuickRecord"; }
private void button1_Click(object sender, EventArgs e) { Keys key = Keys.A; if ((Keys)System.Enum.Parse(typeof(Keys), textBox1.Text) != key) { try{ ghk.Unregister(); } catch { } } key = (Keys)System.Enum.Parse(typeof(Keys), textBox1.Text); ghk = new Hotkeys.GlobalHotkey(Constants.NOMOD, key, this); if (ghk.Register()) { MessageBox.Show("Registered hotkey to: " + key.ToString()); label2.Text = key.ToString(); } }
//Second clipboard checkbox private void manage_backup_clipboard() { ghk2 = new Hotkeys.GlobalHotkey(Constants.CTRL, Keys.D2, this); ghk3 = new Hotkeys.GlobalHotkey(Constants.CTRL, Keys.D3, this); if (checkBox1.Checked) { if (ghk2.Register() && ghk3.Register()) { SecClipLabel.Text = "CTRL+2 and CTRL+3 registered"; } } if (!checkBox1.Checked) { if (ghk2.Unregiser() && ghk3.Unregiser()) { SecClipLabel.Text = "CTRL+2 and CTRL+3 not registered"; } } }
public Form1() { InitializeComponent(); qhk = new Hotkeys.GlobalHotkey(Constants.SHIFT, Keys.Q, this); // SHIFT+Q to stop clicking Hotkey shk = new Hotkeys.GlobalHotkey(Constants.SHIFT, Keys.S, this); // SHIFT+S to start clicking Hotkey }
private void registerGlobalHotkey() { gutil.saveSystemDebugLog(globalConstants.MENU_PENJUALAN, "CASHIER FORM : REGISTER HOTKEY"); ghk_F1 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F1, this); ghk_F1.Register(); ghk_F2 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F2, this); ghk_F2.Register(); ghk_F3 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F3, this); ghk_F3.Register(); ghk_F4 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F4, this); ghk_F4.Register(); //ghk_F5 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F5, this); //ghk_F5.Register(); ghk_F7 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F7, this); ghk_F7.Register(); ghk_F8 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F8, this); ghk_F8.Register(); ghk_F9 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F9, this); ghk_F9.Register(); ghk_F11 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F11, this); ghk_F11.Register(); ghk_Add = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.Add, this); ghk_Add.Register(); ghk_Substract = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.Subtract, this); ghk_Substract.Register(); //ghk_DEL = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.Delete, this); //ghk_DEL.Register(); //ghk_CTRL_DEL = new Hotkeys.GlobalHotkey(Constants.CTRL, Keys.Delete, this); //ghk_CTRL_DEL.Register(); ghk_CTRL_Enter = new Hotkeys.GlobalHotkey(Constants.CTRL, Keys.Enter, this); ghk_CTRL_Enter.Register(); //ghk_F10 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F10, this); //ghk_F10.Register(); //ghk_F11 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F11, this); //ghk_F11.Register(); //// ## F12 doesn't work yet ## ////ghk_F12 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F12, this); ////ghk_F12.Register(); //ghk_CTRL_C = new Hotkeys.GlobalHotkey(Constants.CTRL, Keys.C, this); //ghk_CTRL_C.Register(); //ghk_CTRL_U = new Hotkeys.GlobalHotkey(Constants.CTRL, Keys.U, this); //ghk_CTRL_U.Register(); //ghk_ALT_F4 = new Hotkeys.GlobalHotkey(Constants.ALT, Keys.F4, this); //ghk_ALT_F4.Register(); registerNavigationKey(); }
private void btnChangeKeys_Click(object sender, EventArgs e) { if (btnChangeKeys.Text == "Change") { hotkeyTextBox.Text = ""; hotkeyTextBox.Select(); btnChangeKeys.Text = "Save"; } else { if (hotkeyTextBox.Text == "") { hotkeyTextBox.Text = hotkeystring; } else { ghk.Unregister(); ghk = new GlobalHotkey(Constants.ToInt(modifierKeys), pressedKey, this); ghk.Register(); } hotkeystring = hotkeyTextBox.Text; btnChangeKeys.Text = "Change"; SaveSettings(); } }
private void keyChoiceBox_SelectedIndexChanged(object sender, EventArgs e) { if (sicEnabled) { ghk.Unregiser(); ghk = new Hotkeys.GlobalHotkey(Constants.ALT + Constants.SHIFT, (Keys)this.keyChoiceBox.SelectedItem, this); ghk.Register(); Properties.Settings.Default.activationKey = (Keys)this.keyChoiceBox.SelectedItem; Properties.Settings.Default.Save(); } }
public Starter() { InitializeComponent(); // Design this.BackColor = Color.FromArgb(63, 63, 63); panel1.BackColor = Settings.Default.backColor; panelStarter.BackColor = Settings.Default.backColor; //pictureBox1.Image = Image.FromFile(Path.Combine(iconsFolder.FullName, "logo.png")); iconList.ColorDepth = ColorDepth.Depth32Bit; iconList.ImageSize = new System.Drawing.Size(32, 32); listView1.LargeImageList = iconList; ghk = new Hotkeys.GlobalHotkey(Constants.WIN, Keys.Y, this); //projectExplorer = new GlobalHotkey(Constants.WIN, Keys.N, this); this.Hide(); configTextList = new List <ProfileConfigItem>(); int groupCount = 0; groups = new List <string>(); int menuGroupCount = 0; string menuGroupLetter = string.Empty; DAL configDAL = new DAL(Application.StartupPath, Settings.Default.DataFolder); foreach (ConfigFile configurationFile in configDAL.allConfigFiles) { groupCount += 100000; List <ProfileConfigItem> configList = configurationFile.GetItems(); foreach (ProfileConfigItem configItem in configList) { // Find Groups if (!groups.Contains(configItem.group)) { menuGroupCount++; groups.Add(configItem.group); menuGroupLetter = "ALT + "; listBox1.Items.Add(string.Format("{0}. {1}", string.Format("{0}{1}", menuGroupLetter, menuGroupCount), configItem.group)); } // Find Apps if (configItem.app != null && configItem.app != string.Empty) { configTextList.Add(configItem); } // Find Sub Apps foreach (ProfileConfigItem subItem in configItem.subItems) { subItem.group = configItem.group; if (subItem.app != null && subItem.app != string.Empty) { configTextList.Add(subItem); } } } } DirectoryInfo dataFolder; dataFolder = new DirectoryInfo(Path.Combine(Settings.Default.DataFolder, @"ProjectExplorer\")); string sprintXmlFile = Path.Combine(dataFolder.FullName, "sprints.xml"); string todoXmlFile = Path.Combine(dataFolder.FullName, "todos.xml"); string projectXmlFile = Path.Combine(dataFolder.FullName, "projects.xml"); SortableBindingList <Sprint> sprints = SortableBindingListHelper.GetBindingListFromXmlFile <Sprint>(sprintXmlFile); SortableBindingList <Todo> todos = SortableBindingListHelper.GetBindingListFromXmlFile <Todo>(todoXmlFile); SortableBindingList <Project> projects = SortableBindingListHelper.GetBindingListFromXmlFile <Project>(projectXmlFile); foreach (Project project in projects) { if (project.FilesFolder != null && project.FilesFolder.Length > 0) { ProfileConfigItem item = new ProfileConfigItem(); item.app = "explorer"; item.group = project.Id; item.parameter = project.FilesFolder; item.displayName = string.Format("1 {0} [Open Files Folderin Explorer]", project.ShortDescription); configTextList.Add(item); } if (project.SVNRepository != null && project.SVNRepository.Length > 0) { ProfileConfigItem item = new ProfileConfigItem(); item.app = @"C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe"; item.group = project.Id; item.parameter = string.Format("/command:repobrowser /path:{0}", project.SVNRepository); item.displayName = string.Format("1 {0} [SVN Open in Repo browser]", project.ShortDescription); configTextList.Add(item); } if (project.VisualStudioSolution != null && project.VisualStudioSolution.Length > 0) { ProfileConfigItem item = new ProfileConfigItem(); item.app = @"C:\Program Files (x86)\Common7\IDE\devenv.exe"; item.group = project.Id; item.parameter = project.VisualStudioSolution; item.displayName = string.Format("1 {0} [Open in Visual Studio]", project.ShortDescription); configTextList.Add(item); FileInfo solutionFile = new FileInfo(project.VisualStudioSolution); ProfileConfigItem item2 = new ProfileConfigItem(); item2.app = @"explorer"; item2.group = project.Id; item2.parameter = solutionFile.DirectoryName; item2.displayName = string.Format("1 {0} Visual Studio Solution Folder", project.ShortDescription); configTextList.Add(item2); if (solutionFile.Exists) { foreach (DirectoryInfo projectDirectory in solutionFile.Directory.GetDirectories()) { DirectoryInfo debug = new DirectoryInfo(projectDirectory.FullName + @"\bin\debug"); if (debug.Exists) { ProfileConfigItem item3 = new ProfileConfigItem(); item3.app = @"explorer"; item3.group = project.Id; item3.parameter = debug.FullName; item3.displayName = string.Format("2 Project '{1}' Debug Folder", project.ShortDescription, projectDirectory.Name); configTextList.Add(item3); } } } } } foreach (Sprint sprint in sprints) { } foreach (Todo todo in todos) { if (todo.FilesFolder != null && todo.FilesFolder.Length > 0) { ProfileConfigItem item = new ProfileConfigItem(); item.app = "explorer"; item.group = todo.Id; item.parameter = todo.FilesFolder; item.displayName = string.Format("1 {0} [Task Files]", todo.ShortDescription); item.icon = @"_defaulticons\folder.png"; configTextList.Add(item); } } wpfStarterComboBox1.Init(configTextList); wpfStarterComboBox1.SelectionChanged += WpfStarterComboBox1_SelectionChanged; //this.BackColor = BlackTheme.ColorDarkGray; this.ForeColor = BlackTheme.ColorText; // Apply Black Theme //BlackTheme.ApplyTheme(this); }
private void Form1_Load(object sender, EventArgs e) { for (int i = 0; i < CMdllka.touchlessMgr.Cameras.Count; i++) { if(CMdllka.touchlessMgr.Cameras[i].ToString().Contains("VDP")==false ) Camra.Add(CMdllka.touchlessMgr.Cameras[i]); } comboBox1.DataSource = Camra; CMdllka.Markery.MarkerChanged += new Markery.Zmiana_Ilosci_Markerow(MarkersChanged); ghk = new Hotkeys.GlobalHotkey(Constants.CTRL, Keys.Q, this); ghk.Register(); timer.Tick += new EventHandler(TimerTickHandler); //add the event handler timer.Start(); //start the timer }
/// <summary> /// Register HotKeys with ToDo++ /// </summary> private void InitializeSystemTray() { ghk = new Hotkeys.GlobalHotkey(Constants.ALT, Keys.Q, this); ghk.Register(); notifyIcon_taskBar.Visible = false; }
public Default() { InitializeComponent(); ghk = new GlobalHotkey(Constants.NOMOD, Keys.Home, this); }
private void registerGlobalHotkey() { ghk_F1 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F1, this); ghk_F1.Register(); ghk_F2 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F2, this); ghk_F2.Register(); ghk_F3 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F3, this); ghk_F3.Register(); ghk_F4 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F4, this); ghk_F4.Register(); ghk_F5 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F5, this); ghk_F5.Register(); ghk_F6 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F6, this); ghk_F6.Register(); ghk_F7 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F7, this); ghk_F7.Register(); ghk_F8 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F8, this); ghk_F8.Register(); ghk_F9 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F9, this); ghk_F9.Register(); ghk_Ctrl_Enter = new Hotkeys.GlobalHotkey(Constants.CTRL, Keys.Enter, this); ghk_Ctrl_Enter.Register(); }
public Form1() { InitializeComponent(); ghk = new Hotkeys.GlobalHotkey(Constants.ALT + Constants.SHIFT, Keys.O, this); }
public Form1() { InitializeComponent(); ghk = new Hotkeys.GlobalHotkey(Constants.SHIFT, Keys.F1, this); Debug.WriteLine("I am here in the form init"); }
private void initSettings() { this.trayIcon = generateNotifyIcon(); this.imgurCheckBox.Checked = Properties.Settings.Default.imgurAutoupload; this.clipBoardCheckBox.Checked = Properties.Settings.Default.clipBoardAutoCopySettings; this.autoStartCheckBox.Checked = Properties.Settings.Default.autoStart; List<Keys> itemSource = new List<Keys> { Keys.A, Keys.B, Keys.C, Keys.D, Keys.E, Keys.F, Keys.G, Keys.H, Keys.I, Keys.J, Keys.K, Keys.L, Keys.M, Keys.N, Keys.O, Keys.P, Keys.Q, Keys.R, Keys.S, Keys.T, Keys.U, Keys.V, Keys.W, Keys.X, Keys.Y, Keys.Z,}; this.keyChoiceBox.DataSource = itemSource; this.keyChoiceBox.SelectedItem = Properties.Settings.Default.activationKey; ghk = new Hotkeys.GlobalHotkey(Constants.ALT + Constants.SHIFT, (Keys)this.keyChoiceBox.SelectedItem, this); ghk.Register(); sicEnabled = true; }
private void registerGlobalHotkey() { ghk_F1 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F1, this); ghk_F1.Register(); ghk_F2 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F2, this); ghk_F2.Register(); ghk_F3 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F3, this); ghk_F3.Register(); ghk_F4 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F4, this); ghk_F4.Register(); ghk_F5 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F5, this); ghk_F5.Register(); ghk_F7 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F7, this); ghk_F7.Register(); ghk_F8 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F8, this); ghk_F8.Register(); ghk_F9 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F9, this); ghk_F9.Register(); ghk_F10 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F10, this); ghk_F10.Register(); ghk_F11 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F11, this); ghk_F11.Register(); // ## F12 doesn't work yet ## //ghk_F12 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.F12, this); //ghk_F12.Register(); ghk_CTRL_DEL = new Hotkeys.GlobalHotkey(Constants.CTRL, Keys.Delete, this); ghk_CTRL_DEL.Register(); ghk_CTRL_C = new Hotkeys.GlobalHotkey(Constants.CTRL, Keys.C, this); ghk_CTRL_C.Register(); ghk_CTRL_U = new Hotkeys.GlobalHotkey(Constants.CTRL, Keys.U, this); ghk_CTRL_U.Register(); ghk_ALT_F4 = new Hotkeys.GlobalHotkey(Constants.ALT, Keys.F4, this); ghk_ALT_F4.Register(); }
public Form1() { InitializeComponent(); hk = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.X, this); hk1 = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.Z, this); }
public FormMain() { InitializeComponent(); globalHotKeys = new Hotkeys.GlobalHotkey(Constants.NOMOD, Keys.O, this); SetupTimers(); }