How to change function keys behaviour in action mode - windows

My Laptop has a Keyboard with Function keys layout as below
image
Is it possible to reassign F5 to media-prev ( ⏮ ) and F9 to media-next ( ⏭ ) in actions mode and still keeping default behaviour in function keys mode?
If yes please provide a guide..
Any help is appreciated

Related

Using KeyRemap4MacBook to bind a keyboard key to a scroll action?

Basically, I want to bind a certain letter to scroll up the mouse reel, and do so continuously if I hold the key continuously. I need it to work even if other keys are being pressed at the same time, and only work on a certain window title/tab title in the browser.
I basically want to emulate the function of the autohotkey program for the "Attack On Titan Tribute Game"'s reeling function.
An AutoHotKey equivalent is available at:
http://fenglee.com/forum/viewtopic.php?f=2&t=7548
(Which may be offline due to unknown reasons, might have to wait)
Basically, if you download the application, set Reel In to the "x" or "e" key, it works regardless if other keys are being held. Just make sure you uncheck the checkbox so it can work in any window. It basically scrolls down for you. It also includes the source.
Or.. if I can use any other free application to do the same thing, that'd be nice.
All I want is the scrolling function and it has to be specific to a window/plugin/etc. and be able to be triggered while holding down other keys.

Continuous key press event in Silverlight application

I am making application using silverlight.Here i want to move line on screen continuously on left and right arrow key pressed. In silverlight application there is facility of RepeatButton but i am not getting how to use it. Please help me if there is any solution on that.Thanks in advance.
An easier method would be to have (bool) flags like "keyLeftPressed" and "keyRightPressed". Then, on a specific tick (from a DispatchTimer possibly), check if the flags are set and take appropriate action. Finally, use four events to set the condition of the two flags: left key pressed, left key released, right key pressed, right key released.

Pre-define global hotkeys in a cocoa application and the keyboard layout

I'd love to pre-define some global hotkeys in my little cocoa application, and my question is: should I worry about the keyboard layouts?
I mean for example, when I pre-define a global key combo like "Cmd+Opt+A", I can look up key code of 'A' and hard-code it in my program, but i'm not sure if it would be a problem when users using a different keyboard layout rather than mine. Aslo, is it OK to use kVK_ANSI_A etc in this situation? What's the best practice to handle this kind of problem?
Thanks!
Keycodes are designed to be universally. That is why they are used rather than just the letter "A". So yeah, it is safe to do so. Here is a very useful app on the mac app store for finding key codes. They keycode for "A" is 97. So you can register a hotkey using keycode = 97 and modifierFlags = NSCommandKeyMask | NSAlternateKeyMask;

How to determine the value of key pressed in Windows Phone 7 Numeric Keyboard?

I hooked up an event handler to the KeyDown event of a TextBox. The event handler has an argument of type KeyEventArgs with properties Key and PlatformKeyCode. The issue is for both the 1 and ! keys pressed on the windows phone soft keyboard, the values for Key and PlatformKeyCode are D1 and 49 respectively. I cant tell which key was pressed. Also the Keyboard.Modifiers static property returns "None"
So how do I determine the key that was pressed?
This is a known issue.
KeyDown/OnKeyDown and KeyUp/OnKeyUp issues
You could always read the input values instead and act on 1 / ! seperately.
This very much looks like a bug.
This exists on both the emulator and real devices.
If using the pc keyboard with the emulator the modifier keys are detected on key down so this won't work.
Interestingly, if using a device with a physical keyboard, if the function/shift button is enabled it triggers 2 keydown events when the other button is pressed. One for the correct keycode and one for the modifier key but Keboard.Modifier always equals "None".
It looks like you need to read the textbox value before and after the TextChanged event.

Programatically triggering tab key functionality in a VB.Net windows application

How can I programatically trigger the tab key functionality in a VB.Net windows application?
Currently in my application I am using one splitter when I press the tab key, and the focus is moving in the right order.
However I need to use arrow keys to move the focus to next controls, in the same way that the focus is going when the user presses the tab keys.
Thanks in Advance
You can simulate the SendKeys.Send(string) method (in the Systems.Windows.Forms namespace). To simulate a tab keypress you would call SendKeys.Send("{TAB}").
To see all the key codes, check out http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.aspx
Better late, than never, since i found this post looking for a solution to a similar problem.
Windows Form type has ContainerControl somewhere in its chain of inheritance and that has a method ProcessTabKey(Boolean trueForForward) . It does exactly what you need, inside your form instance this.ProcessTabKey(true) will move focus forward along the tab index and this.ProcessTabKey(false) will move it backward.
Very simple code
Write Down this in KeyDown Event of Datagridview
If e.KeyCode = Keys.Enter Then
' Your code here
SendKeys.Send("{TAB}")
e.Handled = True
End If

Resources