I have the following code:
call the checkcommand() from the thread doesn't work.
It doesn't fire up.
What am I doing wrong?
Code: Select all
CreateThread(@ScanKeysThread(), 100)
;
;
Procedure ScanKeysThread()
com$=""
Repeat
c=GetKey() ; Pause app until a key has been pressed.
If c 32 ; space pressed
com$=com$+Chr(c)
Else
MessageRequester("",com$,0) ; This works
checkcommand() ; this doesn't work
com$=""
EndIf
Until ForEver ; Loop forver
EndProcedure
;
Procedure checkcommand()
MessageRequester("",com$,0)
EndProcedure
Registered PB version : 3.2 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com