Jump to content

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


Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...