If ($flag) And ($mpos[0] >= 300) Then
$list = WinList("[CLASS:Shell_TrayWnd]")
If $list[0][0] > 0 Then
_WinAPI_SetWindowPos($list[1][1], $HWND_BOTTOM, 0, 0, 0, 0, BitOR($SWP_NOACTIVATE, $SWP_NOMOVE, $SWP_NOSIZE))
$flag = false
EndIf
Elseif ($mpos[0] < 30) And ($mpos[1] > @DesktopHeight - 10) Then
$list = WinList("[CLASS:Shell_TrayWnd]")
If $list[0][0] > 0 Then
WinActivate ($list[1][1])
$flag = true
EndIf
EndIf