Spike Posted July 19, 2018 Posted July 19, 2018 Hi folks, I'm trying to get control handles from a form in another program I created using C# and the AutoIt library. I'm able to get the form handle and the get the control class list but then I cannot get the Control handles parsing through the control class list. Ive tried every example I can find yet always fails. Below is a snippet of what I'm using: hWnd = WinGetHandle("Form1"); WinActivate(hWnd); WinSetOnTop(hWnd); classList = WinGetClassList("Form1"); sControls = classList.Split('\n'); sCurrentClass = sControls[0]; // all is good to here!!! // below are the things I have tried to get a ctrl handle including the actual ctrl ID using spy hControl = ControlGetHandle(hWnd, "", "[CLASS:" + sCurrentClass + "; " + "INSTANCE:1]"); hControl = ControlGetHandle(hWnd, "", "[CLASSNN:" + sCurrentClass + iCurrentCount + "]"); hControl = ControlGetHandle(hWnd, "Form1", "523560"); hControl = ControlGetHandle(hWnd, "", "[CLASS:STATIC; " + "INSTANCE:1]"); Thanks in advance for any assistance!!!
czyt Posted December 8, 2018 Posted December 8, 2018 try this https://github.com/TestStack/White 董小姐,你微笑的时候很美,就像安河桥下,清澈的水...
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