Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```#NoEnv
- ; #Warn
- #SingleInstance, force
- Proc = nvstreamer.exe //If this process is running change resolution to stream settings below
- cD1 = 32 //Default Color Detail - bits (quality)
- sW1 = 1920 //Default Screen With - Pixels
- sH1 = 1080 //Default Screen Hight - Pixels
- rR1 = 60 //Default Refresh Rate - Hz (frequency)
- cD2 = 32 //Streaming Color Detail - bits (quality)
- sW2 = 1280 //Streaming Screen With - Pixels
- sH2 = 720 //Streaming Screen Hight - Pixels
- rR2 = 60 //Streaming Refresh Rate - Hz (frequency)
- ChangeDisplaySettings( cD, sW, sH, rR ) {
- VarSetCapacity(dM,156,0), NumPut(156,2,&dM,36)
- DllCall( "EnumDisplaySettingsA", UInt,0, UInt,-1, UInt,&dM ),
- NumPut(0x5c0000,dM,40)
- NumPut(cD,dM,104), NumPut(sW,dM,108), NumPut(sH,dM,112), NumPut(rR,dM,120)
- Return DllCall( "ChangeDisplaySettingsA", UInt,&dM, UInt,0 )
- }
- Label1:
- Process, Wait, %Proc%
- ChangeDisplaySettings(%cD2%, %sW2%, %sH2%, %rR2%)
- MsgBox "Changed your resolution"
- Process, WaitClose, %Proc%.exe
- ChangeDisplaySettings(%cD1%, %sW1%, %sH1%, %rR1%)
- MsgBox "Restored your resolution"
- Gosub, Label1```
Advertisement
Add Comment
Please, Sign In to add comment