Windows Logger

Category:
Miscellaneous
Type:
Applications
Difficulty:
Beginning
Author:
Anonymous

Version Compatibility: Visual Basic 6

More information:
The following form, once compiled into an executable, will log the date and time every time you turn the computer on, or off. To implement this code, open Notepad, copy and paste the included code and save the file as Form1.frm. Then open the file in Visual Studio 6 and either run the project or “make” the executable. Once you’ve made the executable, place the file on C: drive and add a shortcut in Start > Programs > Start Up. This can be extended to log other actions upon other events.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: