-->

How To Adjust Brightness Without Fn Key

There are many ways to adjust or control brightness without the fn key on your laptop. You can control brightness by sliding the brightness slider from the action center of your windows laptop. And we will learn How to adjust brightness using AutoHotKey on windows.


However, it's not a comfortable way to adjust your brightness using the Action center. If your Fn key is not working, this is almost the only way to change the brightness.


There are no apps to control brightness with one key on your keyboard or with just one click. I have tried some apps like Dimscreen, but they are not up to the mark.


AutoHotKey is the only software that is easy to use for controlling or adjusting brightness, and it's straightforward compared to all the manual methods.


With the AutoHotKey program, you can press F6 and F7 to increase and decrease the brightness.


How to adjust brightness using AutoHotKey on windows:

  1. First of all, download AutoHotKey from the website.
  2. Secondly, install the software on your computer.
  3. Thirdly, Right-click anywhere on the desktop, Goto>"NEW">AutoHotKey Script.

  4. A folder will be created on the desktop. Right-click on the folder Goto>"EDIT SCRIPT."

  5. After that, notepad opens now you will see some text in it delete everything and copy the code below and paste it into the notepad.
    ; Variables
    Increments 			:= 10 ; < lower for a more granular change, higher for larger jump in brightness 
    CurrentBrightness 	:= GetCurrentBrightNess()
    
    ; Hot Keys
    F5::ChangeBrightness( CurrentBrightness -= Increments ) ; decrease brightness
    F6::ChangeBrightness( CurrentBrightness += Increments ) ; increase brightness
    ; Functions
    ChangeBrightness( ByRef brightness := 50, timeout = 1 )
    {
    	if ( brightness >= 0 && brightness <= 100 )
    	{
    		For property in ComObjGet( "winmgmts:\\.\root\WMI" ).ExecQuery( "SELECT * FROM WmiMonitorBrightnessMethods" )
    			property.WmiSetBrightness( timeout, brightness )	
    	}
     	else if ( brightness > 100 )
     	{
     		brightness := 100
     	}
     	else if ( brightness < 0 )
     	{
     		brightness := 0
     	}
    }
    
    GetCurrentBrightNess()
    {
    	For property in ComObjGet( "winmgmts:\\.\root\WMI" ).ExecQuery( "SELECT * FROM WmiMonitorBrightness" )
    		currentBrightness := property.CurrentBrightness	
    
    	return currentBrightness
    }
    
  6. Save the file and exit.
  7. Now double click to run or right click on the icon and click on the run as administrator. You will see a popup that the script is running successfully.
  8. Now just press F6 to decrease the brightness and F7 to increase brightness without pressing the Fn key.
  9. In addition, If you want to change the hotkey to F2 or F3, you can do it by changing the number in the code.
    ; Hot Keys
    F5::ChangeBrightness( CurrentBrightness -= Increments ) ; decrease brightness
    F6::ChangeBrightness( CurrentBrightness += Increments ) ; increase brightness

That's the end of the post for "how to adjust brightness without fn key." And you can also checkout the Best Caps Lock Indicator For Windows-TrayStatus

>
>