Looking for help with background script while game in fullscreen mode.

Ask gaming related questions (AHK v1.1 and older)
jrgn429
Posts: 1
Joined: 16 Jun 2022, 07:39

Looking for help with background script while game in fullscreen mode.

Post by jrgn429 » 16 Jun 2022, 08:17

Hi all,

I came across AHK while looking for a solution to my screen problem. I am a complete noob so please don't kill me :).

Full story:
I have a Philips gaming monitor (436M6VBPAB) which has 10bit color depth. This is only useful in HDR mode or when using professional SW such as Photoshop, etc.
Neither Windows desktop, nor PC games are coded in 10bit, so in standard mode, everything is extremely over-saturated.

So when I am not using HDR, I am switching the screen to sRGB color space to have normal colors.
The problem is that for some reason the brightness gets locked to 70% in sRGB mode, and that is crazy on a 750nit monitor. Even with sunglasses it's too much :-D.

Luckily there is a small utility available for download, which can override the brightness settings.
But here's another issue. When I alt+tab between the utility and a full-screen game, the monitor gets reset to the crazy brightness every time the game takes ownership.




So I am looking for a way of moving the brightness slider of the utility in the background without disturbing the game's full-screen mode.

Please let me know if something like that is doable.

Please find a screenshot of the Philips app. attached. The slider can be moved with mousewheel up/down or arrows left/right.


Many thanks in advance for any input.

Cheers,

Jan

PS.: I know I could run the games in borderless mode, but sometimes that is quite performance expensive.
PPS.: And I also know that it would solve my issue. In some games I am able to unlock the mouse cursor while having the utility on a second screen, and then adjust brightness by mouseover + scrollwheel up/down.
Attachments
smartcontrol.JPG
smartcontrol interface
smartcontrol.JPG (125.12 KiB) Viewed 298 times

User avatar
mikeyww
Posts: 27082
Joined: 09 Sep 2014, 18:38

Re: Looking for help with background script while game in fullscreen mode.

Post by mikeyww » 30 Jun 2022, 07:38

My own take: get a computer that works! :) Cheers.

Rohwedder
Posts: 7679
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Looking for help with background script while game in fullscreen mode.

Post by Rohwedder » 01 Jul 2022, 11:13

Hallo,
maybe this can dim down your game. Black gui in the background and the transparency of the game increased:

Code: Select all

!x:: ;Black Gui on/off
IF hwnd
	Reload
hwnd := WinExist("A") ;active window
Gui, New, -Caption +ToolWindow -DPIScale 
Gui, Color, Black
Gui, Show, w%A_ScreenWidth% h%A_ScreenHeight%
WinActivate, ahk_id %hwnd% ;reactivate previously active window
Return
<^>!WheelUp:: ;AltGr WheelUp
>!WheelUp:: ;RAlt WheelUp Transparency decrease
MouseGetPos,,, Win
WinGet, Trans, Transparent,% TraWin := "ahk_id " Win
If !Trans
	Return
Trans := (Trans = "") ? 255 : Trans + 16
If (Trans < 250)
	WinSet, Transparent, %Trans%,% TraWin
Else
{
	WinSet, Transparent, 255,% TraWin
	WinSet, TransColor, OFF,% TraWin
	WinSet, Transparent, OFF,% TraWin
	WinSet, Redraw,,% TraWin
}
Return
<^>!WheelDown:: ;AltGr WheelDown
>!WheelDown:: ;RAlt WheelDown  Transparency increase
MouseGetPos,,, Win
WinGet, Trans, Transparent,% TraWin := "ahk_id " Win
Trans := (Trans = "") ? 239 : Max(15, Trans - 16)
WinSet, Transparent, %Trans%,% TraWin
Return

Post Reply

Return to “Gaming Help (v1)”