Hey Every1 !!
I'm Again Having a Problem.............
I Removed the TrayICon of Rainmeter Using The SysTray_UDF (Attached) of Wraithu ....................
On Removing the Tray Icon The Tray Gets Shifted to the Left maybe some sort of Reordering and Vacant Spaces are left on the Right Hand Side
So I wrote a Code using the Send Message Funtion for TB_AUTOSIZE message......................but nothing Seems to Work.........
Here is the Code
#include "SysTray_UDF.au3"
#NoTrayIcon
Global Const $TB_AUTOSIZE=0x0400 + 33
ConsoleWrite($TB_AUTOSIZE&@CRLF)
;get the number of icons in the tray
$n = _SystrayIconCount() + 1
MsgBox(0,"Debug Info","Icon count = " & $n)
;get pids of all processes that have an icon in the tray
$iPids = _SysTrayIconPids()
;make each hidden
For $i = 0 To UBound($iPids)-3 ;more than 1 icon would be left to reorder.....
_SysTrayIconHide(_SysTrayIconIndex($iPids[$i],2),1)
Next
Local $trayHwnd = _FindTrayToolbarWindow()
If $trayHwnd = -1 Then Exit
DllCall("user32.dll", "int", "SendMessage", "hwnd", $trayHwnd, "int", $TB_AUTOSIZE, "wparam", 0, "lparam", 0)
Sleep(10000)
;make each visible
For $i = 0 To UBound($iPids)-1
_SysTrayIconHide(_SysTrayIconIndex($iPids[$i],2),0)
Next
If Any1 knows the Possible solution of it ...... PLZ help Me out
Regards
Phoenix XL