Jump to content

Starting AutoIt program on PC StartON


Kash
 Share

Recommended Posts

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

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.
Link to comment
Share on other sites

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

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

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

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...