Is there a direct path to this window as shown in the arrow?
timedate.cpl doesn't take me to the right window.
Direct path to changing time format in win11
-
- Posts: 27
- Joined: 06 Mar 2022, 17:45
Re: Direct path to changing time format in win11
The best I could do is this:
I can get to the 2nd tab of the 1st pop-up window directly by doing this:
Maybe you can just use RegWrite instead, to modify the registry.
There's some relevant info here:
Opening and editing Customize Format in Region
Code: Select all
; open Region > Formats > Customise Format > Date (Windows 10)
Run, intl.cpl
WinWait, Region ahk_class #32770
hWnd := WinExist()
ControlGetText, btn_text, Button3, % "ahk_id " hWnd
if (btn_text = "A&dditional settings...")
ControlSend, Button3, {Space}, % "ahk_id " hWnd
else
return
WinWait, Customi ahk_class #32770 ; Customise Format (or Customize Format)
hWnd := WinExist()
; see https://www.autohotkey.com/docs/v1/lib/Control.htm#TabLeft
SendMessage, 0x1330, 3,, SysTabControl321, % "ahk_id " hWnd ; TCM_SETCURFOCUS
Sleep, 0
SendMessage, 0x130C, 3,, SysTabControl321, % "ahk_id " hWnd ; TCM_SETCURSEL
return
Code: Select all
; open Region > Administrative
Run, % "control intl.cpl,,1"
return
There's some relevant info here:
Opening and editing Customize Format in Region