33 posts
Posted 09 October 2012 - 12:04 AM
Im trying to make a control panel which will open when you press CTRL ad ALT. I have tried if "key == 29 and 56 then" thinking it would work. Any ideas?
231 posts
Posted 09 October 2012 - 12:17 AM
I don't think this is possible to do, because you can't tell when someone stops holding a key down.
8543 posts
Posted 09 October 2012 - 02:10 AM
The best way to do this would be to start a very short timer (say, a tenth of a second or so) when either key is pressed. If the other key is pressed before the timer expires, you could consider them to have been pressed at the same time.