I can't get a function called by pressing a key. Here's a quick example of what i'm talking about:
How do you call functions by pressing a key? My code above doesn't work..
Graphics 800, 600 While Not KeyHit(1) If KeyDown(156)=True Then dothis(a$) ;enter key Flip Wend End Function dothis(a$) a$ = "asd" Print a$ End Function
How do you call functions by pressing a key? My code above doesn't work..