Jump to content

Recommended Posts

  • Developers
Posted

The last parameter is the directory of the script?

sure

mmm.. not so sure.

The last parameter is the fully qualified path and program name to be ran at startup but I would have thought the example is pretty clear. :)

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

If I write it: @ScriptFullPath & ".exe"

Is it be OK?

No because if you write @ScriptFullpath extension will be include so you don't have to add ".exe"

No-life of autoit...what could be better ?LAST SCRIPTS WITH AUTO-IT : CLICK HERE
Posted (edited)

You can find a lot of information by looking at the Online Documentation

You can find exactly what you are looking for here RegWrite

By using the information that you have gotten in the replies and the Help files you should have no problems with the startup.

Jos gave a prime example as is.

Edited by DVHRLD
AutoViewer first public AutoIt script
  • 3 weeks later...
Posted

RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RUN", "MyProgram","REG_SZ", "C:\Directory\program.exe")
Hello !

I have a scrpt and It don't run at startup. I don't know why ! My script using function Inetget().

Posted

Hello !

I have a scrpt and It don't run at startup. I don't know why ! My script using function Inetget().

It's really hard to know why something does not work unless we can see some code.

Inetget() downloads a file from the net. It is the file that you are trying to run @ startup? And if so is an exe or a zip? Is the path to the downloaded file correct when you try to run it? Most of the questions you are going to be asked could easily be answered if we could see the code.

Also.. you should really start your own thread instead of adding to an old one.

Kerros

Kerros===============================================================How to learn scripting: Figure out enough to be dangerous, then ask for assistance.

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
  • Recently Browsing   0 members

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