Can I use getch from msvcrt.dll?

Blitz3D Forums/Blitz3D Beginners Area/Can I use getch from msvcrt.dll?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi, I want to use getch + kbhit from msvcrt.dll, but for some reason I only get 0, so probably I'm doing something really wrong. Any ideas?

While Not KeyHit (1)
	Delay (100)
	;result=CallDLL( "msvcrt.dll","kbhit") ;result was always 0, tried too with "_kbhit"
	result=CallDLL( "msvcrt.dll","getch") 
	DebugLog result
Wend


Thanks.