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

Username:   Password: 
 RegisterRegister   
 How do you use letters (on a keyboard) to control an action?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
vdemons




PostPosted: Sat May 21, 2011 9:24 pm   Post subject: How do you use letters (on a keyboard) to control an action?

I am very familiar with the "Input.KeyDown (chars)", and the chars (KEY_UP_ARROW) and all that, but I want to also use the letters to do something as well. In the Turing guide it said to use ord, and I did but it gives me an error what do I do?
Sponsor
Sponsor
Sponsor
sponsor
HRI




PostPosted: Sat May 21, 2011 9:34 pm   Post subject: RE:How do you use letters (on a keyboard) to control an action?

if chars ('a')
then
%action
end if
vdemons




PostPosted: Sat May 21, 2011 9:42 pm   Post subject: RE:How do you use letters (on a keyboard) to control an action?

Oh well that was painfully obvious my bad Razz thank you very much.
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  [ 3 Posts ]
Jump to:   


Style:  
Search: