Closed ZhuangQu closed 1 year ago
In your example
OnChangeDesktop(wParam, lParam, msg, hwnd) { Critical(1) OldDesktop := wParam + 1 NewDesktop := lParam + 1 Name := GetDesktopName(NewDesktop - 1) OutputDebug("Desktop changed to " Name " from " OldDesktop " to " NewDesktop) ; TraySetIcon(".\Icons\icon" NewDesktop ".ico") }
The OldDesktop is always 1, not actual. The NewDesktop is correct.
OldDesktop
NewDesktop
Should work in latest DLL
In your example
The
OldDesktop
is always 1, not actual. TheNewDesktop
is correct.