Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
opacity
#1
Is there a way to get the transparentcy level of a window?

I'm looking to make a macro that subtracts 25 or 50 each time you trigger it.

thanks.
#2
Transparent calls SetLayeredWindowAttributes, so there should be GetLayeredWindowAttributes too. And it is.

Code:
Copy      Help
dll user32 #GetLayeredWindowAttributes hwnd *crKey !*bAlpha *dwFlags

Transparent _hwndqm 200 0xff0000
1
int col flags; byte alpha
GetLayeredWindowAttributes _hwndqm &col &alpha &flags
out "0x%X" col
out alpha
out flags
#3
THIS IS FREAKIN' AWESOME!!!!

Now I can just step through the opacity till i reach the level i like!

THANKS
#4
this only works on the qm editor...what am i doing wrong?

Code:
Copy      Help
dll user32 #GetLayeredWindowAttributes hwnd *crKey !*bAlpha *dwFlags
int col flags; byte alpha
int z
GetLayeredWindowAttributes _hwndqm &col &alpha &flags
z=30
alpha+z
if alpha>255-z
,;alpha=256
,bee "C:\downloads\sounds\system\comp3.wav"
,Transparent(win 256)
,end
Transparent(win alpha)
#5
_hwndqm is QM window handle. Use win instead.
#6
perfect.
thanks!!!


Forum Jump:


Users browsing this thread: 1 Guest(s)