Widescreen Gaming Forum

[-noun] Web community dedicated to ensuring PC games run properly on your tablet, netbook, personal computer, HDTV and multi-monitor gaming rig.
It is currently 28 Apr 2024, 23:07

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 30 Dec 2008, 17:27 
Offline
Insiders
Insiders

Joined: 11 Jan 2007, 14:46
Posts: 251
Hey there guys,

An old friend on this forum asked me to make a little application to change a resolution of a game using the registry.
Since I didn't wanna make an executables nobody can adjust i've decided to make a little VBS that anyone can change as there desire:

Code:
' Made By: Squ1zZy
   ' Date: 30/12/2008
   
   Option Explicit
   Dim objShell
   Dim StrWidth, StrHeight, StrNameWidth, StrNameHeight, StrRegistry
   
   StrNameWidth = "ScreenResolutionWidth"
   StrNameHeight = "ScreenResolutionHeight"
   StrWidth = InputBox("Enter the Width:")
   StrHeight = InputBox("Enter the Height:")
   StrRegistry = "HKCUSOFTWAREUbisoftShaunWhiteSnowboarding1.0Engine"
   
   Set objShell = CreateObject("WScript.Shell")
   
   objShell.RegWrite strRegistry & strNameWidth, "REG_SZ"
   objShell.RegWrite strRegistry & strNameWidth, strWidth, "REG_SZ"
   
   objShell.RegWrite strRegistry & strNameHeight, "REG_SZ"
   objShell.RegWrite strRegistry & strNameHeight, strHeight, "REG_SZ"
   
   Wscript.Echo "Resolution set to " & strWidth & "x" & StrHeight
   WScript.Quit
   


What you need to do is the following:

Copy and paste the tekst between the code tags in a tekst file and rename the extension from .txt to .vbs.
Doubleclick the file.vbs, enter the height and width and you're done.

Maybe it's an idea to use this for the games that needs some registry tweaking.

Just sharing with you guys :)


Top
 Profile  
 


PostPosted: 30 Dec 2008, 22:07 
Offline

Joined: 28 May 2007, 03:10
Posts: 845
Nice work there friend.

Don't be surprised if some paranoid antivirus software *cough* nav *cough* flagged it as possible virus due to most 'script kiddies' using .vbs as payload however.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  




Powered by phpBB® Forum Software © phpBB Group