Jump to content
Sign in to follow this  
Au3Builder

Can't get ControlClick to work with Windows 10 Settings.

Recommended Posts

Au3Builder

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 by Au3Builder

Share this post


Link to post
Share on other sites
Earthshine

Post a screenshot of what the auto IT information toool returns for the button you want to click

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites
Au3Builder

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.)

settings-windows10-system-1024x576.jpg

 

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 by Au3Builder

Share this post


Link to post
Share on other sites
Earthshine

You’re better off using send command. You’re right AutoIt can’t manipulate xaml forms Unless you combine it with.net

Edited by Earthshine
  • Like 1

My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites
Au3Builder
  • 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.

  • Like 1

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×