beefy66 Posted June 15, 2015 Share Posted June 15, 2015 Hi,I'm having problems getting a control handle from a form, and hoping for some advice. I would definitely call myself a newbie to AutoIt, but can't figure this out! I am using v3.1.1 of AutoIT (The newer versions are picked up as a virus! so I am restricted to the older versions for now)Local $hWnd = WinGetHandle("Setup") Local $hCtrl = ControlGetHandle($hWnd,"",8) ControlClick($hWnd,"",$hCtrl)The AutoIt Windows Info showsClass:ThunderRT6CommandButtonInstance: 6ClassNameNN:ThunderRT6CommandButton6ID:8Text:&Next > If I add Message boxes I get a handle for the Window, but not for the control. I have tried various other variations with ControlGetHandle to make this work, Such asLocal $hCtrl = ControlGetHandle($hWnd,"","[CLASS:ThunderRT6CommandButton; ID:8]")Local $hCtrl = ControlGetHandle($hWnd,"","[CLASS:ThunderRT6CommandButton; INSTANCE:6]")Local $hCtrl = ControlGetHandle($hWnd,"","[CLASSNN:ThunderRT6CommandButton6]")To get past this particular setup page, I just used ControlSend to send Alt+N, but I have lot's of other pages in this setup where I need to be able to interact with the controls. Can anybody help? 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