Questions tagged [registerhotkey]

83 questions
0
votes
0 answers

How to program a hotkey to be used by a hidden program

Once again I plead for assistance! I would like to be able to register multiple hotkeys that are ran from a hidden form. The hotkey for the example program below toggles a second form when ALT+UPKEY is pressed. Right now it performs as it should,…
gregknight
  • 43
  • 9
0
votes
0 answers

Global Hotkey using user32.dll does not work with Windows Key

I am trying to write a C# Application that reacts to the Hotkey Win+V simply because it's easy accessible and I don't want to get a conflict with other Windows Hotkeys. I am using a global hotkey class i found on Stackoverflow: public sealed class…
0
votes
1 answer

Any Hotkey I want to register seems to already be taken

I am trying to register a global hotkey in Visual c# 2012, build target framework .NET3, after using http://www.dreamincode.net/forums/topic/180436-global-hotkeys/ as a tutorial, I got the following (abbreviated) files: GlobalHotkey.cs using…
ty812
  • 3,284
  • 17
  • 36
0
votes
0 answers

Held down shift key only detected in first instance

My application is able to detect if the shift key is pressed but only for the first modified key. The second modified key(even when shift is held down) is detected as unmodified even while the key is still held. I want to be able to properly detect…
Orphamiel
  • 829
  • 11
  • 21
0
votes
1 answer

Register global hotkey for copy

I need help with that problem: I tried to register a hotkey (Ctrl+Shift+C) which works global (also in other applications). When it is pressed it should get me the selected object (String, File, ... it's not defined here). The applicaions should be…
Damon_Kronski
  • 17
  • 1
  • 8
0
votes
1 answer

emacs how to define hotkey C-u to Delete from current position to the beginning of line

I hava know C-u 0 C-k could do that thing, but I really want use C-u delete from current position to the beginning of line just like the bash readline.
Xiaorong Liao
  • 681
  • 7
  • 13
0
votes
1 answer

Hotkey not working on form load

I have one class to register/unregister hotkey. It works perfectly when application start with Form Load event. private Hotkey myHotKey; private IntPtr thisWindow; private void Form1_Load(object sender, EventArgs e) { thisWindow…
user969068
  • 2,446
  • 4
  • 30
  • 55
0
votes
1 answer

How can I cleanly programatically add images to the clipboard and paste them?

i have a global registered hotkey which works fine, inside this hotkey is the following code: { Clipboard.SetDataObject(Properties.Resources.cookie); SendKeys.SendWait("^v"); } It adds the cookie image to my…
user2078674
  • 165
  • 2
  • 2
  • 13
0
votes
1 answer

Multiple hotkeys not working with alt+ number keys

I coded this and it was working earlier! a global hotkey for alt+1 and alt+2. As i was closing my project i accidentally pressed a key or something and now for some reason only alt+1 is working, and no other combination of alt+ a number... …
user2078674
  • 165
  • 2
  • 2
  • 13
0
votes
1 answer

vb.net register hotkey "capslock"

is there possible to register "CapsLock" as a hotkey instead of registering 2keys? i dont want to use ctrl+key, alt+key. I want to toggle "CapsLock" to start/break my loop. Like if i toggle on the capslock, the loop will run and so on. I solve this…
hack nayan
  • 27
  • 2
  • 6
0
votes
1 answer

global Hotkey assignment windows

I've built a WPF app that has a main window I want to press Ctr+Alt+1 to activate / maximize the window I then have on the window a 9 tabbed panel I want to access each tab with hotkey presses with 1-9 respectively (when the main window is active),…
user1320651
  • 698
  • 1
  • 12
  • 39
0
votes
1 answer

Register multiple global hot-keys in C#

Possible Duplicate: Register more than one hotkey with RegisterHotKey Sorry, but I really googled for it a long time and I didn't get any clear code! I want to know how to register global hot-keys in C# using…
blackgh
  • 99
  • 1
  • 13
0
votes
0 answers

RegisterHotKey - how to get form instance?

I'm using this solution(first answer) to make hotkeys. So, it has event handler method : static void HotKeyManager_HotKeyPressed(object sender, HotKeyEventArgs e) { Console.WriteLine("Hit me!"); } How to get an instance of my form there? I tried…
lenden
  • 740
  • 1
  • 12
  • 36
0
votes
1 answer

Getting MouseButton event when it happens, not when it is released

Simply put, I want to be able to get the event of a mouseclick (specifically MiddleButton) when a user clicks the button - not after it's been released. I think I've done it once before, but I've forgotten. This is to be able to navigate a 3D view…
Deukalion
  • 2,186
  • 7
  • 29
  • 47
0
votes
1 answer

Does RegisterHotKey not working a separate thread?

I have a thread executing certain things and right at the end it's supposed to bind my F key as a global hotkey, I've been unable to get this to work, any insight as to what I'm doing wrong OR if RegisterHotKey is not functioning cause of my…