Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Evil FoxPro Tricks
Message
From
25/06/1999 11:43:23
 
 
To
25/06/1999 08:40:10
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00233062
Message ID:
00234002
Views:
35
>>>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. :-(
>>
>
>Worked in Word for me...

Hmm, strange. Not worth wasting too much time on maybe, but I can see the CapsLock light flashing on and off without beeing affected at all in any other program (Word, Notepad). Works fine in VFP, though. :-)

Arne
Previous
Reply
Map
View

Click here to load this message in the networking platform