Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Waiting for keys

Status
Not open for further replies.

hatman88

Programmer
Aug 22, 2007
16
US
You see, what i want to do is wait for the user to press one of two keys, each one does something different. Is there any way that can be done? I've tried waitforkeys, but it only works for one key.

Thanks in advanced.
 
Have you tried using the 'Case' method?


select case KeyPress
case 1:C
do whatever
case 2:b
do something else
end select



"Children are smarter than any of us. Know how I know that? I don't know one child with a full time job and children."...Bill Hicks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top