Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Does anyone know if there's a command to have this "refresh" done programmatically, i.e., without physically sliding the mouse over the Tray?
I believe the operative API is GetWindowRect, documented at:
Getting the system tray's handle seems to consist of (assuming the user hasn't switched shells):
ControlHandle=cWndByWndSpec("Shell_TrayWnd","explorer",0)So the code would look something like this:
ControlHandle=cWndByWndSpec("Shell_TrayWnd","explorer",0) buf = BinaryAlloc(16) dll = StrCat(DirWindows(1), "USER32.DLL") DllCall(dll, long:"GetWindowRect", long:ControlHandle, lpbinary:buf) BinaryEodSet(buf, 16) left = BinaryPeek4(buf, 0) top = BinaryPeek4(buf, 4) right = BinaryPeek4(buf, 8) bottom = BinaryPeek4(buf, 12) BinaryFree(buf) Message("Coordinates", "%left% %top% %right% %bottom%")Now use the MousePlay function to move the mouse to those coordinates.
Article ID: W16725
File Created: 2005:02:18:12:22:02
Last Updated: 2005:02:18:12:22:02