Unit AMAutoRun |
TAMAutoRun version 1.2 Did you ever want a component that you can just drop on your form to register your app to run automatically when Windows starts up? Look no further, here it is. There are three different ways to use this tiny component: A. Drop it on your form, set the AppItemName-property (it must be unique) it can have spaces, leave AutoRegister-property true and thats all you have to do B. Drop it on your form, set the AppItemName-property, set AutoRegister-property to false and call, when you want to (un)register you app to start next time windows starts, with the following methods: if not AMAutoRun.Register then ShowMessage('Not possible to register your app...'); if not AMAutoRun.UnRegister then ShowMessage('Not possible to unregister your app...'); C. Drop it on your form, set the AppItemName-property, drop a CheckBox-control on your form, set the CheckBox-property of this component to direct to the CheckBox and when you check/uncheck the checkbox your app will be registered/unregistered. And when your app starts it will check if your app is register, if so it will set the CheckBox to checked Version 1.0 - First release Version 1.1 - Second release, when you call the (Un)Register-methods and have set the CheckBox- property, the CheckBox control will display the current status directly (Checked when registered and unchecked when unregistered). Version 1.2 - Third release, you can now set the 'RunType' property, with Windows there are five different types for running an application when booting your system: * Run * RunOnce * RunOnceEx * RunServices * RunServicesOnce Use it as you like, when you have a question please mail me: ameeder@dds.nl
Classes |
Functions |
Register -
Types |
Constants |
Variables |
Functions |
Types |
TRunType = (rtRun, rtRunOnce, rtRunOnceEx, rtRunServices, rtRunServicesOnce);
Constants |
Variables |