TRANS COLOR?!? More like...Trans...not working

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
gibenedek
Posts: 53
Joined: 20 Sep 2020, 19:51

TRANS COLOR?!? More like...Trans...not working

Post by gibenedek » 24 Jan 2022, 07:52

So Its a gui, Cool. I dont think I need explain much save for the pic.

1) idkwtf i dont use transcolor much, but when I do it works.

2) I just spend an hour and a half getting icons. Oh yes, some of which did not have transparency, so I gave it to them. YOU CAN HAVE MY TRANSPARENCY! They arent having it.
On the real, not one of these pictures has a white background IRL. Most of them are on google if you want to look. I tested the actual color, FFFFFF. F's for me in the chat I guess ;(

Oh, code is in the picture. Clearly were working with 1 line here.

All I wanted was rainmeter but good

Oh, heres the top, that isnt just images:

Code: Select all


gui, -caption
Gui, Color, FFFFFF

image.png
image.png (240.3 KiB) Viewed 331 times

User avatar
boiler
Posts: 16769
Joined: 21 Dec 2014, 02:44

Re: TRANS COLOR?!? More like...Trans...not working

Post by boiler » 24 Jan 2022, 09:01

Add this line to the top so WinSet finds the GUI window even though it's not shown yet:

Code: Select all

DetectHiddenWindows, On
You can alternatively show the GUI before using WinSet, but then the background will briefly flash on the screen before it becomes transparent.

Also, it would be better to positively identify the GUI window rather than rely on its title since it's easy to do. You would do this by changing your first line to:

Code: Select all

Gui, +HwndGuiID -Caption
…and changing your WinSet line to:

Code: Select all

WinSet, TransColor, FFFFFF, ahk_id %GuiID%

Post Reply

Return to “Ask for Help (v1)”