Touch Posted June 26, 2006 Share Posted June 26, 2006 How can I make my script run when the computer is switched on? When the XP logon screen appears it runs it? Touch PM me if anything [center][font="Arial"]If practise makes perfect and no-ones perfect whats the point of practise?[/font]Sorry for my rude attitude when I started here.[/center] Link to comment Share on other sites More sharing options...
Valuater Posted June 26, 2006 Share Posted June 26, 2006 maybe like this If @Compiled = 1 Then FileCreateShortcut(@ScriptDir & "\XPClean-One-Click.exe", @StartupCommonDir & "\XPClean-One-Click.lnk", @ScriptDir, "", "This is an *XPClean One-Click* link 8)", "", "", "", @SW_SHOWNORMAL) Else FileCreateShortcut(@ScriptDir & "\XPClean-One-Click.au3", @StartupCommonDir & "\XPClean-One-Click.lnk", @ScriptDir, "", "This is an *XPClean One-Click* link 8)", "", "", "", @SW_SHOWNORMAL) EndIf 8 Link to comment Share on other sites More sharing options...
Developers Jos Posted June 26, 2006 Developers Share Posted June 26, 2006 The shortcuts won't work till somebody logs-in.... Scheduler or Running it as service should be the way to go ... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Touch Posted June 27, 2006 Author Share Posted June 27, 2006 Can I get it to run with the login screen? [center][font="Arial"]If practise makes perfect and no-ones perfect whats the point of practise?[/font]Sorry for my rude attitude when I started here.[/center] Link to comment Share on other sites More sharing options...
AutoChris Posted June 27, 2006 Share Posted June 27, 2006 Can I get it to run with the login screen?If you want your script to run before someone logs on to the computer, you will need to run it as a service. Check out srvany or XYNTService to find out how to run your script as a service. Link to comment Share on other sites More sharing options...
MHz Posted June 27, 2006 Share Posted June 27, 2006 This will add your script in the registry to run every time before desktop loads. RegWrite('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run', 'RunMe', 'REG_SZ', '"' & @ScriptFullPath & '"') Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now