We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Small Basic key tester (w/ no extensions)
#1
Rainbow 
Easy!
This key tester program actually worked! (works in v1.3 and even v1.2)
It also respected the dynamic Y pos thing I tried. So Small Basic even accepts math... I'm thinking of a calculator now.
No dependencies.
ID: HSKG394.000
Link: https://smallbasic.com/program/?HSKG394.000
Code:
GraphicsWindow.Title = "Key Test"
GraphicsWindow.KeyDown = Onkey
y = 0

Sub Onkey
  l = GraphicsWindow.LastKey
  GraphicsWindow.DrawText(0,y,l)
  y = y + 10
EndSub
[-] The following 1 user Likes sm4llprogrammer2008's post:
  • AbsoluteBeginner
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)