Click here to Skip to main content
15,897,273 members
Everything / KeyboardListener

KeyboardListener

KeyboardListener

Great Reads

by The Zakies
Tutorial 2 (how to interactively add multiple shapes GDI using linked lists)

Latest Articles

by The Zakies
Tutorial 2 (how to interactively add multiple shapes GDI using linked lists)

All Articles

Sort by Score

KeyboardListener 

17 Jan 2020 by Wendelius
Why not use keyReleased[^] Another option would be to use both keyPressed and keyReleased and if you have already jumped after the key has been pressed, you wouldn't jump again. In pseudo code, something like @Override public void keyPressed(KeyEvent e) { if(e.getKeyCode() ==...
9 Jan 2017 by Richard MacCutchan
1. The KeyListener will not know which shape you are referring to, you can only capture that information via the mouse.2. You would need to know where the focus is, i.e what shape was last clicked. You also need to decide how many pixels of a shape constitute each key press.
26 Feb 2015 by Sergey Alexandrovich Kryukov
The only correct way to programmatically simulate keyboard or mouse input is using the API SendInput:https://msdn.microsoft.com/en-us/library/windows/desktop/ms646310%28v=vs.85%29.aspx[^].All other methods, such as sending a message, using some library APIs, depend on many factors, such as...
4 Apr 2015 by Sergey Alexandrovich Kryukov
This is not too hard to do. All the basic steps are explained here: https://zairon.wordpress.com/2006/12/06/any-application-defined-hook-procedure-on-my-machine.—SA
24 Jun 2015 by Sergey Alexandrovich Kryukov
It's weird that you failed to create a working keyboard even after reading that really detailed step-by-step tutorial you referenced. Even though I'm against using some available source code when learning some techniques, you could do it and see how it works. One of the articles with complete...
18 Sep 2016 by CaptainEddy
I'm working on keyboard app and I want to change layout after user press particular key on keyboard. Check below imagesFor Example : Here - After we touch that button layout changes into thisCan anyone explain me how it's done?This is my java class which extends...
9 Jan 2017 by GaneshRfromSpace
My UI consists of 8 rounded rectangle shapes and each shape when chosen by keyboard's navigation buttons (Up and Down) should display a distinct frame. When I tried to add key listener to the shapes.. ((Component)homeShape).addKeyListener(new KeyListener(){ @Override public...
17 Jan 2020 by Member 14719776
Hi, i have a little problem because I want to my rectangle on jumping only one times when i click space, but not repeat when i holding this key What I have tried: @Override public void keyPressed(KeyEvent e) { if(e.getKeyCode() == KeyEvent.VK_SPACE) { jump(); } } public void...
19 Feb 2020 by Member 14749425
Hi everyone, I am working on a project in PYTHON and I want to create a keylogger for 2 languages english and greek. For this I have created the below code. from pynput.keyboard import Key, Listener from langdetect import detect from pynput...
3 Mar 2016 by The Zakies
Tutorial 2 (how to interactively add multiple shapes GDI using linked lists)
4 Apr 2015 by charysri206
I want to provide protection from the keylogger application. Keylogger is a software which secretly logs the keystrokes with out the knowledge of user. I need to detect the keyloggers using Anti-hooking technique ...Is their any other way to detect the keyloggers in the...
10 Jan 2013 by Christian Graus
What makes you think the keyboard layout changes on a per app basis ?
24 Jun 2015 by Steve Krakov
Hi,I work for a university psychology department. I'm an Android programmer, but I've never made a custom Android keyboard before, and I think that's what we'll need to do for our next study.Problem: create a custom keyboard in Android that works like a standard American English...
10 Jan 2013 by Ali Al-Masry
0 down vote favorite i am using this code to get the current keyboard layout name for my app .string Langu = InputLanguage.CurrentInputLanguage.LayoutName;its working fine ....but i want something like that to get the current Keyboard layout name for current active window...
26 Feb 2015 by Demian__
I've been looking a lot recently and I can not even find anything to lead me to the correct place.Any help would be much appreciated, even any suggestion where do i find TabTip documentation / api.
27 Nov 2015 by CodeGust
Java console app must catch keyboard input without pressing the 'Enter' key.How to implement key listener for Java console app?