shortcuts: differentiating between keys: left/right ALT key, left/right CTRL key and the left/right WIN key
Submitted by Friday, 24 October, 2008 - 00:32
on
jEdit does not distinguish between the two plus signs on a keyboard.
When I set a shortcut from Utilities> Global Options> Shortcuts, jEdit doesn't want to distinguish between the two plus signs on a keyboard. It sees typing plus sign ("+") using the number pad and a plus sign typing shift with the equals sign ("=") as typing the same key.
This also holds true for the left/right ALT key, left/right CTRL key and the left/right WIN key.
jEdit needs to distinguish between the keys so I can set a shortcut using the number pad plus sign while also leaving the plus sign (next to the backspace on the keyboard) not set to a shortcut.
AutoIt (Windows automation language) distinguishes between the following keys when setting a hotkey or sending text (using HotKeySet() and Send(), respectively):
Plus ("+") keys: {+}, {NUMPADADD}
ALT keys: {LALT}, {RALT}
CTRL keys: {LCTRL}, {RCTRL}
WIN keys: {LWIN}, {RWIN}
Here are the Send Commands and the Resulting Keypress
http://www.autoitscript.com/autoit3/docs/functions/Send.htm
Example using AutoItScript:
HotKeySet('{+}', 'ShowMessageOne')
HotKeySet('{NUMPADADD}', 'ShowMessageTwo')
Func ShowMessageOne()
MsgBox(4096,'','You pressed the plus sign next using SHIFT + PLUS SIGN!')
EndFunc
Func ShowMessageTwo()
MsgBox(4096,'','You pressed the plus sign next using the number pad!')
EndFunc
While 1
Sleep(10)
WEnd
^In the above AutoItScript script, it differentiates between the two plus sign keys.
thanks
When I set a shortcut from Utilities> Global Options> Shortcuts, jEdit doesn't want to distinguish between the two plus signs on a keyboard. It sees typing plus sign ("+") using the number pad and a plus sign typing shift with the equals sign ("=") as typing the same key.
This also holds true for the left/right ALT key, left/right CTRL key and the left/right WIN key.
jEdit needs to distinguish between the keys so I can set a shortcut using the number pad plus sign while also leaving the plus sign (next to the backspace on the keyboard) not set to a shortcut.
AutoIt (Windows automation language) distinguishes between the following keys when setting a hotkey or sending text (using HotKeySet() and Send(), respectively):
Plus ("+") keys: {+}, {NUMPADADD}
ALT keys: {LALT}, {RALT}
CTRL keys: {LCTRL}, {RCTRL}
WIN keys: {LWIN}, {RWIN}
Here are the Send Commands and the Resulting Keypress
http://www.autoitscript.com/autoit3/docs/functions/Send.htm
Example using AutoItScript:
HotKeySet('{+}', 'ShowMessageOne')
HotKeySet('{NUMPADADD}', 'ShowMessageTwo')
Func ShowMessageOne()
MsgBox(4096,'','You pressed the plus sign next using SHIFT + PLUS SIGN!')
EndFunc
Func ShowMessageTwo()
MsgBox(4096,'','You pressed the plus sign next using the number pad!')
EndFunc
While 1
Sleep(10)
WEnd
^In the above AutoItScript script, it differentiates between the two plus sign keys.
thanks