Sign in to follow this  
Followers 0
avander

Howto control an explorer like treeview?

4 posts in this topic

Hi all,

New to AutoIt I'm trying to automate configuration of some Security settings in Win XP. Here's what I got so far:

MsgBox( 64, default, "Fasten seatbelts...")

Run ( "mmc secpol.msc /s") ; run Local Security Settings applet and wait for it
WinWaitActive( "Local Security Settings")

;; left tree: open Local Policies

;; left tree: click Security Options

;; right panel: double-click 'Shutdown: Allow system to be shut down without having to log on'

;; pop-up: set to 'disabled' and click 'Ok'

sleep( 2)
; pause before end
MsgBox( 64, default, "That's all folks!")

WinClose( "Local Security Settings")
WinWaitClose( "Local Security Settings")

As you see, it's almost done! :-). I've been thru the tutorials but unfortunately they all just seem to click a few buttons ( which is trivial).

Any pointers to examples on how to perform the steps in 'pseudo-code' would be a great help.

TIA

Share this post


Link to post
Share on other sites



The security settings you are trying to set can be done with command line.

Thanks for the tip, I guess you're refering to SecEdit.exe? Does this mean that it can't be done using an AutoIt script?

Share this post


Link to post
Share on other sites

Thanks for the tip, I guess you're refering to SecEdit.exe? Does this mean that it can't be done using an AutoIt script?

I'll rephrase my initial question, can I just use 'mouse' functions to click at x,y to for instance open a folder in the treeview?

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  
Followers 0