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

Username:   Password: 
 RegisterRegister   
 F1 For Help...
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
happyface




PostPosted: Thu Jun 15, 2006 2:56 pm   Post subject: F1 For Help...

How can I make it so that if I press F1 (or another key like H) during my program, it will execute a help text file?
I tried Input.KeyDown in a process but thats not working.

Thanks.
Sponsor
Sponsor
Sponsor
sponsor
Delos




PostPosted: Thu Jun 15, 2006 3:03 pm   Post subject: (No subject)

Hello and welcome.

As a general tip, please include your code in some form when you post a question. It makes us helping you a lot easier when we have something to work with.
This particular instance has far too many possible areas of concern to be answered sans code. Also, remember to use [code] tags when posting!
happyface




PostPosted: Thu Jun 15, 2006 3:17 pm   Post subject: (No subject)

I'm sort of new to turing. My code is long and pretty messy but I'l post it anyway for people to try out and try to help me Smile

Theres pictures and an i/o file that need to be in the same dir.
TheOneTrueGod




PostPosted: Thu Jun 15, 2006 3:24 pm   Post subject: (No subject)

What possible concerns are there with using F1 + I/O?

Anyways, while processes are one way of doing it, why not just have a procedure that displays the help on the screen, and then call this whenever it is needed? Use Input.KeyDown, and look at the [Turing Walkthrough] for some help on file I/O.
happyface




PostPosted: Thu Jun 15, 2006 3:38 pm   Post subject: (No subject)

Concerns of using F1 with I/O? Not sure but I can use another key if thats a problem.

I understand I/O, my real question is how I get the program to constantly check if the user is pressing the help key assigned.
TheOneTrueGod




PostPosted: Thu Jun 15, 2006 4:12 pm   Post subject: (No subject)

same way you, say, check if the up key is held down Razz
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: