Jump to content
Sign in to follow this  
talgreen

Get the transparent value of a window

Recommended Posts

talgreen

Hi,

Is there a way to get the transparent value of a window?

I want to create a hot key that toggle the transparency of the active window.

When clicking the hot key, I want to check the transparency state of the window in order to know if I need to make it transparent or make it opaque.

I guess I need the function WinGetTrans, but there isnt one

Is there any way to do it?

Thanks,

Tal.

Share this post


Link to post
Share on other sites
Siao

GetLayeredWindowAttributes API.

Search the forum for that, or if there's none, pretty easy to write a proper DllCall wrapper on your own for it. I think I had it in one of my private applets, but can't find it atm.

Edited by Siao

"be smart, drink your wine"

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.