asumiluna
New Member
Posts: 13
OS: Windows 10 IoT Enterprise LTSC 21H2
Theme: Windows 7 Classic
|
Post by asumiluna on Nov 6, 2024 22:47:37 GMT -8
"I" (Chat GPT) made an autohotkey script to recreate windows xp's safely remove hardware tray icon, it launches the old dialog still present in modern windows. -you might have to edit the icon the scrip is looking for-
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#Persistent
; Set the tray icon to stobject.dll, -1 Menu, Tray, Icon, stobject.dll, -210 Menu, Tray, Tip, Safely Remove Hardware Menu, Tray, NoStandard Menu, Tray, Add, Safely Remove Hardware, SafelyRemoveHardware Return ; Prevent auto-execution of labels at script start
SafelyRemoveHardware: Menu, Tray, Tip, Safely Remove Hardware Run, % "C:\Windows\System32\rundll32.exe shell32.dll,Control_RunDLL hotplug.dll" Sleep, 1000 Menu, Tray, Tip, Ready to Remove Hardware Return
|
|