Jump to content
Sign in to follow this  
Kash

Starting AutoIt program on PC StartON

Recommended Posts

Kash

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

Share this post


Link to post
Share on other sites
martin

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

Easiest 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.

Share this post


Link to post
Share on other sites
billthecreator

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

Share this post


Link to post
Share on other sites
Kash

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....

Share this post


Link to post
Share on other sites
picea892

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.

Share this post


Link to post
Share on other sites
Yashied

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 by Yashied

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.