careca

Rocket League Resolution

1 post in this topic

Hey there, i made this because i sometimes change computer, and then the screen resolution is different, so i run this before starting the game, Rocket League, then the game will start in the propper resolution (desktop), and i don't have to go fiddle with the file, or start the game with an odd resolution, sometimes the only option is really change it in the file, because you can't access (see) the display menu.

#Region ;Wrapper
#pragma compile(UPX, false)
#AutoIt3Wrapper_UseUpx=n
#AutoIt3Wrapper_UseX64=n
#AutoIt3Wrapper_Run_Tidy=y
#AutoIt3Wrapper_Res_SaveSource=y
;#AutoIt3Wrapper_Icon=RL.ico
;#AutoIt3Wrapper_Res_Icon_Add=RL.ico
#AutoIt3Wrapper_Res_Fileversion=1.0
#AutoIt3Wrapper_AU3Check_Parameters=-d -w 1 -w 2 -w 3 -w- 4 -w 5 -w 6 -w- 7
#EndRegion ;Wrapper
;=============================================================================
#Region ;FileInstall
;FileInstall("file", @ScriptDir & "\file")
#EndRegion ;FileInstall
;=============================================================================
#Region
#include <GUIConstants.au3>
#include <TrayConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <APIGdiConstants.au3>
#include <WinAPIGdi.au3>
#include <WinAPISys.au3>
#include <WinAPI.au3>
#include <Array.au3>
#include <File.au3>
#EndRegion
;=============================================================================
#Region
Local $Width = 0
Local $Height = 0
Local $aPos, $aData = _WinAPI_EnumDisplayMonitors()

If IsArray($aData) Then
    ReDim $aData[$aData[0][0] + 1][5]
    For $i = 1 To $aData[0][0]
        $aPos = _WinAPI_GetPosFromRect($aData[$i][1])
        $aData[$i][2] = $aPos[2]
        $Width = $Width + $aPos[2]
        $Height = $Height + $aPos[3]
    Next
EndIf

MsgBox(64, 'Res', $Width & 'x' & $Height)
IniWrite('C:\Users\' & @UserName & '\Documents\my games\Rocket League\TAGame\Config\TASystemSettings.ini', "SystemSettings", "ResX", $Width)
IniWrite('C:\Users\' & @UserName & '\Documents\my games\Rocket League\TAGame\Config\TASystemSettings.ini', "SystemSettings", "ResY", $Height)
#EndRegion

 


Spoiler

Paster - Main function is to paste text, but has more functions.

OpenW - Open With... alternative, Open any file with any application, set it's icon, set application as default.

Renamer - Rename files and folders, remove portions of text from the filename etc.

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Firefox Profile Backup - Backup/restore previously saved profile.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Share this post


Link to post
Share on other sites



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 account

Sign in

Already have an account? Sign in here.


Sign In Now