Au3Builder Posted November 19, 2017 Share Posted November 19, 2017 (edited) Hello guys.I'm trying to figure out what might be wrong with my script.Mouseclick successfully performs a click on the "System" tab unlike ControlClick.Can anybody help me,Please? Here's my code. #RequireAdmin Opt("MouseCoordMode",0) $Title = "Settings" ShellExecute("ms-settings:") WinWait($Title) WinMove($Title,"",0,0,500,500) WinActivate($Title) ;MouseClick("left",35,126,1,5) ControlClick($Title,"","ApplicationFrameInputSinkWindow1","left",1,35,126) Edited November 19, 2017 by Au3Builder Link to comment Share on other sites More sharing options...
Earthshine Posted November 19, 2017 Share Posted November 19, 2017 (edited) Post a screenshot of what the auto IT information toool returns for the button you want to click Edited November 19, 2017 by Earthshine My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Au3Builder Posted November 19, 2017 Author Share Posted November 19, 2017 (edited) Sorry.I forgot to mention I'm using Windows 10. Au3 Window Tool can't distinguish buttons and other elements inside the Settings Window. I'm talking about this .(Took pic off the web.) However.I'm posting below what you have asked for. >>>> Window <<<< Title: Settings Class: ApplicationFrameWindow Position: 0, 0 Size: 516, 500 Style: 0x94CF0000 ExStyle: 0x00200100 Handle: 0x00000000019B0270 >>>> Control <<<< Class: ApplicationFrameInputSinkWindow Instance: 1 ClassnameNN: ApplicationFrameInputSinkWindow1 Name: Advanced (Class): [CLASS:ApplicationFrameInputSinkWindow; INSTANCE:1] ID: Text: Position: 0, 32 Size: 500, 460 ControlClick Coords: 28, 94 Style: 0x50000000 ExStyle: 0x00280000 Handle: 0x0000000000AE02B8 >>>> Mouse <<<< Position: 35, 126 Cursor ID: 0 Color: 0xFFFFFF >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< Settings >>>> Hidden Text <<<< Edited November 19, 2017 by Au3Builder Link to comment Share on other sites More sharing options...
Earthshine Posted November 19, 2017 Share Posted November 19, 2017 (edited) You’re better off using send command. You’re right AutoIt can’t manipulate xaml forms Unless you combine it with.net Edited November 19, 2017 by Earthshine Au3Builder 1 My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Au3Builder Posted November 19, 2017 Author Share Posted November 19, 2017 4 minutes ago, Earthshine said: You’re better off using send command. You’re right AutoIt can’t manipulate xaml forms Unless you combine it with.net Okay.Thanks for your help. Earthshine 1 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