Removing the tray icon (completely) Topic is solved
-
- Posts: 50
- Joined: 02 Jan 2018, 15:55
Removing the tray icon (completely)
Could someone tell me how, in v2, to remove a tray icon? My old code has A_TrayMenu.NoIcon, which no longer works. Thank you. (I've looked at documentation but to no avail.) I won't be needing to restore the icon (but I do want there to be a tray icon, earlier in the program's runtime).
-
- Posts: 50
- Joined: 02 Jan 2018, 15:55
Re: Removing the tray icon (completely)
@TheArkive
I did write: 'but I do want there to be a tray icon, earlier in the program's runtime'. I presume I cannot simply insert #NoTrayIcon as a command. Indeed, the page that you linked says: 'specifying this anywhere in a script will prevent the showing of a tray icon for that script when it is launched'.
I did write: 'but I do want there to be a tray icon, earlier in the program's runtime'. I presume I cannot simply insert #NoTrayIcon as a command. Indeed, the page that you linked says: 'specifying this anywhere in a script will prevent the showing of a tray icon for that script when it is launched'.
Re: Removing the tray icon (completely) Topic is solved
Code: Select all
A_IconHidden := true
-
- Posts: 50
- Joined: 02 Jan 2018, 15:55
Re: Removing the tray icon (completely)
swagfag: thank you! That seems to do the trick.
@TheArkive: I suppose the 'completely' in my post title might have misled you. Sorry!
@TheArkive: I suppose the 'completely' in my post title might have misled you. Sorry!
Re: Removing the tray icon (completely)
@UserNameForAH_Board
No worries. I suppose you were trying to toggle the tray icon programatically? That's what it looks like anyway.
No worries. I suppose you were trying to toggle the tray icon programatically? That's what it looks like anyway.
« AHK Portable Installer » | « CallTipsForAll » | « TheArkive AHK v1 Scripts » | « TheArkive AHK v2 Scrpts » | « TheArkive on GitHub »
-
- Posts: 50
- Joined: 02 Jan 2018, 15:55
Re: Removing the tray icon (completely)
TharArkive: I was trying to remove the tray icon - one I'd set earlier - immediately before my (compiled) AHK program exited. For, I have found in the past that otherwise the icon can remain - after program exit - until the tray is redrawn.