myu8171 Posted May 26 Share Posted May 26 Tried to click on a selected item, but cannot detect it. Currently, the workaround is to use relative coordinates, but prefer to find the control by its text, and click on it. How to find this control item? Thanks. expandcollapse popup>>>> Window <<<< Title: Program Manager Class: Progman Position: 0, 0 Size: 1680, 1050 Style: 0x96000000 ExStyle: 0x00000080 Handle: 0x0000000000010102 >>>> Control <<<< Class: SysListView32 Instance: 1 ClassnameNN: SysListView321 Name: Advanced (Class): [CLASS:SysListView32; INSTANCE:1] ID: 1 Text: FolderView Position: 0, 0 Size: 1680, 1050 ControlClick Coords: 1672, 950 Style: 0x56003A40 ExStyle: 0x00000000 Handle: 0x0000000000010106 >>>> Mouse <<<< Position: 1672, 950 Cursor ID: 2 Color: 0x000000 >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< FolderView >>>> Hidden Text <<<< Link to comment Share on other sites More sharing options...
myu8171 Posted May 26 Author Share Posted May 26 Edit (correct screenshot) expandcollapse popup>>>> Window <<<< Title: QSR Report Viewer Class: WindowsForms10.Window.8.app.0.141b42a_r6_ad1 Position: 104, 104 Size: 1000, 785 Style: 0x16CF0000 ExStyle: 0x00050100 Handle: 0x00000000001B04B2 >>>> Control <<<< Class: WindowsForms10.Window.8.app.0.141b42a_r6_ad1 Instance: 5 ClassnameNN: WindowsForms10.Window.8.app.0.141b42a_r6_ad15 Name: splitReportPanel Advanced (Class): [NAME:splitReportPanel] ID: 591518 Text: Position: 2, 26 Size: 267, 696 ControlClick Coords: 255, 191 Style: 0x56010000 ExStyle: 0x00010000 Handle: 0x000000000009069E >>>> Mouse <<<< Position: 369, 352 Cursor ID: 2 Color: 0xFFFFFF >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< Run Report Reports Browse... Database: C:\ProgramData\QSR Automations\ConnectSmart\KitchenServer\Databases\SpeedOfService.db Current Page No.: statusStrip1 menuStrip1 >>>> Hidden Text <<<< Please wait while the document is processing. Link to comment Share on other sites More sharing options...
Solution spudw2k Posted May 26 Solution Share Posted May 26 These threads and UDF may help. https://www.autoitscript.com/forum/index.php?showtopic=196833 I have had success using it to interact with .NET controls. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF 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