Re: PR Noise-Problem Solution
Posted: 2015-06-26 10:32
This567
Code: Select all
#NoEnv
#MaxHotkeysPerInterval 250
SendMode Input
; Only launch PR if not already running, good when reloading
Process, Exist, PRLauncher.exe
if ErrorLevel = 0
Run, D:\Program Files (x86)\Project Reality\Project Reality BF2\PRLauncher.exe, D:\Program Files (x86)\Project Reality\Project Reality BF2
; Wait for the Launcher to close, basically same as waiting for Window to close
Process, WaitClose, PRLauncher.exe
; ErrorLevel = 0, when all matching processes terminated
if ErrorLevel = 0
ExitApp
return
#1::
; 1. Game volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume PRBF2.exe 1.0
; 2. TeamSpeak3 volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume ts3client_win32.exe 0.4
; 3. mumble volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume PRMumble.exe 0.4
return
#2::
; 1. Game volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume PRBF2.exe 0.65
; 2. TeamSpeak3 volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume ts3client_win32.exe 0.6
; 3. mumble volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume PRMumble.exe 0.7
return
#3::
; 1. Game volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume PRBF2.exe 0.15
; 2. TeamSpeak3 volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume ts3client_win32.exe 0.9
; 3. mumble volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume PRMumble.exe 0.8
return
#4::
; 1. Game volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume PRBF2.exe 1.0
; 2. TeamSpeak3 volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume ts3client_win32.exe 0.05
; 3. mumble volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume PRMumble.exe 0.02
return
#5::
; 1. Game volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume PRBF2.exe 1.0
; 2. TeamSpeak3 volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume ts3client_win32.exe 0.7
; 3. mumble volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume PRMumble.exe 0.1
return
#6::
; 1. Game volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume PRBF2.exe 1.0
; 2. TeamSpeak3 volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume ts3client_win32.exe 0.1
; 3. mumble volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume PRMumble.exe 0.6
return
Yeah, I managed to get it to automatically run.[R-CON]Spook wrote:You run the PrVolume.ahk script. If you double click it, autohotkey executes the script and PR Launcher should start automatically if the paths are set correctly in the script. As soon as you close PR, the script automatically shuts itself down too. All you need to do is execute the script and click on PLAY in the PRLauncher. I personally added some more applications in the script, like shadowplay, joytokey etc. stuff that I always forget to launch together with PR and therefore simply added in there too.
You can also left click the ahk file and in the context menu you should be able to compile the script. it will generate an exe file which you can also simply execute to start the script.
Code: Select all
#NoEnv
#MaxHotkeysPerInterval 250
SendMode Input
; Only launch PR if not already running, good when reloading
Process, Exist, PRLauncher.exe
if ErrorLevel = 0
Run, D:\Program Files (x86)\Project Reality\Project Reality BF2\mods\pr\bin\PRLauncher.exe, D:\Program Files (x86)\Project Reality\Project Reality BF2\mods\pr\bin
; Wait for the Launcher to close, basically same as waiting for Window to close
Process, WaitClose, PRLauncher.exe
; ErrorLevel = 0, when all matching processes terminated
if ErrorLevel = 0
ExitApp
return
F9::
; 1. Game volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume PRBF2.exe 1.0
; 2. TeamSpeak3 volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume ts3client_win32.exe 0.4
; 3. mumble volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume PRMumble.exe 0.4
return
F10::
; 1. Game volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume PRBF2.exe 0.65
; 2. TeamSpeak3 volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume ts3client_win32.exe 0.6
; 3. mumble volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume PRMumble.exe 0.7
return
F11::
; 1. Game volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume PRBF2.exe 0.15
; 2. TeamSpeak3 volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume ts3client_win32.exe 0.9
; 3. mumble volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume PRMumble.exe 0.8
return
F12::
; 1. Game volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume PRBF2.exe 1.0
; 2. TeamSpeak3 volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume ts3client_win32.exe 0.05
; 3. mumble volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume PRMumble.exe 0.02
return
F8::
; 1. Game volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume PRBF2.exe 1.0
; 2. TeamSpeak3 volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume ts3client_win32.exe 0.7
; 3. mumble volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume PRMumble.exe 0.1
return
F7::
; 1. Game volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume PRBF2.exe 1.0
; 2. TeamSpeak3 volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume ts3client_win32.exe 0.1
; 3. mumble volume:
Run C:\Users\Mufid\Desktop\PR FIX\PRVolume\nircmd.exe setappvolume PRMumble.exe 0.6
return
he probablay was so baked that he can't even remember it today. don't worry chip0Chip0 wrote: p.s.: Sorry Mike for getting you mad!
This works perfectly, thank you!Senshi wrote:Took the liberty to overhaul the script.
What changed?How to install:
- No more need to manually compile: Necessary paths are set in a separate settings.ini file
- ts3_win64 supported
- Automatically detects if ts3_win32 or ts3_win64 is running
- Automatically detects if you don't have admin permissions and will request them.
Without admin rights the tool cannot manipulate the volumes at all (at least on Win8+, probably Win7 as well)If you want to customize the hotkeys or volume profiles, you currently still need to recompile the script, that's why the .ahk file is included.
- Extract the folder wherever you want.
- Open the settings.ini inside
- Adjust the GamePath and nircmdPath to fit your setup.
- Run the PRVolumeStd.exe. This should launch the PRLauncher. You can test if it is working by using the hotkeys now and checking if volume levels of TS3/Game/Mumble change in Window's volume mixer.
- Profit
The compiled .exe offers 6 presets, reachable by pressing
LWin and 1 (up to LWin and 6).
I'm currently looking into ways to move these to the settings.ini as well to make it more flexible .
Download
dowload this file'[R-CON wrote:Senshi;2145955']Took the liberty to overhaul the script.
What changed?How to install:
- No more need to manually compile: Necessary paths are set in a separate settings.ini file
- ts3_win64 supported
- Automatically detects if ts3_win32 or ts3_win64 is running
- Automatically detects if you don't have admin permissions and will request them.
Without admin rights the tool cannot manipulate the volumes at all (at least on Win8+, probably Win7 as well)If you want to customize the hotkeys or volume profiles, you currently still need to recompile the script, that's why the .ahk file is included.
- Extract the folder wherever you want.
- Open the settings.ini inside
- Adjust the GamePath and nircmdPath to fit your setup.
- Run the PRVolumeStd.exe. This should launch the PRLauncher. You can test if it is working by using the hotkeys now and checking if volume levels of TS3/Game/Mumble change in Window's volume mixer.
- Profit
The compiled .exe offers 6 presets, reachable by pressing
LWin and 1 (up to LWin and 6).
I'm currently looking into ways to move these to the settings.ini as well to make it more flexible .
Download
Bump!operativac wrote:Bumpitiy-bump!
I have noticed that there are no download links that are working at the moment so I decided to upload the .zip I have on my local storage. Every setting is reverted to default and it is with the changes made by Senshi.
Link: https://drive.google.com/open?id=1i07AJ ... KJs-4a7heG
Enjoy friends!
Kind regards,
op