Bones8185 Posted October 23, 2006 Share Posted October 23, 2006 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 More sharing options...
PaulIA Posted October 23, 2006 Share Posted October 23, 2006 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 Link to comment Share on other sites More sharing options...
Bones8185 Posted October 23, 2006 Author Share Posted October 23, 2006 (edited) 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 October 23, 2006 by Bones8185 FileMove(".\Bones8185.newB", ".\Bones8185.adv") Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now