can't change semi transparency

Get help with using AutoHotkey and its commands and hotkeys
dentopolis
Posts: 73
Joined: 06 May 2016, 16:28

can't change semi transparency

12 Aug 2020, 05:27

my code for a window look like this:

Code: Select all

Gui, +HwndGuiHwnd +AlwaysOnTop
Gui, Add, TreeView, gTreeViewEvent x5 y5 w400 h300
WinSet, TransColor, EEAA99 50
even if I change the value 50->250 and restart script, nothing changes
I even tried

Code: Select all

WinSet, Transparent, 150, Shortcuts
A_AhkUser
Posts: 1147
Joined: 06 Mar 2017, 16:18
GitHub: AAhkUser
Location: France

Re: can't change semi transparency

12 Aug 2020, 06:04

Hi deontopolis,
dentopolis wrote:
12 Aug 2020, 05:27
my code for a window look like this:
As I see it, the problem has to do with the fact that the GUI window has no been yet shown or is not currently visible. You have at least two options to operate upon the hidden GUI window:

Code: Select all

Gui, +HwndGuiHwnd +AlwaysOnTop +LastFound
; ...
WinSet, TransColor, EEAA99 50
or:

Code: Select all

Gui, +HwndGuiHwnd +AlwaysOnTop
; ...
DetectHiddenWindows, On
WinSet, TransColor, EEAA99 50, % "ahk_id " . GUIHwnd
DetectHiddenWindows, Off
hope this could help

A_AhkUser
my scripts

Return to “Ask For Help”

Who is online

Users browsing this forum: alih1029, ananthuthilakan, AndyRal123, AshleyM0101, Curbani, laulau, mcl, mikeyww, TimGerrit and 55 guests