Sign in to follow this  
Followers 0
cinetech

Adding a program to run at Windows start up

6 posts in this topic

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!)?

:D

Many Thanks!

Share this post


Link to post
Share on other sites



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 game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Share this post


Link to post
Share on other sites

Thanks, you mean with mouse moving? Or there is an istruction?

Share this post


Link to post
Share on other sites

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 game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by mistersquirrle

RAWR! I'm hungry :( Feed the panda squirrle

Share this post


Link to post
Share on other sites

Hey!

It works!

Many many thanks!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0