mpellas Posted March 24, 2020 Share Posted March 24, 2020 Hello everyone, I'm a DBA/powershell developer for my organization. We've implemented a non-Microsoft desktop gui that I need to automate for reporting purposes. Is there any reason I'd be able to use mouseclick to click a button while I've tried everything to get controlclick to work with no luck. Here is the info from the locator tool: >>>> Window <<<< Title: 001 - Rx Profile Class: WindowsForms10.Window.8.app.0.3296db7_r9_ad1 Position: -8, -8 Size: 1936, 1056 Style: 0x17CF0000 ExStyle: 0x00050100 Handle: 0x0060143C >>>> Control <<<< Class: WindowsForms10.Window.8.app.0.3296db7_r9_ad1 Instance: 41 ClassnameNN: WindowsForms10.Window.8.app.0.3296db7_r9_ad141 Name: rbRxDataEntry Advanced (Class): [NAME:rbRxDataEntry] ID: 5117858 Text: Data Entry Position: 8, 61 Size: 124, 107 ControlClick Coords: 106, 39 Style: 0x56010000 ExStyle: 0x00010000 Handle: 0x004E17A2 Here is my current control click one liner: ControlClick ("001 - Rx Profile","","[NAME:rbRxDataEntry; INSTANCE:41]","left",1,106,39) What am I missing? Any help is greatly appreciated. Link to comment Share on other sites More sharing options...
Danp2 Posted March 24, 2020 Share Posted March 24, 2020 I don't believe that you want to use Instance with Name, since Instance would be tied to the Class. Have you tried like this? ControlClick ("001 - Rx Profile","","[NAME:rbRxDataEntry]") Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
mpellas Posted March 24, 2020 Author Share Posted March 24, 2020 (edited) Thanks! That didn't work. I don't understand how mouseclick works but this doesn't. edit: For what it's worth, I'm looking to use the script I'm developing as part of an overnight sql server job. It will save a ton of time. Edited March 24, 2020 by mpellas Link to comment Share on other sites More sharing options...
Danp2 Posted March 24, 2020 Share Posted March 24, 2020 You may need to look into UIAutomation since the standard command aren't working for you. Earthshine 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Nine Posted March 24, 2020 Share Posted March 24, 2020 Try using #requireAdmin and use ID instead of name “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Zedna Posted March 26, 2020 Share Posted March 26, 2020 Search this forum for "WindowsForms" as it was discussed here many times before already ... Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Earthshine Posted March 26, 2020 Share Posted March 26, 2020 UIAutomation My resources are limited. You must ask the right questions 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