locutus243 Posted August 5, 2005 Share Posted August 5, 2005 Hi guys, I have a script that I want to automatically start up every time windows starts up. Is there a way to do this??? (I think it mite be something done through windows rather than autoIT but would appreciate advice if anybody knows how!!!) Secondly, is there anyway that I can write into a script to make it start itself everytime the computer is started. (for example I want to send a script to my friend that he can run on his computer and then when he runs it then one of the things it does is fix it so that it starts every time windows is started). I hope this makes sense...let me know if not Thanks for your help guys!!! Mark Link to comment Share on other sites More sharing options...
ptrex Posted August 5, 2005 Share Posted August 5, 2005 The fasted way to do this is compile your script to an EXE file. Add the EXE file to the start Menu -> Programs -> Startup folder Or add it in the registrty in here : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run If you want to have it started only for that specific user you add it to HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
hgeras Posted August 5, 2005 Share Posted August 5, 2005 To make your script automatically , the fist time ran, make itself startup with windows add this code.Let's assume that your program is called "Program" and and your exe is "program.exe": Func AutoStartup() $RegRead("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run","Program") If @error then DirCreate(@ProgramFilesDir & "\whatever") Filecopy(@WorkingDir & "\program.exe",@ProgramFilesDir & "\whatever") RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run","Program","REG_SZ",@ProgramFilesDir & "\program.exe") Endif EndFunc Now you should call this function at the very start of your script before doing anything else.The exe will be put in C:\program files\whatever and then ran from there everytime Windows start.... Useful information about COM/Objects referenceMy Scripts:PapDefragNvidia Temperature Logger V3.0 with graph analyzerAutoiIt Update Checker And Downloader V1.0ArrayPush UDF 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