therion Posted August 29, 2006 Share Posted August 29, 2006 i've just started using AutoItX in delphi.I'm not very knowledgeable in either language so please tell me if doing something wrong here.I imported AutoItX as a type library and it shows up as a activex component.I messed around a bit and tried a few simple things with it which seemed to work fine.However when trying to use RunAsSet, when you reset the user permissions at the end with just RunAsSet() it wont compile because of not enough parameters. It always seems to expect the username,domain,password parameters to be filled in. Is there a way around this or is it just delphi being picky? Link to comment Share on other sites More sharing options...
Richard Robertson Posted August 29, 2006 Share Posted August 29, 2006 Just use "" for each parameter. Link to comment Share on other sites More sharing options...
therion Posted August 30, 2006 Author Share Posted August 30, 2006 i done what you said and it compiles ok but it seems for the run command it needs you to specify a directory.Otherwise i get access violations. if i specify a directory i dont get any access violations but nothing happens. I seen a delphi wrapper around here somewhere ill try that and see if its any better. Link to comment Share on other sites More sharing options...
therion Posted August 30, 2006 Author Share Posted August 30, 2006 i used the delphi wrapper and that seems to work fine. Link to comment Share on other sites More sharing options...
Richard Robertson Posted August 30, 2006 Share Posted August 30, 2006 For string parameters that are optional, just use "" for each one. Using a starting directory as "" means it will not be explicitly set. 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