473,499 Members | 1,691 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to get the key stroke

92 New Member
I want to get the key what I have pressed. I got it through keypressed and keyup events. but i need to get through window procedure. can you help me....
Nov 24 '09 #1
3 1938
MrMancunian
569 Recognized Expert Contributor
i need to get through window procedure.
Huh? Please elaborate on your problem and post the relevant code that you already have.

Steven
Nov 25 '09 #2
Frinavale
9,735 Recognized Expert Moderator Expert
Not sure what the problem is....
You already seem to know that you can use the Control.KeyUp event...

-Frinny
Nov 25 '09 #3
!NoItAll
297 Contributor
My "guess" is that you want to hook keystrokes outside of all applications running in Windows, i.e. setup a hot key that will tell Windows to do something (like launch a program). To do this you will need to use windows API code which involves API declarations and marshalling unmanaged code. Doing this is not scary, but is not for anyone who can not supply, at least, some basic starting code and a full and clear explanation of what you want to do.
Honestly, you could be writing a keystroke logger - and no one on this forum would be very excited about helping ANYBODY (who would likely be low-level scum) do that.
Nov 25 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
2877
by: DS | last post by:
Is there a key stroke that you can use to copy the previous record into the new record? This is in Datasheet view. Thanks DS
0
1170
by: Nadav | last post by:
Hi, I am writing a VS.NET AddIn, I wish to get key-stroke events from the IDE e.g. F5, CTRL+F2, ... I didn't find any method/event that provide this kind of functionality... How can I get...
2
2336
by: Nadav | last post by:
Hi, I am using a rich-edit control, I want the control to adjust so any new text added to the control will always be shown ( similar to the way VS.NET output pane works ), in other words: any...
0
1334
by: Omkar Mate | last post by:
I am developing a Win32 console application (VS.NET, VC++) in which I have to demonstrate the API - "WaitForSingleObject". I have to wait on some key stroke "event". Which event should I use for...
2
12191
by: orekinbck | last post by:
Hi There In C# windows app, .NET 2003 I have a text box with the following event handler: private void textBox3_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) { if (e.KeyCode...
4
1531
by: alien2_51 | last post by:
I have a form with several buttons, I'd like to default to a specific button on the Enter keypress event, How would I do this...?
4
43933
by: one.creepy | last post by:
What would be the keyboard stroke for EOF? while((c=getchar())!=EOF) printf("%c",c); what would cause the program to come out of the while loop?I am using the compiler that comes with SDK. ...
4
1231
by: giannis | last post by:
How can i bind a keyboard stroke to a form for a specific keyboard key and write code for this event ?
5
1492
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
In ASP classic is there a way to prevent copying of the web page by preventing the use of the copy command through CTRL-C. What is the code that would need to be inserted. Thanks! Dave
7
20744
gregerly
by: gregerly | last post by:
Hello, I'm just starting to play around with Flash, and I'm wondering how I can apply a stroke color to fonts in flash cs3? I've tried breaking the text apart, then breaking apart again (so each...
0
7134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7014
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7180
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7395
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5485
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3108
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3103
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.