PhoenixXL Posted April 29, 2012 Share Posted April 29, 2012 (edited) 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 Edited April 29, 2012 by PhoenixXL My code: PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now