473,563 Members | 2,867 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 1945
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
2884
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
1178
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 key-stroke event from the DTE???? ThanX Nadav.
2
2342
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 time a new text is added to the control I want the control to manually roll down so the added text would always be shown, achieving that manually...
0
1341
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 this purpose? A code snippet will really help. Thanks in advance Omkar
2
12206
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 == Keys.A) e.Handled = true;
4
1537
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
43950
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. Thanks C Novice.
4
1234
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
1499
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
20754
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 character is now a shape, but it will not let me apply a stroke to the text. Any help would be much appreciated. Thanks, Greg
0
7665
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7888
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7950
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6255
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3643
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.