Jump to content

open IL2 and fx Gremlin too , one click ???


Recommended Posts

Posted (edited)

Hi

I play in Steam , and there is 2 other programs I use when playing ...so for make it easy - I would like when Im starting IL2 the other allso - 1 click 

 

I have looked on the 'google' and there is something about a bat file , but I cant figure it out ...

 

Here example to just 1 program   :    @echo off
                                                                 start "" "C:\Program Files(x86)\H2ik\Joystick Gremlin\joystick_gremlin.exe"           

 

and IL-2 and Evga are not exe but url     or gameID  ...so                                                   ???????

Edited by Niiranen-VR
Posted (edited)

Hi Niiranen-VR, 

There are some more elegant solutions, including using some third party launchers, but a quick one can be seen below:

First, create a shortcut for your Joystick Gremlin, Trackir or whatever you want to start before playing - put them into a directory of choice. Let's say you save them into "C:\Games" for example.

After this, just create a batch file (let's say start.bat) with the following commands in it:

 

@echo off

start /B C:\Games\TrackIR5.lnk
start /min C:\Games\joystick_gremlin.lnk
start /B "C:\Program Files\Steam\Steam.exe" -applaunch 307960

 

Create a shortcut for it and click on it before playing.

Notes:

If you installed your Steam in another directory, just adjust the path above to reflect that.

 

The commands do as follows:

@echo off - disable screen messages

start /B C:\Games\TrackIR5.lnk - start Trackir - start the app without creating a new window (/B)
start /min C:\Games\joystick_gremlin.lnk -  start the app minimized
start /B "C:\Program Files\Steam\Steam.exe" -applaunch 307960 - just asks Steam to start app number 307960, which happens to be IL2 Battle of Stalingrad

 

If you want to have another .bat to run after you quit playing, in order to quit the Gremlin, etc -  just do the following on another .bat file (i.e., close.bat):

@echo off

rem Close joystick_gremlin
taskkill /IM joystick_gremlin.exe
taskkill /IM joystick_gremlin.exe
taskkill /IM joystick_gremlin.exe
taskkill /IM joystick_gremlin.exe

rem Close TrackIR5
taskkill /IM TrackIR5.exe
taskkill /IM TrackIR5.exe
taskkill /IM TrackIR5.exe
taskkill /IM TrackIR5.exe

 

The reason that I put some lines 4 times is because, on my Windows with these particular processes (Joystick Gremlin and Trackir), it will not kill the process with just one command (although I have only one process of each running). You may try to put the "/F" parameter like in "taskkill /F /IM joystick_gremlin.exe" to forcefully kill it in just one command, but in my case this parameter let the TrackIR camera lit, while killing the process.

 

Hope this helps. 

Cheers

 

EDIT: use notepad to create the .bat files, just to be on the safe side. Other editors like wordpad and such can mess things including extra info in the file.

Edited by jokerBR
Posted

Keep it simple ! 

I try to start it up , and now only 1 program and @echo off off 

But the bat can't find it and open 

 

Tried as admin too , and the shortcut working 

E11AA34C-A65E-40D5-AD97-3E171A03B749.jpeg

Posted (edited)

and Now I have succes ...??

 

Importend to remember the backslash in the end , and the command  >/MIN < did nothing , but its not so importend 

and it was the idea that IL2 should open too , but I play in VR and thats a command in steam ...so ...... but ......

 

@echo off

start C:\Games\Gremlin.lnk\
start C:\Games\Steam.lnk\
start C:\Games\Evga.url\

 

A3766D43-72A2-44E0-97C4-0005C63B5751.jpeg

Edited by Niiranen-VR
and my Notepad file is saved as : IL2.bat
Posted (edited)

Hi Niiranen-VR, nice to see that you're getting progress.

 

To start IL-2 in VR mode, you can try putting in the Steam game's parameters the "-vr" option (or "-steamvr", I'm not sure as I don't have VR).
On Steam, right click the IL-2 icon and select "Properties" and then "Set Launch Options" button. In there, put "-vr" (or "-steamvr" if this doesn't work) and press OK and Close. 

~or~
On the shortcut file, edit it (properties) and add the "-vr" string (whitout quotes) right after the command in the "target" field.

 

Important: always make sure that the part of your command related to the link or program that you want to start is enclosed in double quotes, like this:

@echo off

start /min "C:\Games\Gremlin.lnk"
start "C:\Games\Steam.lnk"
start "C:\Games\Evga.url"

This way you wont need the last backslash, and the START command will better differentiate between options (/min, /B, etc) and the actual program/link that you want to start. Maybe this solves the /min parameter not working with your Joystick Gremlin (mine works!).

Not sure what the last command does ("Evga.url"). Is it for opening a URL inside your browser?


Cheers

EDIT: forget about the /MIN on starting Joystick Gremlin. To achieve that, select the corresponding option inside JG on "Tools/Options" menu:

image.png.5856ee66913fd21b145fd14015000fff.png

Edited by jokerBR
Posted

Maybe ill do about my gremlin /min - but it not so important 

The .bat file was -  many times my IL2 start with my VR on  , I have forgot to open joystick gremlin so no zoom and other stuff 

The evga precision x1 is a GPU oc'r and URL is - like IL2 a app in steam 

 

So it's working now , so let's see ... But thanx ?

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
×
×
  • Create New...