import os
import subprocess
import time
import pyautogui
def open_file_explorer():
os.startfile("explorer.exe")
def navigate_to_control_panel():
time.sleep(2) # Wait for File Explorer to open
pyautogui.hotkey('alt', 'd') # Focus on the address bar
pyautogui.write("Control Panel")
pyautogui.press('enter')
def press_alt_up_arrow():
time.sleep(2) # Wait for Control Panel to open
pyautogui.hotkey('alt', 'up')
def main():
open_file_explorer()
navigate_to_control_panel()
press_alt_up_arrow()
if __name__ == "__main__":
main()