M
Michael Linfield
Generally speaking, I want to use:
Win32API.new('user32','GetAsyncKeyState',['i'],'i')
in the same way as:
Win32API.new('crtdll','_getch',[],'L').Call.chr
#########
I'm trying to take all of the user input typed into say a text document
and modify it in realtime.
Using GetAsyncKeyState with a hash of hex characters (because
GetAsyncKeyState only generates a 0 or 1 depending on the state of the
key)...only allows me uppercase letters... however _getch allows me to
translate ascii into uppercase and lowercase.
The problem with _getch is that it cannot be run in the background,
hence the need to type directly into the shell... which would defeat the
purpose of realtime manipulation of input.
Any suggestions are much appreciated.
- Mac
Win32API.new('user32','GetAsyncKeyState',['i'],'i')
in the same way as:
Win32API.new('crtdll','_getch',[],'L').Call.chr
#########
I'm trying to take all of the user input typed into say a text document
and modify it in realtime.
Using GetAsyncKeyState with a hash of hex characters (because
GetAsyncKeyState only generates a 0 or 1 depending on the state of the
key)...only allows me uppercase letters... however _getch allows me to
translate ascii into uppercase and lowercase.
The problem with _getch is that it cannot be run in the background,
hence the need to type directly into the shell... which would defeat the
purpose of realtime manipulation of input.
Any suggestions are much appreciated.
- Mac