08-11-2007, 09:11 PM
the user picture window does not exist on classic menu, and hid throws error
_taskbars_func
_taskbars_func
;/
function action hWnd
int hwnd=win()
sel action
,case 0;; windows start menu
,,spe
,,key W
,,int h
,,if(_winver<0x501 or (rget(_s "ShellState" "Software\Microsoft\Windows\CurrentVersion\Explorer" 0 "" REG_BINARY) and _s[32]&2=0)) ;;classic
,,,h=wait(10 WV win("" "BaseBar" "" 128 0x94800000 0))
,,else ;;XP/Vista
,,,h=wait(10 WV win("" "DV2ControlHost"))
,,,int uph=win("" "Desktop User Picture")
,,,hid uph; err
,,mov xm-18 ym+18 h
,case 1;; left click
,,if hwnd==hWnd
,,,min hWnd
,,else
,,,act hWnd
,,