Kash Posted April 27, 2009 Share Posted April 27, 2009 Hi, I would like to start my autoIt program at the start of PC. i.e. it should automatically get started once computer is started. Something like yahoo messenger. When we configure it for autolog on start, it starts and logs in on PC start. Is there any way to do it? Please let me know. Thanks. Regards Kash Link to comment Share on other sites More sharing options...
martin Posted April 27, 2009 Share Posted April 27, 2009 Hi,I would like to start my autoIt program at the start of PC. i.e. it should automatically get started once computer is started. Something like yahoo messenger. When we configure it for autolog on start, it starts and logs in on PC start.Is there any way to do it? Please let me know.Thanks.RegardsKashEasiest way is to put the compiled script in your startup folder. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
billthecreator Posted April 28, 2009 Share Posted April 28, 2009 just add this to the beginning to your program and run it ; change YOURPROGRAMNAME to the name of your program. obviously If Not FileExists(@StartupDir & '\YOURPROGRAMNAME.lnk') Then FileCreateShortcut(@ScriptFullPath, @StartupDir & '\ YOURPROGRAMNAME.lnk') EndIf [font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap Link to comment Share on other sites More sharing options...
Kash Posted April 28, 2009 Author Share Posted April 28, 2009 just add this to the beginning to your program and run it ; change YOURPROGRAMNAME to the name of your program. obviously If Not FileExists(@StartupDir & '\YOURPROGRAMNAME.lnk') Then FileCreateShortcut(@ScriptFullPath, @StartupDir & '\ YOURPROGRAMNAME.lnk') EndIf Thanks... But i think this code will only create short cut of my program right? I want to execute autoIT program(.au3 file) on start up.... Link to comment Share on other sites More sharing options...
picea892 Posted April 28, 2009 Share Posted April 28, 2009 Martin and Billthecreator have both given you the same advice. Martin told you to manually put the script in the startup directory Bill made the script automatically put itself in the startup directory when run. This is the solution you are looking for. Link to comment Share on other sites More sharing options...
Yashied Posted April 29, 2009 Share Posted April 29, 2009 (edited) Thanks...But i think this code will only create short cut of my program right? I want to execute autoIT program(.au3 file) on start up....Create a shortcut to a file AutoIt3.exe, write the path to your script as parameter string. Then put this shortcut into Startup folder.For example."C:\Program Files\AutoIt3\AutoIt3.exe" "C:\MyScripts\MyScript1.au3" Edited April 29, 2009 by Yashied My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... 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