Ive tried using a thread with the following code (partial), but it crashes for some reason...
Code: Select all
Procedure ControlInput(a)
Repeat
ExamineKeyboard()
In$=KeyboardInkey()
If In$
TextInput$+In$
Debug In$
If KeyboardReleased(#PB_Key_Delete)
TextInput$=Left(TextInput$,Len(TextInput$)-1)
EndIf
EndIf
Until KeyboardPushed(#PB_Key_Return)
AddChat(UCase(Username)+": "+TextInput$,1)
Chat=0
Keylock=0
TextInput$=""
EndProcedure
The Examine keyboard only runs once, either in the main loop or in this loop, depending on the value KeyLock.
Any suggestions?
Thanks
Mike

