Hmmm. so I've managed to emit event 69 each time my CreateTimer ticks.
How would I use that template (or any other method) to add a hook which checked for my event 69 and output "Hello World!" when 69 occurs?
<edit> So, I now have a hook using fliphook and a user-event...
How would I link the2 together so "Hello World!" is displayed when the timer ticks? I tried with EmitEventHook but I'm then back into the realms of confusion.
How would I use that template (or any other method) to add a hook which checked for my event 69 and output "Hello World!" when 69 occurs?
<edit> So, I now have a hook using fliphook and a user-event...
Function MyHook:Object( id,data:Object,context:Object ) Print "Hello World!" End Function Local MY_EVENT:TEvent=CreateEvent(69) Local myTimer:TTImer = CreateTimer(3,MY_EVENT) 'Add our hook to the system AddHook FlipHook,MyHook Graphics 800,600 While EventID() <> EVENT_KEYDOWN WaitEvent If EventID() = 69 Print "Timer has ticked " + TimerTicks(myTimer) + " times" EndIf flip EndWhile
How would I link the2 together so "Hello World!" is displayed when the timer ticks? I tried with EmitEventHook but I'm then back into the realms of confusion.