Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
too fast :)
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).
------------------------------------------------------------ redirector is dead
Visit my home page!

Messages In This Thread

Forum Jump:

Users browsing this thread: 1 Guest(s)