>Create a timer class with one line in the timer event:
>
>DEFINE CLASS MyTimer AS Timer
>Interval = 1000
>FUNCTION Timer
> CAPSLOCK(!CAPSLOCK())
>ENDFUNC
>ENDDEFINE
>
>Then add the object to the screen in the startup program
>
>_SCREEN.AddObject("Timer1","MyTimer")
>
>
>The cool thing is, you can do this in an executable that doesn't have a user interface (can run invisibly, only visible in the task manager) and the eternal annoyance will work in all applications.
>
>(For those who haven't figured it out, this will cause the Caps Lock to toggle on and off every second)
I thought this was too fun not to try out on a non-suspecting co-worker, but sadly, it doesn't seem to work outside the VFP app. :-(
Archaic sidenode: I once made a small program which loaded in Autoexec.bat and emulated the command line, supporting two commands: DIR and CD/CHDIR. Anything else gave a "Bad command or file not found". Real fun to watch...
(evil)Arne
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only