Jump to content
Sign in to follow this  
Bones8185

A few troubles with the FAQ

Recommended Posts

Bones8185

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
PaulIA

I believe that ShellExecute is a recent addition in one of the Betas. If you don't want to use Beta code, you can use DllCall to build your own version of ShellExecute.


Auto3Lib: A library of over 1200 functions for AutoIt

Share this post


Link to post
Share on other sites
Bones8185

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")

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  

×