Sign in to follow this  
Followers 0
TinyBoy

[solved] How to change system tray icon of another process ?

5 posts in this topic

#1 ·  Posted (edited)

Change the own tray icon is easy but how to change the tray icon of another process ?

Searched help, forums and google but no sucess. Can someone point me to UDFs or sanple scripts.

I have written a small helper for AVIRA virus solution and I want to change the tray icon so that the user recognices that a scan or update is running.

I know the PID of the tray process, but the code snippet to change or blink or whatsoever ... is missing. :)

Please do not code for me but send some pointers or ideas.

The coding will be my problem. :o

Edited by TinyBoy

Share this post


Link to post
Share on other sites



Change the own tray icon is easy but how to change the tray icon of another process ?

Searched help, forums and google but no sucess. Can someone point me to UDFs or sanple scripts.

I have written a small helper for AVIRA virus solution and I want to change the tray icon so that the user recognices that a scan or update is running.

I know the PID of the tray process, but the code snippet to change or blink or whatsoever ... is missing. :)

Please do not code for me but send some pointers or ideas.

The coding will be my problem. :o

:D

me too :D

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

@gwertzui3

I cant say better than you for help him :o one word : :)

Edit : try reshacker for change Icon

Cheers, FireFox.

Edited by FireFox

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

The items in the system tray are just buttons on a toolbar. Try _GUICtrlToolbar_SetButtonBitMap(). The images available come from the Image List for the toolbar. See the help file under the _GuiCtrlToolBar_* functions.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

The items in the system tray are just buttons on a toolbar. Try _GUICtrlToolbar_SetButtonBitMap(). The images available come from the Image List for the toolbar. See the help file under the _GuiCtrlToolBar_* functions.

:)

Thanks PsaltyDS :o

Here my solution:

CODE
; hide/show tray icon

#include <GuiToolbar.au3>

Local $i, $iCmdID, $sText

Local $handle = ControlGetHandle("[CLASS:Shell_TrayWnd]", "", "[CLASS:ToolbarWindow32; INSTANCE:1]")

Local $iButtonCount = _GUICtrlToolbar_ButtonCount($handle)

For $i = 1 To $iButtonCount

$iCmdID = _GUICtrlToolbar_IndexToCommand($handle, $i)

$sText = _GUICtrlToolbar_GetButtonText($handle, $iCmdID)

If StringInStr($sText, "Avira AntiVir") Then ExitLoop

Next

For $i = 1 To 5

_GUICtrlToolbar_HideButton($handle, $iCmdID, True)

Sleep(500)

_GUICtrlToolbar_HideButton($handle, $iCmdID, False)

Sleep(500)

Next

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0