473,625 Members | 3,111 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Changing the function keys (ctrl,alt shift) F1..F12

how can i put some text into these key by C# code ?

In the old days you could do it by the PROMPT command i DOS but it seems NOT
to work any more - the "change key" facility has disappeared.

Can I do the change from C# so that it will stay changed when I start
another program ?

Best regards
KSor, Denmark

Dec 4 '07 #1
3 4219
KSor,

What do you mean you want to put some text? Is it that when you hit
those buttons, you would get some text inserted into your application, no
matter what the app? Something tells me that you can't really do this (at
least in windows apps) as every windows app is going to process those keys
individually (for example, hitting a key in one app will have a completely
different effect than hitting the same key in another app).

Or are you trying to do something else?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"KSO" <keld DOT soerensen@os DOT dkwrote in message
news:70******** *************** ***********@mic rosoft.com...
how can i put some text into these key by C# code ?

In the old days you could do it by the PROMPT command i DOS but it seems
NOT
to work any more - the "change key" facility has disappeared.

Can I do the change from C# so that it will stay changed when I start
another program ?

Best regards
KSor, Denmark

Dec 5 '07 #2
Yes thats what I want - but you say it can't be done - :-(

Thanks !

"Nicholas Paldino [.NET/C# MVP]" wrote:
KSor,

What do you mean you want to put some text? Is it that when you hit
those buttons, you would get some text inserted into your application, no
matter what the app? Something tells me that you can't really do this (at
least in windows apps) as every windows app is going to process those keys
individually (for example, hitting a key in one app will have a completely
different effect than hitting the same key in another app).

Or are you trying to do something else?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"KSO" <keld DOT soerensen@os DOT dkwrote in message
news:70******** *************** ***********@mic rosoft.com...
how can i put some text into these key by C# code ?

In the old days you could do it by the PROMPT command i DOS but it seems
NOT
to work any more - the "change key" facility has disappeared.

Can I do the change from C# so that it will stay changed when I start
another program ?

Best regards
KSor, Denmark


Dec 5 '07 #3
I wouldn't say that it can't be done, but you would have to have a
general interface for inserting text into any arbitrary application. At
best, you could guess how this could be done (through automation, sending
the WM_SETTEXT windows message, through the accessibility APIs), but it's
not easy.

You might be able to do something using the clipboard though, like
telling the application to paste the contents from the clipboard. Of
course, you should be careful not to overwrite what is currently on the
clipboard.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"KSO" <keld DOT soerensen@os DOT dkwrote in message
news:B0******** *************** ***********@mic rosoft.com...
Yes thats what I want - but you say it can't be done - :-(

Thanks !

"Nicholas Paldino [.NET/C# MVP]" wrote:
>KSor,

What do you mean you want to put some text? Is it that when you hit
those buttons, you would get some text inserted into your application, no
matter what the app? Something tells me that you can't really do this
(at
least in windows apps) as every windows app is going to process those
keys
individually (for example, hitting a key in one app will have a
completely
different effect than hitting the same key in another app).

Or are you trying to do something else?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"KSO" <keld DOT soerensen@os DOT dkwrote in message
news:70******* *************** ************@mi crosoft.com...
how can i put some text into these key by C# code ?

In the old days you could do it by the PROMPT command i DOS but it
seems
NOT
to work any more - the "change key" facility has disappeared.

Can I do the change from C# so that it will stay changed when I start
another program ?

Best regards
KSor, Denmark



Dec 5 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
18208
by: skipc | last post by:
Hi, I am stuck... I've got a popup window that displays a list in table format with links on the bottom to navigate the list <prev> 1 2 3 ... <next> When I demo'd to the users... they immediately asked if they could use the arrow keys and enter key to navigate the list. I think there must be a way to do this, but I can't figure it out.
11
3641
by: Yannick Turgeon | last post by:
Hello all, I'm using A97 and W2k. We have a little problem here. Sometimes (often?), users (all co-workers) are hitting <ctrl>-G by mistake and are stucked in the debug window. I would like to change the keys (<shift><ctrl>-G or something like that) that open this window. And I really want to be able to open it when I (the programmer) want it.
3
2286
by: GS | last post by:
If I were to capture enter key on keyup event of an GUI object like comboBox box, How do I avoid killing ctrol-c, controlv, controlx, shift-insert, shiftdelete, contrl-insert
12
1922
by: iKiLL | last post by:
Hi I am new to C#, i have come from a VB6 backgrouond. What i am looking for is a list of the Short cut keys for C# and what they do. I am in perticulare looking for the keys to jump to a Decleration and then back to where you came from in the code, like in VB6. (SHIFT+F9 and CTRL+SHIFT+F9)
1
2902
by: Emma Middlebrook | last post by:
Hi there, I'm trying to handle some shortcut keys within my application and I can't seem to get the code to work when you are trying to action against a ctrl + other character. I found a post http://groups.google.co.uk/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/a0bfd442d01f715f/27cbc8062c107680?lnk=gst&q=c%23+shortcut+key+ctrl&rnum=3&hl=en#27cbc8062c107680 that appears to help a lot but it doesn't seem to work...
1
3056
by: phcmi | last post by:
Within a mousedown event, can you please show a code sample of how to ascertain whether the CTRL and/or ALT and/or SHIFT keyboard key is pressed? Thank you
3
5244
by: hzgt9b | last post by:
Using VS2005, VB.NET, I am developing a windows app that has a DataGridView. I want to enable the display of a context menu on this DataGridView only when a specific set of keys is also pressed (like CTRL+ALT+SHIFT). TO this point I have code that only displays the context menu while keys CTRL +ALT+SHIFT are pressed - but after the keys are released the context menu still gets displayed. Can someone tell me where the following code is...
0
818
by: kandi | last post by:
Hi I have connected some forms through short-cut keys. When i initially enters in the root form, and if the focus in on JtextComponent, the short-cut ctrl-shift-o does not works. More interesting thing is that if i use some other alphabet than o like (r, s), it works. And if i have used some other short-cut before like ctrl-shift-r before pressing ctrl-shift-o, the ctrl-shift-o also works. Is this problem with the API, or code...
0
8189
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8692
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8497
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7182
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4089
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4192
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2621
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1499
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.