3451
Post New Requests Here / Re: Focus-Unfocus and let me link
« Last post by MilesAhead on January 13, 2014, 06:00 PM »I don't see changes with the script above truly ....-Contro (January 13, 2014, 05:32 PM)
It changes the system menu icon(left corner of title bar) but of course you must use a path to a real .ico file. It probably doesn't check for errors as it's just a bare shell.
Edit: I ran it on my system using desktop.ico as the icon and it changed the system menu icon for me.
f4::
newIcon:="C:\Program Files\AutoHotkey\Scripts\Desktop.ico"
WinGet, winID,id,A
WinGet, ExStyle, ExStyle, ahk_id %winID%
if (ExStyle & 0x8) ; 0x8 is WS_EX_TOPMOST.
{
soundbeep ;just for debugging
WinSet, alwaysontop,off,ahk_id %winID%
SendMessage, 0x80, 0, 0,, ahk_id %winID% ; (0x80 is WM_SETICON).
return
}
else
{
WinSet, alwaysontop,on,ahk_id %winID%
hIcon := DllCall("LoadImage", uint, 0, str, newIcon,uint, 1, int, 0, int, 0, uint, 0x10)
SendMessage, 0x80, 0, hIcon,, ahk_id %winID% ; (0x80 is WM_SETICON).
}
return

Recent Posts


A 

