forums

TNT Basic Forums > Programming Q&A
raw key filter causing bugs?
< Last Thread     Next Thread >
Author
Thread        Post A Reply

06-02-2004 12:36

Posted by:
mark_667

Location:
England

Click Here to Email mark_667   Find more posts by mark_667

Hi,
I found that when I use the raw key filters in a simple if statement in my code it gives me the error:

Signal raised.
CTextViewer ::SwitchToNote() Error displaying note
File :CTextViewr.cpp
Line :596

the code is:

Activate input
keyboard repeat off

int Raw_Key
int Text

repeat
Draw_String_Cursor()
wait key press
Raw_Key=keyboard raw key
Text=raw key ascii(Raw_Key)

if raw key filter navigation (Raw_Key) or raw key filter delete(Raw_Key) or raw key filter number(Raw_Key)
end if
until Text=13 'ASCII code 13 = Return key

I reemed out everything else in this procedure to make sure that it was not been affected by something else, so I know the bug is in this code somewhere. Any information would be useful.
thanks,
Mark_667

07-18-2004 23:24

Posted by:
Mark Tully

Location:
TNT HQ, England

Click Here to Email Mark Tully   Find more posts by Mark Tully

Raw key filters are broken in TB 1.2. I wrote them then forgot to link them into the interpreter properly, hence these strange messages.

Try using 'raw key scancode' and comparing the results to those shown on the help page for the 'pressed' command.

Sorry!

Mark

All times are GMT        Post A Reply

Forum Jump:
< Last Thread     Next Thread >

< Contact Us - TNT Basic >

Powered by: vBulletin Lite Version 1.0.1 Lite
Copyright © Jelsoft Enterprises Limited 2000.