Jump to content
Sign in to follow this  

A few troubles with the FAQ

Recommended Posts

this is the FAQ I'm talking about...

My Autoit doesn't recongnize the ShellExecute, is there an include file i am missing, plus it's not the the help file.

A1. It was for this reason that the ShellExecute function was created. Here is one example:

ItShellExecute("C:\autoitscripts\test.au3", "", "", "edit", @SW_MAXIMIZE)
and these do change my Services and Statup lists on msconfig, but do not auto start up..?

what am i missing??

Q4. How can I run my script as a service?...

#include "ServiceControl.au3"
$servicename = "MyServiceName"
_CreateService("", $servicename, "My AutoIt Script", "C:\Path_to_srvany.exe", "LocalSystem", "", 0x110)
RegWrite("HKLM\SYSTEM\CurrentControlSet\Services\" & $servicename & "\Parameters", "Application", "REG_SZ", @ScriptFullPath)


Q12. How can I make my script start every time windows starts?...

RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "MyProgramName", "REG_SZ", @ScriptFullPath)
PS. Awsome FAQ, thanks

FileMove(".\Bones8185.newB", ".\Bones8185.adv")

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  

  • Create New...