Guest Matt Posted June 10, 2004 Posted June 10, 2004 This must be a really simple answer but I can't get it How do you set AutoItX options in V3? So far I have Set oAutoit = WScript.CreateObject("AutoItX3.Control") oAutoit.AutoItSetOption("WinTitleMatchMode", 2) However, I get an error about it expecting an "=" somewhere. Oh,
Administrators Jon Posted June 10, 2004 Administrators Posted June 10, 2004 VBScript is funny about calling methods/functions. When you save the return value you need brackets, otherwise you don't: result = oAutoit.AutoItSetOption("WinTitleMatchMode", 2) or oAutoit.AutoItSetOption "WinTitleMatchMode", 2 Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
Guest Guest Posted June 10, 2004 Posted June 10, 2004 OK, thanks for that. New problem now then, how about calling it from VBA? Set oAutoit = WScript.CreateObject("AutoItX3.Control") gives me a "Run time error 424. Object required" error
Administrators Jon Posted June 10, 2004 Administrators Posted June 10, 2004 OK, thanks for that. New problem now then, how about calling it from VBA?Set oAutoit = WScript.CreateObject("AutoItX3.Control") gives me a "Run time error 424. Object required" errorI don't know VBA, but the WScript will be incorrect (WScript is the WSH/VBScript object not VBA)Sorry, don't know. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
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