Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
key-pressed
- Page 1
key-pressed event
Programming
Software Development
12 Years Ago
by libathos
I was wondering how is it possible to receive a "
key
-
pressed
" event in Java even when my program is in background.
Some action tobe done in RTB when Enter key pressed....
Programming
Software Development
14 Years Ago
by Nivass
… the rich text box. i.e; If user
pressed
enter
key
the rich text box cursor should not move to next … action. I have achived this to some what. When enter
key
pressed
it do action what needs to be done. the issue… the RTB. Say pointer in 70 line and i
pressed
enter
key
pointer move to 71 line and do the action what…
Re: how to get the last key pressed without stopping the programm ?
Programming
Software Development
20 Years Ago
by mango_maniac
… that checks for if the
key
pressed
was the esc
key
. (this is compilable if ….bKeyDown) { // Retrieve the character that was
pressed
. buffer[0] = input[0].Event.KeyEvent.uChar…if(buffer[0] == 13){ break;} // enter
pressed
if(buffer[0] == 8){ // backspace pw.erase…
Re: checking string of key pressed
Programming
Software Development
17 Years Ago
by manoshailu
… Sub Form_Load() Me.Show 'The form must handle the
key
events Me.KeyPreview = True strOfKeys = "" …KeyPress event..." & Chr(KeyAscii) & "
Key
pressed
", vbInformation, "Form Events" End Sub Private Sub…3. then u trying again by pressing one
key
it ncreases by one so the value of the…
Re: how to get the last key pressed without stopping the programm ?
Programming
Software Development
20 Years Ago
by Emmitt310
…simple code snippet that checks for if the
key
pressed
was the esc
key
. (this is compilable if you know …) { case WM_KEYDOWN: switch(wParam) { case VK_ESCAPE: //the virutal
key
code for esc PostQuitMessage(0); break; } break; /* rest of …
checking string of key pressed
Programming
Software Development
17 Years Ago
by smiles
…Form_Load() Me.Show 'The form must handle the
key
events Me.KeyPreview = True strOfKeys = "…) ' This is to restrict the times of
key
typing If keypresscount < 4 Then strOfKeys =…event..." & Chr(KeyAscii) & "
Key
pressed
", vbInformation, "Form Events" keypresscount = keypresscount…
how to get the last key pressed without stopping the programm ?
Programming
Software Development
20 Years Ago
by WARburg
… greet Everyone I got a question about getting the last
key
pressed
without stopping the programm. I know that getchar(), cin, getch…
How to detect multiple key pressed globally with timer.tick function?
Programming
Software Development
10 Years Ago
by supun.lakshan
I want to do some action with the help of multiple
key
pressed
in vb.net even program is minimized. I've read the only way of detecting global keys is using a timer. So can someone **please** tell me how to do it? With multiple keys. (eg: ALT+A)
Re: key-pressed event
Programming
Software Development
12 Years Ago
by Majestics
http://www.ehow.com/how_12213334_grab-
key
-events-outside-java.html Read this article , Hope this help
Re: Key Listener
Programming
Software Development
14 Years Ago
by Slyvr
…
key
is used twice: [QUOTE]
key
pressed
playerx: 20
key
pressed
playerx: 40
key
released
key
released
key
released
key
pressed
playerx: 60
key
pressed
playerx: 80
key
pressed
playerx: 100
key
released
key
released
key
released
key
…
Key Listener
Programming
Software Development
14 Years Ago
by Slyvr
…{ public void keyPressed(KeyEvent e) { System.out.println("
key
pressed
"); if (e.getKeyCode() == KeyEvent.VK_RIGHT){ playerx+=20;…output: [QUOTE]
key
pressed
playerx: 20
key
pressed
playerx: 40
key
released
key
released
key
released[/QUOTE] For some reason, one
key
stroke replies with …
Re: Key Listener
Programming
Software Development
14 Years Ago
by Slyvr
….println("PLAYERX 1: "+playerx); System.out.println("
key
pressed
"); if ((p.getKeyCode() == KeyEvent.VK_RIGHT)&&(playerx…); } public void keyReleased(KeyEvent r) { System.out.println("
key
released"); } public void keyTyped(KeyEvent t) { System.out.…
key pressed and key released
Programming
Software Development
15 Years Ago
by lovesjavamuch
… and keyboard keys is to change chords. when i
pressed
a
key
and moving the mouse cursor i can do the strumming…, now my problem is when i released the
key
i still can do the strumming when i moving the… able to cut/stop the midi when i released the
key
? thanks in advance! [CODE] import javax.sound.midi.*; import java…
key press C++ Linux
Programming
Software Development
15 Years Ago
by julia2009
I'm writing a program in C++ under Linux that needs to wait for user to press a
key
. Considering the
key
pressed
the program will go accordingly. So I must be able to recover the
key
code from a variable afterwards. I will appreciate a good help.
Re: how to get the last key pressed without stopping the programm ?
Programming
Software Development
13 Years Ago
by pteryx
…&input, 1, &dw); ch = 0; // Process a
key
down input event. if( !( input.EventType == KEY_EVENT && input….bKeyDown ) ) { return 0; } // Retrieve the character that was
pressed
. ch = input.Event.KeyEvent.uChar.AsciiChar; // Function keys filtration if…
Re: how to get the last key pressed without stopping the programm ?
Programming
Software Development
13 Years Ago
by zeroliken
…, 1, &dw); ch = 0; // Process a
key
down input event. if( !( input.EventType == KEY_EVENT &&…| RIGHT_ALT_PRESSED | RIGHT_CTRL_PRESSED ) ) return 0; // if( ch == 13 ) // ...; // enter
pressed
return ch; } [/code][/QUOTE] you do realize your replying to…
Re: how to get the last key pressed without stopping the programm ?
Programming
Software Development
20 Years Ago
by mango_maniac
… capturing keystrokes without waiting for <return> to be
pressed
. If you could demonstrate a compilable snippet, I'd be…
Re: How to detect multiple key pressed globally with timer.tick function?
Programming
Software Development
10 Years Ago
by AleMonteiro
…, as it is all about callbacks. This is an simple
key
logger app, **please use it with care and conscience**, *don…
Re: Key Pressed/Released
Programming
Software Development
12 Years Ago
by RockJake28
For this I would use a
key
listener. This is basically an event that is triggered whenever a certain
key
is
pressed
. This is a really good tutorial for learning how to do it. http://docs.oracle.com/javase/tutorial/uiswing/events/keylistener.html
Re: Key Pressed/Released
Programming
Software Development
12 Years Ago
by javanoob101
… set to "true" when the space bar is
pressed
. All I had to do is make it false after…
Re: Suppresing a pressed key
Programming
Software Development
14 Years Ago
by NormR1
[QUOTE]problem is when one player keeps a
key
pressed
then the other
key
event does not execute[/QUOTE] Is there a …flow of events to the
key
listener? Are there only event coming from the
pressed
key
until that
key
is released? If so… you could restrict the time between handling
key
presses on a single
key
by requiring a minimum time between presses…
Intercept the CAPSLOCK key, ignore it system-wide
Programming
Software Development
14 Years Ago
by simoneaolson
… to do is intercept the CAPSLOCK
key
and ignore it (as if it weren't
pressed
in the first place) If the… to hook capslock and if shift was not
pressed
before, trash one of the
key
pressed
flags?? I have googled and honestly have…
Cannot capture textbox event when tab is pressed
Programming
Software Development
15 Years Ago
by tonymuilenburg
…, I'm trying to capture an event when tab is
pressed
in a textbox using visual studio.net, and am having… for keyup, keydown, keypress, and leave events, but the tab
key
does not set them off. I capture the enter…^ e ) { if(e->KeyChar == '\r') MessageBox::Show("enter
key
pressed
"); } [/CODE] Thanks in advance.
Suppresing a pressed key
Programming
Software Development
14 Years Ago
by gauravk_bhanot
…The problem is when one player keeps a
key
pressed
then the other
key
event does not execute.what i want …ba.t.resume(); flag=!flag; } } if(flag==false)//if paused
key
events wont work { if(ke.getKeyCode()==83) { System.out.println…
Re: Determin if key pressed
Programming
Software Development
15 Years Ago
by babalonas
[URL="http://lmgtfy.com/?q=if+
key
+is+
pressed
+c%2B%2B"]http://lmgtfy.com/?q=if+
key
+is+
pressed
+c%2B%2B[/URL] Google is your friend ;)
Application Key Listener not working
Programming
Software Development
13 Years Ago
by sirlink99
…move; velocity += accel; move = velocity - friction; x += move; } if (
key
== KeyEvent.VK_LEFT){ int move; velocity += accel; move = velocity - friction; x… // TODO Auto-generated method stub } } [/CODE] for some reason the
key
pressed
method will not activate. I have added the listener and…
Re: Click the mouse when key pressed.
Programming
Software Development
12 Years Ago
by np complete
…GetAsyncKeyState(VK_LSHIFT)) { printf("The left shift Has Been
Pressed
\n"); } Here is the definiton : `GetAsyncKeyState()`…be non-zero (positive) if the
key
specified is
pressed
down at the instant the functions is …often in hacks, for navigating menus, detecting
key
presses in the case of nonmenu hacks and…
Any function for C++ for performing instantly on getting a button pressed?
Programming
Software Development
12 Years Ago
by tayyabatiq
… user writes, and keep writing until the user presses ALT
key
. do{ //declaration string A; getline(cin,A); ofstream file; ifstream… says: wParam undeclared! I want to keep checking the last
key
pressed
, **without disturbing the input**. Anyone got any solution?
problem with adding shortcut key
Programming
Software Development
14 Years Ago
by Simon180
… a small problem am looking to add a shortcut
key
using control
key
and it will act like a button but the… trying to make it so you must have the control
key
pressed
down to keep the funcation active but it shud only… call the command once and when you release the control
key
it will free the process up any ideas? [CODE] procedure…
pause until any key pressed in linux
Programming
Software Development
17 Years Ago
by bhmails
Hi all, I'm new at c. How do I make the system pause until any
key
is
pressed
in linux like getche does in borland? thanks
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC