Reverse engineered prompt

GitHub

Build me a very simple Windows lag switch app in Python that I can also package as an exe. It should only be for ethernet, not wifi, and when I turn it on it should drop the connection, then restore it when I turn it off. The basic behavior I want is to use the Windows commands that release and renew the IP, so it feels like a quick on off lag switch.

On first launch, ask me to pick a single keyboard key as the hotkey and ask which mode I want, either toggle mode where I press once to enable and again to disable, or hold mode where it only stays active while I hold the key down. Save those choices in simple text files so they persist, and if the files are deleted it should ask again. Also show a Windows toast notification whenever the lag switch is enabled or disabled. Keep it lightweight and straightforward, and make sure it works cleanly on Windows. Look up current Windows notification docs online if you need to.

Have a live product UI? Try website reverse