Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 "Press Any Key" Flashing Box
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Warchamp7




PostPosted: Fri Sep 05, 2008 3:22 pm   Post subject: "Press Any Key" Flashing Box

So yeah, trying to make a sequence that halts everything until you hit a key. Now, this works fine except for that hideous flashing box.

How can I get rid of said box? I've tried Input.Pause and getch but it still remains : /
Sponsor
Sponsor
Sponsor
sponsor
cavetroll




PostPosted: Fri Sep 05, 2008 3:25 pm   Post subject: Re: "Press Any Key" Flashing Box

code:

setscreen("nocursor")


If that doesn't work, its something along those lines.
Warchamp7




PostPosted: Fri Sep 05, 2008 3:27 pm   Post subject: Re: "Press Any Key" Flashing Box

cavetroll @ Fri Sep 05, 2008 3:25 pm wrote:
code:

setscreen("nocursor")


If that doesn't work, its something along those lines.


I'm laughing at myself right now. Totally forgot about nocursor, thank you.
Clayton




PostPosted: Fri Sep 05, 2008 5:27 pm   Post subject: RE:"Press Any Key" Flashing Box

It would be much preferred for you to use View.Set() over setcreen(). If you have a question as to why, check out my tutorial on View.Set() in the Turing Walkthrough.
Warchamp7




PostPosted: Fri Sep 05, 2008 8:48 pm   Post subject: Re: RE:"Press Any Key" Flashing Box

Clayton @ Fri Sep 05, 2008 5:27 pm wrote:
It would be much preferred for you to use View.Set() over setcreen(). If you have a question as to why, check out my tutorial on View.Set() in the Turing Walkthrough.


I use View.Set Razz I just forgot the parameter Smile
SNIPERDUDE




PostPosted: Fri Sep 05, 2008 9:17 pm   Post subject: RE:"Press Any Key" Flashing Box

haha, I can't find the "any key".

Sorry...

for keyboard input you could just use
Turing:
Input.Flush  % Erases any previous information on pressed keys
loop
    % anything else here
    exit when hasch  % checks to see if any key is pressed
end loop
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: