get rid of safely remove hardware icon Thread last updated on 2005-10-14 03:31:17

Posted by member 135953 on 2004-07-21 07:29:57

I wanna keep my shit plugged in but I wanna get rid of the icon in system tray............I am using that systray module.


Is there a way to do it?

Posted by member 144980 on 2004-07-21 10:07:42 link

i dont know for certain about systray but vtray lets you hide icons (systray probably has the same option)

you need to create a log file to find out the icons class names (sorry i forgotten how to do that) and then adding a line like *systrayHide "icons class name here" n (n being the number of sceonds you want to wait before the icon is hidden) to your systray commands should hide the icon

Posted by member 37809 on 2004-07-21 11:46:15 link

yes, vtray and systray2 do it. not (yet? for) systray-1.10. although at least in vtray-1.10 there is a bug where you cannot specify multiple *trayhide's that share the same classname.

In order to use VTray's ![Tray]IconInfo bang, you have to enable litestep logging:
LSLogFile "$LiteStepDir$litestep.txt"
LSLogLevel 4 ; I don't remember how many levels there are but 4 is verbose

Refresh the logfile after issuing that bang...

Posted by member 31 on 2004-07-21 13:44:49 link

uh, double click the icon, then, in the dialog that appears, uncheck the "Show Unplug/Eject icon on the taskbar" option.

:)

Posted by member 37809 on 2004-07-21 14:13:55 link

the dialog in my stock xp install doesn't have that option. oops, i don't update my windows often.

Posted by member 31 on 2004-07-21 17:21:44 link

Ah, running 2K here, so I guess thats the difference. I guess take tnl's suggestion then :)

Posted by member 178951 on 2004-07-21 22:54:37 link

yeah, they removed that option for xp/03. that was my first thought as well.

Posted by member 135953 on 2004-07-21 23:44:15 link

Egon, as usual the answer is always in the documentation............ Sorry my bad but at least someone else might find out the easy way lol.
Ok so I am attempting to do the *systrayHide "icons class name here", but how would I find what the icon class is?

Posted by member 135953 on 2004-07-22 09:58:09 link

Hey guys don't stop there I have absolutely no clue how to get the icon class.............Tried all night.

This is the log I get but

07-22-2004 11:10:29 - Debug - VTray: Removing Tray Bangs
07-22-2004 11:10:29 - Debug - VTray: Done Tray Bangs
07-22-2004 11:10:29 - Debug - VTray: Deleting all icons
07-22-2004 11:10:29 - Debug - VTray: Deleting Icon: Safely Remove Hardware - (0x0001004E) - (0x000004CA) shown:41
07-22-2004 11:10:29 - Debug - VTray: Executing std del: "!SystrayIconRemoved"
07-22-2004 11:10:29 - Debug - VTray: Deleting Icon: ProcessSwitch - (0x000100AA) - (0x00000001) shown:41
07-22-2004 11:10:29 - Debug - VTray: Executing std del: "!SystrayIconRemoved"
07-22-2004 11:10:29 - Debug - VTray: Deleting Icon: Norton AntiVirus Auto-Protect Enabled - (0x00020104) - (0x000000C8) shown:41
07-22-2004 11:10:29 - Debug - VTray: Executing std del: "!SystrayIconRemoved"
07-22-2004 11:10:29 - Debug - VTray: Deleting Icon: Samurize Client
Default - (0x0001016A) - (0x01725630) shown:41
07-22-2004 11:10:29 - Debug - VTray: Executing std del: "!SystrayIconRemoved"
07-22-2004 11:10:29 - Debug - VTray: Deleting Icon: MSN Messenger - Signed In - (0x0001022C) - (0x00009C6E) shown:41
07-22-2004 11:10:29 - Debug - VTray: Executing std del: "!SystrayIconRemoved"
07-22-2004 11:10:29 - Debug - VTray: Deleting Icon: Avant Browser - (0x0002030A) - (0x00000000) shown:41
07-22-2004 11:10:29 - Debug - VTray: Executing std del: "!SystrayIconRemoved"
07-22-2004 11:10:29 - Debug - VTray: Deleted icons: shown 6, hidden 0
07-22-2004 11:10:29 - Notice - VTray: shut down
07-22-2004 11:10:29 - Debug - VTray: Version info: 1.06$, VTray.cpp,v 1.06$, Aug 10 2003 23:38:07
07-22-2004 11:10:29 - Debug - GuiWindow: set visible: 0
07-22-2004 11:10:29 - Debug - VTray: Creating Window, pos:1302,70 size:1,48, p:196656, l:196656, d:720958, ontop: 0
07-22-2004 11:10:29 - Debug - VTray: ontop: 0, visible: 0, wharf: 0, boxed: 0
07-22-2004 11:10:29 - Debug - VTray: Reading Tray Config Lines
07-22-2004 11:10:29 - Debug - VTray: align string:
07-22-2004 11:10:29 - Debug - VTray: starting read of *On commands
07-22-2004 11:10:29 - Debug - VTray: finished reading of *On commands, total: 0
07-22-2004 11:10:29 - Debug - VTray: starting read of *Hide commands
07-22-2004 11:10:29 - Debug - VTray: finished reading of *Hide commands, total: 0
07-22-2004 11:10:29 - Debug - VTray: starting read of *Flash commands
07-22-2004 11:10:29 - Debug - VTray: finished reading of *Flash commands, total: 0
07-22-2004 11:10:29 - Debug - VTray: Done Reading Tray Config Lines
07-22-2004 11:10:29 - Debug - VTray: Registering Tray Bangs
07-22-2004 11:10:29 - Debug - VTray: Done Tray Bangs
07-22-2004 11:10:29 - Debug - VTray: Setting Tray Window Props.
07-22-2004 11:10:29 - Debug - VTray: Done Tray Window Props.
07-22-2004 11:10:29 - Debug - VTray: window created, 0x90070
07-22-2004 11:10:29 - Notice - VTray: loaded successfully
07-22-2004 11:10:29 - Debug - VTray: Executing std add: "!SystrayIconAdded"
07-22-2004 11:10:29 - Debug - VTray: Icon Added "Safely Remove Hardware", shown:41 (settings F:-1, H:-1) (pos X:3 Y:3)
07-22-2004 11:10:29 - Debug - VTray: Executing std add: "!SystrayIconAdded"
07-22-2004 11:10:29 - Debug - VTray: Icon Added "ProcessSwitch", shown:41 (settings F:-1, H:-1) (pos X:21 Y:3)
07-22-2004 11:10:29 - Debug - VTray: Executing std add: "!SystrayIconAdded"
07-22-2004 11:10:29 - Debug - VTray: Icon Added "Norton AntiVirus Auto-Protect Enabled", shown:41 (settings F:-1, H:-1) (pos X:39 Y:3)
07-22-2004 11:10:29 - Debug - VTray: Executing std add: "!SystrayIconAdded"
07-22-2004 11:10:29 - Debug - VTray: Icon Added "Samurize Client
Default", shown:41 (settings F:-1, H:-1) (pos X:57 Y:3)
07-22-2004 11:10:29 - Debug - VTray: Executing std add: "!SystrayIconAdded"
07-22-2004 11:10:29 - Debug - VTray: Icon Added "MSN Messenger - Signed In", shown:41 (settings F:-1, H:-1) (pos X:75 Y:3)
07-22-2004 11:10:29 - Debug - VTray: Executing std add: "!SystrayIconAdded"
07-22-2004 11:10:29 - Debug - VTray: Icon Added "Avant Browser", shown:41 (settings F:-1, H:-1) (pos X:93 Y:3)



so is that it the icon class for safely remove hardware is "Safely Remove Hardware"

Itried using SystrayHide "Safely Remove Hardware" 0 in my sytray rc file and it dosent seem to work is this the right code and where am I supodsed to put it?

Posted by member 37809 on 2004-07-22 10:39:50 link

If you issued the ![Tray]IconInfo bang like I already mentioned you would have seen some line like this in the log file:
07-22-2004 11:36:05 - Notice - VTray: Icon: "Safely Remove Hardware" (0x11660C94, 1226), shown:41, class: "SystemTray_Main"

Posted by member 135953 on 2004-07-22 10:48:11 link

Okay got it but its still not going away I have this

SystrayHide "SystemTray_Main" 0

in my systemtray rc file but still the icon is showin

Posted by member 37809 on 2004-07-22 10:58:53 link

Alright, now we have documentation to blame. It's not mentioned in vtray-1.10's documentation per se, but instead in the changelog. And it's erroneous!
; this is wrong!
*systrayhide Window_Class_Name min_inactive_before_hiding


It should be
*SystrayHide "Class Name" "Window Name" min_inactive_before_hiding


So something like
*SystrayHide "SystemTray_Main" "Safely Remove Hardware" 0

should work.

GOod day!

Posted by member 135953 on 2004-07-22 11:04:13 link

Ok tnl I addad exactly *SystrayHide "SystemTray_Main" "Safely Remove Hardware" 1
in my systray rc file.......waiting one minute........

Posted by member 135953 on 2004-07-22 11:07:13 link

wohooooooooo it worked .............tnl you da man

Posted by member 242623 on 2005-10-12 23:33:25 link

i'm wondering about this, and i don't see a systray.rc, i'm using non | step theme, where should i add
*SystrayHide "SystemTray_Main" "safely remove hardware" 1
?

Posted by member 212670 on 2005-10-12 23:52:12 link

OOOOOLD thread...

Put it in the theme.rc if you want to keep it simple.

Posted by member 242623 on 2005-10-12 23:54:58 link

sortof figured out that much, but i'm not sure where to put it, i've tried under "vtray config" but just didn't work. and old thread keeping the questions coming beats making new "duplicateish" ones i guess
;; systray.config
;; ================================================= ;;
VTrayWidth 92
VTrayHeight 38
VTrayX 1
VTrayY 1

VTrayDirection down
VTrayWrapDirection right

VTrayWrapCount 2
VTrayIconSize 16
VTrayIconSpacingX 2
VTrayIconSpacingY 2
VTrayScrollFlash true
*SystrayHide "SystemTray_Main" "Safely Remove Hardware" 1
;VTrayIconHueColor cbcbcb
;VTrayIconHueIntensity 70
eh? how off is that

Posted by member 248213 on 2005-10-13 01:13:57 link

*VTrayHide "SystemTray_Main" "Safely Remove Hardware" 1


you are not using compat mode, so *Systray wont work.

Posted by member 242623 on 2005-10-13 12:45:27 link

how do i use compat mode? or what will work if not that?

Posted by member 212670 on 2005-10-13 13:13:58 link

Just use the line fractal used above starting with *vtray instead of *systray.

Posted by member 242623 on 2005-10-13 18:18:10 link

oh i am slow, thanks a lot.

Posted by member 248213 on 2005-10-14 03:31:17 link

compat mode: its all in the docs ;)