Hide application icon from title bar!(Repost)

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
negimox
Posts: 3
Joined: 02 Jun 2021, 08:58

Hide application icon from title bar!(Repost)

18 Jun 2021, 15:20

Hello, I wanted to ask weather its possible to hide applications icon from the title bar and only leave the three buttons(i.e. minimize, maximize and close) and the application name, like in mac.
Thanks!
Attachments
file.jpg
file.jpg (98.07 KiB) Viewed 326 times
User avatar
boiler
Posts: 16902
Joined: 21 Dec 2014, 02:44

Re: Hide application icon from title bar!(Repost)

18 Jun 2021, 21:56

There may be other and better approaches, but one would be to load a blank icon (all transparent pixels) and replace the icon for that window with the blank one. See this thread for changing the icon. You would need to create the blank icon.
negimox
Posts: 3
Joined: 02 Jun 2021, 08:58

Re: Hide application icon from title bar!(Repost)

26 Jun 2021, 06:16

I tried doing it via Resource Hacker and AHK both only worked at windows applications i.e. Notepad, Calculator etc and I just couldn't get them to work for my photoshop or any other software. Maybe I'm doing something wrong.
Used this script:

Code: Select all

#Persistent 
Ico :="C:\Users\Negi Mox\Desktop\blank.ico" 
Menu,Tray,Icon,%Ico%

Run, C:\Program Files (x86)\Internet Download Manager\IDMan.exe,,, PID
Winwait, ahk_pid %PID%
ID := WinExist("ahk_pid" PID)

hIcon := DllCall( "LoadImage", UInt,0, Str,Ico, UInt,1, UInt,0, UInt,0, UInt,0x10 )
SendMessage, 0x80, 0, hIcon ,, ahk_id %ID%  ; One affects Title bar and
SendMessage, 0x80, 1, hIcon ,, ahk_id %ID%  ; the other the ALT+TAB menu

SetTimer, CheckID, 1000
Return

CheckID:
 If ! WinExist( "ahk_id" ID )
    ExitApp
Return
User avatar
boiler
Posts: 16902
Joined: 21 Dec 2014, 02:44

Re: Hide application icon from title bar!(Repost)

26 Jun 2021, 14:03

I’ve changed the icon of non-Windows apps. Try running your script as administrator (regardless of the privileges of the Windows user login). Right-click on the script file in File Explorer and select “Run as administrator.”
negimox
Posts: 3
Joined: 02 Jun 2021, 08:58

Re: Hide application icon from title bar!(Repost)

30 Jun 2021, 10:20

still no luck even with admin rights, I tried to do it with photoshop n idm none worked which program u tried it on?
User avatar
boiler
Posts: 16902
Joined: 21 Dec 2014, 02:44

Re: Hide application icon from title bar!(Repost)

30 Jun 2021, 11:02

Sorry, Photoshop does not use a standard title bar with a standard 16x16 icon. It would work on programs that use the Windows standard approach to the title bar and icon, even if it's not a Microsoft app. Notepad++ is one example for which it works.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: OrangeCat, scriptor2016 and 124 guests