Questions tagged [keyboard-hook]

The term keyboard hook covers a range of techniques used to alter or augment the behavior or intercepting keyboard event messages before they reach an application.

The term keyboard hook covers a range of techniques used to alter or augment the behavior or intercepting keyboard event messages before they reach an application.

313 questions
0
votes
0 answers

Disable showing key when key pressed in LowLevel Hook

I'm trying to learn about Low Level Hook. I want to change the input of users. Stuff like this, when user press a and then w, the ouput is ă. My solution is: After user type w, i will use sendInput to send 2 backspace keys and a unicode character…
Nam
  • 56
  • 1
  • 7
0
votes
2 answers

GetKeyboardState and ToAscii does not always correctly process STX and ETX characters

I am using a global keyboard hook in order to work with a barcode reader. The barcode reader sends an STX character ahead of the barcode and an ETX character after the barcode. Sometimes the ToAscii function results in the proper STX and ETX codes…
saracaen
  • 59
  • 1
  • 8
0
votes
0 answers

Qt - Keyboard Hook

I'm using Qt 5.1.1 and I want make keyboard hooks, but Qtx do not accept my version, but I REALLY need this, for an autoclicker project. Any lib is good to me, but it need to be multiplatform, and what's the best way to "click" in Qt?
0
votes
1 answer

How can I create a global hotkey combination that includes the windows key?

I'm using SetWindowsHookEx to capture the keyboard in order to show a running application. I can create combinations using CTRL, ALT, SHIFT, and regular keys. However I can't create a combination using the WINDOWS key (for example, CTRL + WINDOWS…
Zodman
  • 3,178
  • 2
  • 32
  • 38
0
votes
1 answer

Win32 key translation code outputting unwanted key-presses

I'm using the following code to get an unicode string of a keyboard state: std::wstring App::DecodeMessage(KBDLLHOOKSTRUCT* kbHook) { // Clean up the keyboard state for(int i=0; i<256; ++i) keyboardMap[i] = 0; // Get the state of all…
Délisson Junio
  • 1,296
  • 4
  • 21
  • 43
0
votes
1 answer

Low level keyboard hook doesn't work for a specific device in a specific app

I have coded up a low level keyboard hook using SetWindowsHookEX() on Windows CE 4.2 and it seems to work just fine. I am able to see key events using the keyboard and a barcode scanner in notepad and other applications as desired, but I do not…
Mike
  • 185
  • 1
  • 1
  • 7
0
votes
1 answer

Low level keyboard hook: differentiate between key codes

I'm trying to limit the access of the users of my program to the keyboard. To do that I've defined a low level keyboard hook: LRESULT CALLBACK lowLevelKeyboardProc(int key, WPARAM wParam, LPARAM lParam) { KBDLLHOOKSTRUCT* pkbhs =…
armanxxx
  • 45
  • 1
  • 10
0
votes
1 answer

global keyboard hook/Raw input Capture keyboard input

Does any of you know how to capture data from a keyboard based on the VID or PID for the keyboard? well it's possible with raw input in C# but then i can't block the data, or well redirect it to my application.. and well i can block the data with a…
MMM
  • 311
  • 5
  • 14
  • 30
0
votes
1 answer

How do I profile ShowDialog?

I took over a Keyboard hook project and have been sprucing it up a bit. It used to be just 4 forms that had all the logic and maths in those 4 files. So MANY hours later I just about got the program back together after decoupling everything. The…
Robert Snyder
  • 2,399
  • 4
  • 33
  • 65
0
votes
3 answers

Binding key combinations to your application

How can I bind a key combination to my vb.net application? I know it has SOMETHING to do with the registry, but I have no earthly idea what or how to go about doing this. I want the user to be able to hit those keys when the app is open and have it…
Cyclone
  • 17,939
  • 45
  • 124
  • 193
0
votes
1 answer

CallbackOnCollectedDelegate was detected even with static delegate

Here is keyboard hook code: class globalKeyboardHook { #region Constant, Structure and Delegate Definitions public delegate int keyboardHookProc(int code, int wParam, ref keyboardHookStruct lParam); …
formatc
  • 4,261
  • 7
  • 43
  • 81
0
votes
1 answer

type numbers when shift key is pressed vb.net

i am using vb.net to edit a gridview value and when shift is pressed i want to edit multiple cellvalues that belong to a group in the same time, now my problem is when shift is pressed and i click a number key it will give me a symbole for example …
user1570048
  • 880
  • 6
  • 35
  • 69
0
votes
2 answers

Override default INT 9h

I'm trying to override the default interruption when a key is pressed. Here is my code : I don't understand why it doesn't work, it works with others INT numbers (43h for example) mov al,9h mov ah,25h mov bx,seg int9h mov ds,bx mov dx,offset…
abecker
  • 885
  • 1
  • 10
  • 15
0
votes
1 answer

Windows keyboard logging. A trait of the WM_CHAR message in various applications

Good day. There was a need to monitor typed text, ie No keystrokes, but namely derived characters. At the beginning I use the raw input method for obtain a virtual key codes of pressed keys, but this decision had to be abandoned because failed to…
0
votes
2 answers

How can I make AutoHotkeys's functions stop working as soon as the .exe is closed?

I'm testing AutoHotkeys as a way to block user's usage of Ctrl, Alt and Windows Key while an application is running. To do this, I compiled the code: LAlt::return RAlt::return LControl::return RControl::return RWin::Return LWin::Return into an .exe…
Momergil
  • 437
  • 1
  • 5
  • 20
1 2 3
20
21