Windows 11 — Open Settings Shortcut

btn = tk.Button(self.root, text="Create Shortcut", command=self.create_shortcut) btn.pack(pady=20)

# Opens Windows 11 Settings Start-Process ms-settings: – Save as SettingsShortcut.ahk : open settings shortcut windows 11

def create_shortcut(self): selected = self.combo.get() if not selected: return uri = SETTINGS_URIS[selected] desktop = Path(os.path.expanduser("~/Desktop")) shortcut_path = desktop / f"selected.lnk" btn = tk