12-28-2018, 05:24 PM
(This post was last modified: 12-28-2018, 07:37 PM by Hsin-Ho Chen.)
I test to convert "keystrokes" into ASCII characters (32 space, 65 A, to 126 z) by this thread.
e.g. by inputs from my standard US keyboad, when CapLock is off.
I type 'A' key from keyboard, it usually displays 'a' character ( like a simple EditBox).
I type 'shift'+'A', it should displays 'A'.
I type '1' key from keyboard, it displays '1' character, in this editor box.
I type 'shift'+'2', it displays '@' ( character @ )
then I play the code ('shift'=10)
[code]
str s
int i
rep
int vk=wait(5 KF) ;; then I press keystroke 'S'+'2'
if( ifk(S) and ifk('2')) ;; then s='@'
......
QmKeyCodeFromVK(vk s)
out s ;;it should show '@'
(if I press 'shift'+'A', it display 'S' but not 'A')
How can I invent some coding to display 'A' after press 'shift'+'A'
, and it can display '@' after I press 'Shift'+'2' two keys at the same time.
repeating continous keystrokes, then displaying "words@..." into a Str variable
Please, teach me or introduce some learning material, thanks!
e.g. by inputs from my standard US keyboad, when CapLock is off.
I type 'A' key from keyboard, it usually displays 'a' character ( like a simple EditBox).
I type 'shift'+'A', it should displays 'A'.
I type '1' key from keyboard, it displays '1' character, in this editor box.
I type 'shift'+'2', it displays '@' ( character @ )
then I play the code ('shift'=10)
[code]
str s
int i
rep
int vk=wait(5 KF) ;; then I press keystroke 'S'+'2'
if( ifk(S) and ifk('2')) ;; then s='@'
......
QmKeyCodeFromVK(vk s)
out s ;;it should show '@'
(if I press 'shift'+'A', it display 'S' but not 'A')
How can I invent some coding to display 'A' after press 'shift'+'A'
, and it can display '@' after I press 'Shift'+'2' two keys at the same time.
repeating continous keystrokes, then displaying "words@..." into a Str variable
Please, teach me or introduce some learning material, thanks!