ecstatic Posted May 20, 2009 Posted May 20, 2009 (edited) Hey guys, semi-autoit related question. Anyone know where the regestry path is for the bit color/color quality in your display settings. I know it is roughly located in Local Machine - > System - > CurrentControlSet Edited May 20, 2009 by ecstatic
Moderators SmOke_N Posted May 20, 2009 Moderators Posted May 20, 2009 (edited) Hey guys, semi-autoit related question. Anyone know where the regestry path is for the bit color/color quality in your display settings. I know it is roughly located in Local Machine - > System - > CurrentControlSetWell you can do the long away around and do something like:ConsoleWrite(_Reg_GetBitsPerPixel() & @CRLF) Func _Reg_GetBitsPerPixel() Local $s_reg_key_start = "HKEY_CURRENT_CONFIG\System\CurrentControlSet\Control\VIDEO" Local $s_key = "", $s_reg_key_next = "", $s_key_next = "", $s_read = "" Local $i = 1, $j = 1 While 1 $s_key = RegEnumKey($s_reg_key_start, $i) If @error Then ExitLoop $j = 1 While 1 $s_reg_key_next = RegEnumKey($s_reg_key_start & "\" & $s_key, $j) If @error Then ExitLoop $s_read = RegRead($s_reg_key_start & "\" & $s_key & "\" & $s_reg_key_next, "DefaultSettings.BitsPerPel") If $s_read Then Return $s_read $j += 1 WEnd $i += 1 WEnd Return SetError(1, 0, "") EndFunc Or you could just use:@DesktopDepthUp to you I suppose . Edit: If you just want the path, and not the value... then you could put this one line below $s_read = If $s_read Then ConsoleWrite("Path = " & $s_reg_key_start & "\" & $s_key & "\" & $s_reg_key_next & @CRLF) Edited May 20, 2009 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now