Jump to content
LaunchBox Community Forums

skizzosjt

Members
  • Posts

    692
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by skizzosjt

  1. if anyone wants to do exactly what you're after without installing other stuff like qres, you can actually do this all in AHK without additional programs/software here is an example I what I am doing. I also got this from the AHK forums, the actual bit on how to adjust all the display parameters that is. I am using this because I have a 120Hz display and wanted to play the Super Mario 64 PC Port and it kinda sorta freaks out when you enable the 60FPS mod but are on a 120Hz. So I needed to change my refresh rate to 60Hz when game launches and then back to 120Hz when it exits. The concept is the same, but I would think this is more elegant due to not needing additional resources like qres Apologies, the AHK script I originally included seemed to only work with the AHK version included with RocketLauncher but NOT the AHK version included with LaunchBox. I have cleaned up this script and edited my post to include this version that is much more compact but now actually works with LaunchBox. Apparently some things I was using were deprecated so the actual bits that were supposed to change display properties was not working. Here is updated script code. WinWait, ahk_exe Super Mario 64 PC.exe ChangeDisplaySettings(32, 3840, 2160, 60) WinWaitClose, ahk_exe Super Mario 64 PC.exe ChangeDisplaySettings(32, 3840, 2160, 120) 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) }
×
×
  • Create New...