derlin Posted June 10, 2019 Share Posted June 10, 2019 Hello all, I have a windows app I would like to automate some of, and it involves some stuff that refuses show up in the autoinfo screen. provided is the autoinfo summary. Basically autoinfo is seeing it as one single entity rather than a bunch of small ones that are clickable inside the box. If i move around my cursor inside the control box all that changes is the corrdinates for it. Is there a stratergy to clicking these? I was able to click them using coordinates but that wont work in actually automating them. Any help would be appreciated. >>>> Window <<<< Title: Changed Class: WindowsForms10.Window.8.app.0.1a0e24_r9_ad1 Position: 833, 0 Size: 854, 1027 Style: 0x16CF0000 ExStyle: 0x00050100 Handle: 0x00140326 >>>> Control <<<< Class: WindowsForms10.Window.8.app.0.1a0e24_r9_ad1 Instance: 42 ClassnameNN: WindowsForms10.Window.8.app.0.1a0e24_r9_ad142 Name: bf1ef02d-028e-4dcc-88c6-9ab60375824e Advanced (Class): [NAME:bf1ef02d-028e-4dcc-88c6-9ab60375824e] ID: 1114272 Text: Position: 0, 81 Size: 346, 405 ControlClick Coords: 160, 333 Style: 0x56010000 ExStyle: 0x00010000 Handle: 0x001100A0 >>>> Mouse <<<< Position: 1001, 445 Cursor ID: 0 Color: 0xFFFFFF >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< $DiscreteDevice Attributes $DiscreteDevice (Read Only) >>>> Hidden Text <<<< General Command Historize command ms Force storage period: Command: PV Historize PV ms Force storage period: Generate event upon PV change Enable statistics Enable outputs Enable inputs Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted June 11, 2019 Share Posted June 11, 2019 Hi @derlin, and welcome to the AutoIt forums The control you are trying to automate is a TreeView control, so, you should be able to interact with it with _GUICtrlTreeView_* functions. Get the handle of the control using one of the information provided by the AutoItWinowInfo Tool (Name, ClassnameNN), and then use that handle with one of the _GUICtrlTreeView_* functions, which could easily bring a feedback about the interaction with the control (click the second element of the control, get the count, and so on). From there, if those functions helps you out, then just use them to do "whatever" you want. P.S.: always post your script so we can help you further derlin 1 Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
Earthshine Posted June 11, 2019 Share Posted June 11, 2019 I suggest you look at FAQ 31 for UIAutomation to automate Windows 10 apps as they are XAML forms, and you cannot use standard autoit on them derlin 1 My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
derlin Posted June 11, 2019 Author Share Posted June 11, 2019 I will look into what you guys have said and reprt back. Thank you 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