Community Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

Windows screen brightness control using a custom C# .NET dll

I have been looking for ways to get the control of my laptop brightness and later wrote a wrapper DLL using C#  .NET to do the job.

DLL is attached here with sample VI snippet. 

Two methods does the job.

  • GetBrightness gets the current brightness.
  • SetBrightness sets the brightness in range of 0-100.

 

ScreenBrightness.png

--
Ajay MV


Download All
Comments
Ajay_MV
Active Participant
Active Participant
on

@Addis

 

I have added .NET 3.5 supported dll here.

 

Thanks

Ajay

--
Ajay MV


AndryG
Member
Member
on

Привет, Аджай. Подскажите, как на диаграмме в LV создать объект ScreenBrighnessClass?

Ajay_MV
Active Participant
Active Participant
on
Hi Ajay. Tell me how to create a ScreenBrighnessClass object on a diagram in LV?

Hi AndryG,

 

I the class object is from the .NET 3.5 which I used .. It might be updated now after so long.

 

Regards,

Ajay. 

--
Ajay MV


AndryG
Member
Member
on

thanks)

David_Rom
Member
Member
on

Hi together!

 

This example works fine on my laptop screen but not on my external 24" screen which is connected via a docking station to my laptop. 
Why is it so?

 

Thanks in advance.

Contributors