I'm trying to get the keyboard input from the main callback function
of an application by calling the following function from a sub called
by the callback function. The function never returns:
function inkey() as string
dim pbkeystate as byte
do
getkeyboardstate pbkeystate
if pbkeystate<>0 then exit loop
loop
ip$=chr$(pbkeystate)
function=ip$
end function
I also tried to grab the key press with WM_KEYDOWN and write it to
a global variable, but that wouldn't return from a called function
either. How do I get the keyboard input from my main window from
a subroutine?
Best Regards
Jim
------------------
Jim Seekamp
[This message has been edited by Jim Seekamp (edited August 21, 2001).]
of an application by calling the following function from a sub called
by the callback function. The function never returns:
function inkey() as string
dim pbkeystate as byte
do
getkeyboardstate pbkeystate
if pbkeystate<>0 then exit loop
loop
ip$=chr$(pbkeystate)
function=ip$
end function
I also tried to grab the key press with WM_KEYDOWN and write it to
a global variable, but that wouldn't return from a called function
either. How do I get the keyboard input from my main window from
a subroutine?
Best Regards
Jim
------------------
Jim Seekamp
[This message has been edited by Jim Seekamp (edited August 21, 2001).]
Comment