Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
too fast :)
#4
slenkar Wrote:I want the cursor to move continuously if the key is held down for 1.5 seconds, how do I measure that time?
You can use the FRAMES systemvariable (3 bytes at 23672). For 1.5 seconds just wait until the first byte (or was it last?) is greater than 73, now you can do your action. Then poke it again with zero. If you not want to reset it for some other reaseons, can also use all three bytes together, and calculate a modulo of 75 from it, but I prefer to reset it, and use one single byte, or two bytes (Uinteger) for speed reasons (65536 Frames=1310 seconds=21 minutes).
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)