Share via


tutorial_WindowSpotlight

This tutorial demonstrates a use of the ImageSpotlight method. ImageSpotLight is a method on the system class Image; you can find it on the Classes node beneath the System Documentation node. ImageSpotLight will let you track the spotlight with the mouse, record the path and play it again.

When you have opened the tutorial, you must right-click to open a menu where you can choose Follow mouse or Record path.

To record and re-play mouse movements, an ASCII-file "Animate.txt" is used.

Most of the code is placed in the class SysWindowSpotlight. You can find the class on the Classes node in the Application Object Tree.

It is worth to noticing how file I/O is performed in the methods LoadPath and SavePath (both on the SysWindowSpotlight class). The Windows kernel function GetTickCount is used to time the recording and playback of the spotlight.