Link to home
Start Free TrialLog in
Avatar of RGuillermo
RGuillermoFlag for United States of America

asked on

Programmatically change windows CMD transparency property

Hello Experts,
I am looking for a way to programmatically change the transparency property of the CMD window.
Using visual c#, and windows 10

It has to be programmatically, cant use short cuts or hotkeys or mouse.
maybe with a dos command.
Regards,
Avatar of Lukasz Zielinski
Lukasz Zielinski
Flag of Poland image

I don't think it's possible.
Look at list of all Console API funcitons (https://docs.microsoft.com/en-us/windows/console/console-functions) there is nothing regarding thistopic.

ziolko.
Avatar of Dr. Klahn
Dr. Klahn

Microsoft can change the transparency of the window using the slider (under W10), so there must be a way to do it even though not obvious.

Perhaps ... get a copy of Process Monitor, have it monitor the command window process, and see what API calls it is making when the transparency slider it moved.

I would not expect it to work under previous versions of Windows, though.
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
kudos to Bill Prew - I haven't thought about SetWindowLong()

ziolko.
Avatar of RGuillermo

ASKER

Yes we were able to adapt it !!!
Thank you so much Experts!!

Great, glad that was helpful.


»bp