Jhd.Honza
Jan 10th, 2000, 03:39 AM
Hi again!
Some time ago, I asked for windows equivalent for dos Inkey$. I was warned about GetAsyncKeyState API function and I would like to thank you. But in Get... I must to determine if any of the key is pressed. Inkey$ always contains the pressed key - it is quicklier, and at the main point - it is more reliable: when I use Get... with very small interval, i will get the result sometimes more than 6x and when i use longer intervals, i will some keys forget. After some time with playing with it I find the correct interval, but the keys are not in correct order all the time.
Does anybody know something more powerfull, then GetAsynKeyState? I need to capture the key even if my apliation is not active!
------------------
Thanks,
John, 14 years old
Some time ago, I asked for windows equivalent for dos Inkey$. I was warned about GetAsyncKeyState API function and I would like to thank you. But in Get... I must to determine if any of the key is pressed. Inkey$ always contains the pressed key - it is quicklier, and at the main point - it is more reliable: when I use Get... with very small interval, i will get the result sometimes more than 6x and when i use longer intervals, i will some keys forget. After some time with playing with it I find the correct interval, but the keys are not in correct order all the time.
Does anybody know something more powerfull, then GetAsynKeyState? I need to capture the key even if my apliation is not active!
------------------
Thanks,
John, 14 years old