cinetech Posted February 5, 2010 Share Posted February 5, 2010 Hallo World! I'm very novice to programming and AutiIt is my first language! As a good scholar, I have studied "LEARNING_TO_SCRIPT_with_AutoIt_V3__Last_Updated_14_Apr_2009_" and bought and studied "AutoIt_v3_Your_Quick_Guide". I have understood not much but... I started to make a (working) script, using some advice from the forum too. It is not very elegant because it uses a big number of mouse movement and click (I would try to learn how to use the ID control of the window but I don't know where to start to learn something about this). But now I'm working on my second script, that is the installation script of the other script, and I can't find something to add in a single command the instruction to RUN THE PROGRAM AT WINDOWS START UP. How can I do this (in a very simple way please!)? Many Thanks! Link to comment Share on other sites More sharing options...
kaotkbliss Posted February 5, 2010 Share Posted February 5, 2010 Add the script you want to start when windows starts to the start menu "startup" folder. That is the easiest and fastest way to start when windows does. 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
cinetech Posted February 5, 2010 Author Share Posted February 5, 2010 Thanks, you mean with mouse moving? Or there is an istruction? Link to comment Share on other sites More sharing options...
kaotkbliss Posted February 5, 2010 Share Posted February 5, 2010 it depends on who you want the program to start for. all users use @StartupCommonDir current user only use @StartupDir 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
mistersquirrle Posted February 5, 2010 Share Posted February 5, 2010 (edited) Lol, use the mouse to move it into the startup folder? That'd be a hassel. Look in the AutoIt help file, and look under File, Directory and Disk Managment, and look for stuff like FileCreateShortcut() to make a short cut in the @StartupCommonDir or @StartupDir. FileCreateShortcut("Program.exe", @StartupDir & "\Program.ink") I believe that's the right usage of that, never used it before. Try it Edit: Syntax fix Edited February 5, 2010 by mistersquirrle We ought not to misbehave, but we should look as though we could. Link to comment Share on other sites More sharing options...
cinetech Posted February 5, 2010 Author Share Posted February 5, 2010 Hey! It works! Many many thanks! 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