Jump to content

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

Thanks I just got the beta, and it's in the help file, just not in the Sci4TEAutoit3's little drop down menu. that kinda through me off a bit.

thank you Larry

sorry for the bother

Edited by Bones8185
FileMove(".\Bones8185.newB", ".\Bones8185.adv")
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...