Change keyboard "Enter" key text in Windows store apps - c#

I have a question about renaming soft keyboard keys in Windows Store Apps (C#).
Is it possible to rename soft keyboard key?
For example, I need to rename key "Enter" to "Send". Is it possible?

It is not possible to rename a soft keyboard key. Here is further information on the touch keyboard, which details how it is a system component (so changing it from an app isn't possible).

Related

Windows Forms: simulate holding key down on keyboard

During my search, I've seen many different versions of this question, yet somehow none of the solutions provided solved my problem.
It's really quite simple, I just want to simulate holding down a key on the keyboard through code. I want to try and make a character in a game walk forward constantly, so I just need to make a program that simulates holding down the 'W' key. I've seen a lot of people were using Windows Forms for this, I don't know if it actually is the right application but if it works I'm happy.
Just very quickly sending the key doesn't work, so simply calling SendKeys.Send('W') every 30ms does not make my character move in-game. So, what can I do to simulate holding down a key on the keyboard?
Here you go, a .Net library can simulate key press
https://inputsimulator.codeplex.com/
Edit
To get the key works, the external program must in active window, and your program need to run in background.
Windows Forms provides the SendKeys method which can simulate text
entry, but not actual key strokes. Windows Input Simulator can be used
in WPF, Windows Forms and Console Applications to synthesize or
simulate any Keyboard input including Control, Alt, Shift, Tab, Enter,
Space, Backspace, the Windows Key, Caps Lock, Num Lock, Scroll Lock,
Volume Up/Down and Mute, Web, Mail, Search, Favorites, Function Keys,
Back and Forward navigation keys, Programmable keys and any other key
defined in the Virtual Key table.
It provides a simple API to simulate
text entry, key down, key up, key press and complex modified key
strokes and chords.

Barcodes PageUp and PageDown Keys

In my application I use Page Up and Page Down as navigation keys. Works with powerpoint presentation pointers.
My software also uses barcodes, with a barcode scanner working as an enumerated keyboard. What I am trying to do, is trying to create a barcode, that can be scanned and trigger the same key press as the PageUp and PageDown keys.
As suggested by Shane, I have solved my problem by introducing a character sequence in my software.
%[CMD_PageUp], %[CMD_PageDown] etc.
I capture the key press event for when these have been entered to then process the same function that pressing PageUp or PageDown would.

Prevent Key Presses from Leaving Application

I want to essentially absorb key presses.
I'm currently using key preview on my main form and have an event handler for a key press that checks if the windows key is pressed. Is there a way to prevent the key press for leaving the application and opening the start menu?
There is an option for specific controls to suppress a key press, is there a way to suppress a key press to Windows?
The only way to intercept keyboard events outside your application is with P/Invoke SetWindowsHookEx. This will set a global callback to keyboard events agnostic of the focused application.
Several places to start looking:
How to disable windows startmenu using vb.net?
Disable Windows Key [Resolved] - has a reference to SetWindowsHookEx
Disable CONTROL + ALT + DELETE and Windows(win) Key in Windows 7 using Win32 application

Detect pressed key on Desktop

I want to know how can i detect which key pressed (for example on Desktop or my computer ).
when detect pressed key show it with MessageBox
how can i do this?
Detecting the key presses outside of your application requires installing a Low Level Keyboard Hook. Here is a CodeProject article demonstrating the process.

How can I open my C# application by pressing keboard key?

I created one desktop application in C# with installation version.
I installed this application onto the machine. Now I want to open this application by pressing the Ctrl key of keyboard.
That is when the user press the Ctrl key my installed application is open.
How can I open a particular search page of my application by pressing a particular key of the keyboard?
Like the Picasa software.
Well this is no programming but a Windows feature. You have to define a shortcut for that application by opening the property page of that shortcut. There under the shortcut tab you can define the shortcut keys.
For the search key you probably have to attach your main form to the KeyPress event.
Defining key in Shortcut (link) properties would work but not if want just the Control key to activate. To do this you need another application, running in background and auto-starting that listens to keyboard events (hooks).

Categories