PDA

View Full Version : Launcher Shortcut for IL2COD



ATAG_Bliss
Dec-04-2011, 18:23
Hi everyone,

As we all know, it's only a matter of time before we get a launcher crash playing online. In saying that, most people fly a sortie and then restart the game upon completion. Doing this through the game is a hassle as you have to go through all the start up menus, and click through everything to get to the server. Then, when you want to exit, you have to not only exit the server, but then also wait to exit the game. Repeating this process is a pain to do for every sortie.

With that said, I've created a shortcut that works exactly like the launcher.exe executable that will start the game for you. But the real kicker here is it will connect you automatically to the server. No more intro video/menus/mouse clicks (should help some of the ATI guys out) But even better, after you've completed your sortie, when you leave the server, the game will automatically close down.

Simply place this file anywhere you want and viola, you should get some better performance, not to mention save a bunch of time.

Cheers!

306

Ohms
Dec-05-2011, 11:11
Thx Bliss will give this a try when i get home.

P.S Don't want to sound like a suck up but thx's for all your and the rest of the ATAG guys hard work.

ChiefRedCloud
Dec-05-2011, 19:36
Works fine for me ....... batch file. Simple and very effective. thanks .... :thumbsup:

JG6_BigglesCDN
Dec-05-2011, 19:38
Bliss...when u say anywhere I assume u mean in the game folder on Steam?

Ohmie...what is that sucking sound I hear??:laugh1

Cheers!

Biggs

ChiefRedCloud
Dec-05-2011, 19:47
Bliss...when u say anywhere I assume u mean in the game folder on Steam?

Ohmie...what is that sucking sound I hear??:laugh1

Cheers!

Biggs

Actually your desktop is fine for it ......

ATAG_Deacon
Dec-06-2011, 09:02
Hi everyone,

As we all know, it's only a matter of time before we get a launcher crash playing online. In saying that, most people fly a sortie and then restart the game upon completion. Doing this through the game is a hassle as you have to go through all the start up menus, and click through everything to get to the server. Then, when you want to exit, you have to not only exit the server, but then also wait to exit the game. Repeating this process is a pain to do for every sortie.

With that said, I've created a shortcut that works exactly like the launcher.exe executable that will start the game for you. But the real kicker here is it will connect you automatically to the server. No more intro video/menus/mouse clicks (should help some of the ATI guys out) But even better, after you've completed your sortie, when you leave the server, the game will automatically close down.

Simply place this file anywhere you want and viola, you should get some better performance, not to mention save a bunch of time.

Cheers!

306


Bliss,

Thanks for the Launcher! Placed on the desktop and works like a charm!!!

~S~

Deacon

ATAG_Snapper
Dec-06-2011, 14:34
Just tried it and it works like a dream! Thanks, Bliss!

Ohms
Dec-06-2011, 15:47
Works great thanks:dthumb:

=AN=Felipe
Dec-14-2011, 00:12
nice one!! thx!!!!!!

NNFFL=Temeraire=
Dec-30-2011, 06:40
Tanks :thumbsup:

104th_MoGas
Dec-31-2011, 10:53
Thats a great thing, tested it now for weeks, and it solved my joining issues!!!!!

:thumbsup:

Robo.
Jan-27-2012, 05:48
Superb, Bliss. Thanks a lot!

Chair1
Nov-25-2012, 10:05
Thanks Bliss................Us old guys need this because we (old guys) do not want to waste any time because we don't know how much time we have left.:)


:grandpa

ATAG_Lewis
Feb-28-2013, 14:29
Brilliant....works a treat!....Now I can actually do more than just pretend to pay attention to the missus as she talks to me while I am starting up my game.....

Great Work!...a real help for me..

PS...Also..if you make a shortcut you can change the icon to one of the selection of icons if you want something a little more interesting than the cog icon...just remember not to delete the original...(apparently you can't change the icon of a 'bat' or 'exe' for fear of them being diguised as nasties but you can change the shortcut icon....)

Right click file - Create Shortcut - Right Click Shortcut - Properties - Shortcut - Change icon...

talesc
Feb-28-2013, 20:03
Hi everyone,

As we all know, it's only a matter of time before we get a launcher crash playing online. In saying that, most people fly a sortie and then restart the game upon completion. Doing this through the game is a hassle as you have to go through all the start up menus, and click through everything to get to the server. Then, when you want to exit, you have to not only exit the server, but then also wait to exit the game. Repeating this process is a pain to do for every sortie.

With that said, I've created a shortcut that works exactly like the launcher.exe executable that will start the game for you. But the real kicker here is it will connect you automatically to the server. No more intro video/menus/mouse clicks (should help some of the ATI guys out) But even better, after you've completed your sortie, when you leave the server, the game will automatically close down.

Simply place this file anywhere you want and viola, you should get some better performance, not to mention save a bunch of time.

Cheers!

306

How about a launcher that eliminates the need to conect to internet and steam? This would allow multiple working installs for CloD outside steam directory.

ATAG_Bliss
Feb-28-2013, 20:19
How about a launcher that eliminates the need to conect to internet and steam? This would allow multiple working installs for CloD outside steam directory.

You can already do this.

Just restart steam in offline mode (which must be done with an internet connection at 1st) Once offline, you can start the sim and do any offline/SP missions you desire. Unplug your Ethernet cable etc. It doesn't matter. This doesn't have the online requirement like other sims :)

As far as multiple working installs outside the steam directory. You can copy and past the entire IL2 Cliffs of Dover folder to anywhere you want outside of the steam directory, and the sim will work fine. Obviously the short cut that steam uses only starts the install located inside the steam folder, but you can create your own shortcut for launcher.exe for any install and start and run the sim just fine, with multiple copies, without the need for it being in the steam folder at all.

To give you an idea, I have 5 different copies of the sim, only one of which is located in the steam folder. All work fine. :thumbsup:

Incog
Dec-28-2013, 06:03
This is a very useful utility, nicely done mate.

You guys make a very solid community. Love it.

Steerpots
Feb-06-2014, 05:32
S! All
I have used this batch file and like that I can auto connect to the ATAG server on launch of Steam.
However from my perspective there is a shortcoming in that when you exit the ATAG server CoD closes down.
What I want is for the game not to close when I exit the server.
I don't want to have to re-launch the game when I want to change servers

I've searched and can't find an answer...any ideas anyone.

69th Steerpots

Steerpots
Feb-20-2014, 01:55
S! All

Find attached my extension to the original bat file posted above.
The extension works in the exact same way as the original.
The difference is my version offers you a menu of different servers to connet to (with ATAG being number 1 :D).

I have also developed an AHK script that when activated does the following:

1. Automatically closes unnecessary processes
2. Automatically deletes the cache folder
3. Automatically starts TS Notifier
4. Automatically starts TeamSpeak
5. Automatically starts TrackIR and activates the precision option(F7)
6. Automatically starts the menu option bat file
7. Offers a hotkey to clear cache and re-run menu options when you leave the server(when maps swap)
8. Offers a hotkey to Automatically close:

TS Notifier
TeamSpeak
TrackIR
Steam
Re-start the processes closed at the beginning of the script.

I am happy to share this script, however it would need to be personalised to your file names and file structure for it to work.
If you are interested then let me know and we can get together.

Meanwhile enjoy the stand alone menu options attached.

69th Steerpots

arvigna
Apr-01-2014, 18:32
hi,

don't work..

i have an install of CloD_TF outside steam directory.

but he"s start with my original steam install.

what can i do please?

Steerpots
Apr-02-2014, 03:11
hi,

don't work..

i have an install of CloD_TF outside steam directory.

but he"s start with my original steam install.

what can i do please?

Hi arvigna,
Actually the script does work, it is doing exactly what it's meant to i.e. start steam and connect to a server.
The difference for you is that you are running the game outside steam and the script is not designed to launch the game from outside steam.

Might be able to get it to work for you if you supply your game path.

56RAF_Steerpots

arvigna
Apr-02-2014, 06:57
Steerpots ,
thank you very much for your repply ..

"C:\Games\IL-2 Sturmovik Cliffs of Dover_TF"

cordialement
Arvigna

Steerpots
Apr-05-2014, 11:36
Steerpots ,
thank you very much for your repply ..

"C:\Games\IL-2 Sturmovik Cliffs of Dover_TF"

cordialement
Arvigna

S! Arvigna
Sorry but I have failed to get Launcher.exe to auto connect to a server via the batch file.

56RAF_Steerpots

arvigna
Apr-07-2014, 07:21
;)

no problem

thanks...

Sandy1942
Apr-07-2014, 14:16
Convenient thing. Thanks Bliss! :thumbsup:

Decay
Sep-18-2014, 23:59
S! All
I have also developed an AHK script that when activated does the following:

1. Automatically closes unnecessary processes
2. Automatically deletes the cache folder
3. Automatically starts TS Notifier
4. Automatically starts TeamSpeak
5. Automatically starts TrackIR and activates the precision option(F7)
6. Automatically starts the menu option bat file
7. Offers a hotkey to clear cache and re-run menu options when you leave the server(when maps swap)
8. Offers a hotkey to Automatically close:

TS Notifier
TeamSpeak
TrackIR
Steam
Re-start the processes closed at the beginning of the script.

I am happy to share this script, however it would need to be personalised to your file names and file structure for it to work.
If you are interested then let me know and we can get together.
69th Steerpots

Hi Steerpots,

I made my own CMD script to run up:
Track IR
Teamspeak
Virtual Cockpit
CloD.

But I'm struggling to automate a couple more things:
So I'd like to have your script as a source to modify.

I want to auto-connect to my last used TS channel.
I want to auto-start VC with my last used cockpit.

Also at the start of running, the file should offer-
a 4 second timeout on choice:
1) Last used settings.
2) Enter new settings

I use calls to the shortcuts for the programs from a .cmd file which I Run As administrator.
ie
Start "" C:\etc\Desktop\TS3.lnk

Here's a great resource for using things like choice and timeout: http://ss64.com/index.html

Can you paste an example of your source in this thread for all to see?

Thanks,

- Decay.

Steerpots
Sep-22-2014, 11:15
Hi Steerpots,

I made my own CMD script to run up:
Track IR
Teamspeak
Virtual Cockpit
CloD.

But I'm struggling to automate a couple more things:
So I'd like to have your script as a source to modify.

I want to auto-connect to my last used TS channel.
I want to auto-start VC with my last used cockpit.

Also at the start of running, the file should offer-
a 4 second timeout on choice:
1) Last used settings.
2) Enter new settings

I use calls to the shortcuts for the programs from a .cmd file which I Run As administrator.
ie
Start "" C:\etc\Desktop\TS3.lnk

Here's a great resource for using things like choice and timeout: http://ss64.com/index.html

Can you paste an example of your source in this thread for all to see?

Thanks,

- Decay.

S! Decay
I've moved on from the original script to now using AHK as a GUI to launch/close CoD (see the attached)
However more than happy to share the code behind the GUI.



Gui, Add, Tab2,w960 h456, Launch CloD | Application Paths|Install and Usage

PicFile5 = %A_ScriptDir%\spit_2.jpg
FileInstall,spit_2.jpg ,%PicFile5%
Gui,Add,Picture,x12 y28 w954 h431 vPicWp5,%PicFile5%
FileDelete,%PicFile5%

Gui, Add, Button, xm27 ym60 w100 h30 gkill, Kill Non-CloD Apps
Gui, Add, Button, xm27 ym110 w100 h30 glaunch, Launch CloD Apps
Gui, Add, Button, xm27 ym160 w100 h30 gdelete, Clear Cache
Gui, Add, Button, xm27 ym210 w100 h30 gagain, Kill Server
Gui, Add, Button, xm27 ym260 w100 h30 gstop, Close CloD Apps
Gui, Add, Button, xm27 ym310 w100 h30 grestart, Re-Start Non-CloD Apps
Gui, Add, Text, cRed xm10 ym39 w81 h12,%A_Space%APPLICATIONS



Gui, Add, Button, xm640 ym60 w100 h30 gatag, ATAG`nAxis v Allies
Gui, Add, Button, xm760 ym60 w100 h30 gatag2, ATAG `nCampaign Server
Gui, Add, Button, xm580 ym110 w100 h30 g401sqd, 401 Squadron
Gui, Add, Button, xm700 ym110 w100 h30 gsow, Storm of War
Gui, Add, Button, xm820 ym110 w100 h30 gsow, AX Dogfight
Gui, Add, Text, cRed xm567 ym39 w56 h12,%A_Space%SERVERS

Gui, Add, Button, xm774 ym205 w90 h18 gcon, Connect
Gui, Add, Text, cRed xm580 ym208 w56 h12,%A_Space%IP Address
Gui, Add, Edit, xm643 ym205 w110 h18 vaddy,

Gui, Add, Button, xm714 ym477 w100 h30 gmin, Minimise
Gui, Add, Button, Default xm834 ym477 w100 h30 gexit, Exit

Gui, Tab, 2
PicFile4 = %A_ScriptDir%\109_2.jpg
FileInstall,109_2.jpg ,%PicFile4%
Gui,Add,Picture,x12 y28 w954 h431 vPicWp4,%PicFile4%
FileDelete,%PicFile4%

Gui, Add, Text, cRed xm300 ym43 w87 h15,%A_Space% Steam.exe Path
Gui, Add, Edit, xm410 ym42 w350 h18 vstock ReadOnly,
IfExist, %A_ScriptDir%\steampath.txt
{
IniRead, steampath, steampath.txt, path, key1
guicontrol,,stock, %A_Space%%steampath%
}
else
{
guicontrol,,stock, %A_Space%No Steam.exe Path Recorded
}
Gui, Add, Button, xm776 ym66 w80 h30 gsteam, Set Steam Path
Gui, Add, Text, cRed xm300 ym72 w87 h15,%A_Space%Update the Path
Gui, Add, Edit, xm410 ym71 w350 h18 vcheck,


Gui, Add, Text, cRed xm413 ym120 w87 h15,%A_Space% Cache Folder
Gui, Add, Edit, xm521 ym119 w416 h18 vchack ReadOnly,
IfExist, %A_ScriptDir%\cachepath.txt
{
IniRead, cachepath, cachepath.txt, path, key1
guicontrol,,chack, %A_Space%%cachepath%
}
else
{
guicontrol,,chack, %A_Space%No Cache Path Recorded
}
Gui, Add, Button, xm869 ym170 w80 h30 gcache, Set Cache Path
Gui, Add, Text, cRed xm413 ym147 w87 h15,%A_Space%Update the Path
Gui, Add, Edit, xm521 ym143 w416 h18 vchick,

#ctrls = 2 ;How many Hotkey controls to add.
hk1:=350
hk2:= "Hotkey to minimise GUI"
hk3:= "Hotkey to restore GUI"
hk4:= 57
Loop,% #ctrls {
Gui, Add, Text, xm50 ym%hk1%, %hk2%:
IniRead, savedHK%A_Index%, Hotkeys.ini, Hotkeys, %A_Index%, %A_Space%
If savedHK%A_Index% ;Check for saved hotkeys in INI file.
Hotkey,% savedHK%A_Index%, Label%A_Index% ;Activate saved hotkeys if found.
StringReplace, noMods, savedHK%A_Index%, ~ ;Remove tilde (~) and Win (#) modifiers...
StringReplace, noMods, noMods, #,,UseErrorLevel ;They are incompatible with hotkey controls (cannot be shown).
Gui, Add, Hotkey, x+%hk4% vHK%A_Index% gLabel, %noMods% ;Add hotkey controls and show saved hotkeys.
Gui, Add, CheckBox, xm175 ym%hk1% vCB%A_Index% Checked%ErrorLevel%, Win ;Add checkboxes to allow the Windows key (#) as a modifier...Check the box if Win modifier is used.
hk1:=(hk1+47)
hk2:= hk3
hk4:= (hk4+5)
}

setHK(num,INI,GUI) {
If INI
Hotkey, %INI%, Label%num%, Off
If GUI
Hotkey, %GUI%, Label%num%, On
IniWrite,% GUI ? GUI:null, Hotkeys.ini, Hotkeys, %num%
savedHK%num% := HK%num%
TrayTip, Label%num%,% !INI ? GUI " ON":!GUI ? INI " OFF":GUI " ON`n" INI " OFF"
}

Gui, Add, Button, xm714 ym477 w100 h30 gmin, Minimise
Gui, Add, Button, Default xm834 ym477 w100 h30 gexit, Exit

Gui, Tab, 3
FileInstall, ReadMe_2.txt, ReadMe.txt, 1
FileDelete, %A_ScriptDir%\ReadMe_2.txt
FileRead,FileContents,Readme.txt
Gui, font, s10, Courier New
Gui, Add, Edit, xm12 ym29 w944 h424,%FileContents%

Gui, Add, Button, xm714 ym477 w100 h30 gmin, Minimise
Gui, Add, Button, Default xm834 ym477 w100 h30 gexit, Exit

PicFile = %A_ScriptDir%\splash_2.jpg
FileInstall,splash_2.jpg,%PicFile%
SplashImage, %PicFile%,w1920 h1080,
Sleep, 6500
SplashImage, Off
FileDelete,%PicFile%
Gui,+AlwaysOnTop
Gui, Add, Text, cRed xm10 ym485 w196 h12,%A_Space%Developed by 56RAF_Steerpots (US-T)
Gui, Color, CAE1ff
Gui,Show, w978 h527,CloD Full v 2.0

return



steam:
{
F3=%A_scriptdir%\steampath.txt
Gui,Submit,nohide
IniWrite, %check% , %F3% ,path , KEY1
IniRead, steampath, steampath.txt, path, key1
guicontrol,,stock, %A_Space%%steampath%
}
return

cache:
{
F2=%A_scriptdir%\cachepath.txt
Gui,Submit,nohide
IniWrite, %chick% , %F2% ,path , KEY1
IniRead, cachepath, cachepath.txt, path, key1
guicontrol,,chack, %A_Space%%cachepath%
}
return

atag:
{
Run,%steampath% "steam://connect/216.52.148.29:27016"
WinMinimize
}
return

atag2:
{
Run,%steampath% "steam://connect/64.74.97.179:27016"
WinMinimize
}
return

401sqd:
{
Run,%steampath% "steam://connect/198.251.67.98:27016"
WinMinimize
}
return

sow:
{
Run,%steampath% "steam://connect/86.185.131.44:27015"
WinMinimize
}
return

axdf:
{
Run,%steampath% "steam://connect/193.111.254.226:27016"
WinMinimize
}
return

con:
{
Run, "C:\Program Files (x86)\Steam\Steam.exe" "steam://connect/%addy%"
WinMinimize
}
return

Kill:
{
Process, close, sidebar.exe
Process, close, peerblock.exe
Process, close, thunderbird.exe
Process, close, Soluto.exe
Process, close, SolutoLauncherService.exe
Process, close, SolutoRemoteService.exe
Process, close, SolutoService.exe
Process, close, CCC.exe
Process, close, MOM.exe
Process, close, SQUEEZ~3.EXE
Process, close, SqueezeTray.exe
Process, close, SqueezeSvr.exe
Process, close, EMET_Agent.exe
Process, close, firefox.exe
Process, close, iexplore.exe
Process, close, chrome.exe
}
return

Launch:
{
Run cmd /c ipconfig /flushdns
Run cmd /c ipconfig /renew
FileDelete, C:\Windows\Prefetch\*.*
Run, "C:\Program Files (x86)\IObit\Advanced SystemCare 7\ASC.exe"
Run, "C:\Program Files (x86)\D3DOverrider\D3DOverrider.exe"
Run, "C:\Program Files (x86)\NaturalPoint\TrackIR5\TrackIR5.exe"
Run, "C:\Program Files (x86)\TS Notifier\TSNotifier.exe"
Run, "C:\Program Files\TeamSpeak 3 Client\ts3client_win64.exe"
Run, "C:\Program Files (x86)\ROCCAT\Power-Grid\ROCCATPowerGrid.exe"
Run, C:\Windows\explorer.exe "C:\Program Files (x86)\CoD Gauges\VirtualCockpit.exe"
SendInput, {F7}
}
return

delete:
{
FileRemoveDir, C:\Users\Robert\Documents\1C SoftClub\il-2 sturmovik cliffs of dover - MOD\cache, 1
}
return

again:
{
Process, close, Launcher.exe
}
return

stop:
{
Process, close, TrackIR5.exe
Process, close, TSNotifier.x64
Process, close, TSNotifier.exe
Process, close, ts3client_win64.exe
Process, close, Steam.exe
Process, close, D3DOverrider.exe
Process, close, sidebar.exe
Process, close, VirtualCockpit.exe
Process, close, ROCCATPowerGrid.exe
}
return

restart:
{
Run, sidebar.exe, "%ProgramFiles%\Windows Sidebar\
Run, "C:\Program Files (x86)\IObit\Advanced SystemCare 7\ASCTray.exe"
Run cmd /c ipconfig /flushdns
Run cmd /c ipconfig /renew
FileDelete, C:\Windows\Prefetch\*.*
Run, "C:\Program Files\Soluto\Soluto.exe"
Run, "C:\Program Files\Soluto\SolutoLauncherService.exe"
Run, "C:\Program Files (x86)\Squeezebox\SqueezeTray.exe"
Run, "C:\Program Files\PeerBlock\peerblock.exe"
Run, "C:\Program Files (x86)\EMET 5.0\EMET_Agent.exe"
}
return

Label:
If %A_GuiControl% in +,^,!,+^,+!,^!,+^! ;If the hotkey contains only modifiers, return to wait for a key.
return
num := SubStr(A_GuiControl,3) ;Get the index number of the hotkey control.
If (HK%num% != "") { ;If the hotkey is not blank...
Gui, Submit, NoHide
If CB%num% ; If the 'Win' box is checked, then add its modifier (#).
HK%num% := "#" HK%num%
If !RegExMatch(HK%num%,"[#!\^\+]") ; If the new hotkey has no modifiers, add the (~) modifier.
HK%num% := "~" HK%num% ; This prevents any key from being blocked.
Loop,% #ctrls
If (HK%num% = savedHK%A_Index%) { ; Check for duplicate hotkey...
dup := A_Index
Loop,6 {
GuiControl,% "Disable" b:=!b, HK%dup% ; Flash the original hotkey to alert the user.
Sleep,200
}
GuiControl,,HK%num%,% HK%num% :="" ; Delete the hotkey and clear the control.
break
}
}
If (savedHK%num% || HK%num%)
setHK(num, savedHK%num%, HK%num%)
return

;These labels may contain any commands for their respective hotkeys to perform.
Label1:
WinMinimize, CloD Full v 2.0
return

Label2:
WinRestore, CloD Full v 2.0
return

min:
{
WinMinimize
}
return

Guiclose:
exit:
{
FileDelete, ReadMe.txt
exitapp
}
return

Steerpots

Decay
Sep-24-2014, 01:02
Thanks for the code.
AHK is a brand new thing to me.

Still, you'll never never know if you never never go.Can I ask about this Section of Code:

I can google the individual programs to understand what's going on, but how have you got F7 being sent only to Track IR?
To make a script work for me I will want to send specific inputs to specific programs.


Launch:
{
Run cmd /c ipconfig /flushdns
Run cmd /c ipconfig /renew
FileDelete, C:\Windows\Prefetch\*.*
Run, "C:\Program Files (x86)\IObit\Advanced SystemCare 7\ASC.exe"
Run, "C:\Program Files (x86)\D3DOverrider\D3DOverrider.exe"
Run, "C:\Program Files (x86)\NaturalPoint\TrackIR5\TrackIR5.exe"
Run, "C:\Program Files (x86)\TS Notifier\TSNotifier.exe"
Run, "C:\Program Files\TeamSpeak 3 Client\ts3client_win64.exe"
Run, "C:\Program Files (x86)\ROCCAT\Power-Grid\ROCCATPowerGrid.exe"
Run, C:\Windows\explorer.exe "C:\Program Files (x86)\CoD Gauges\VirtualCockpit.exe"
SendInput, {F7}

But wait: What I actually want to do is to open the ATAG TS server.

I can use the code from their Web Page:
ts3server://216.52.148.29?port=9987

Now all I need to do is to figure how to make TS navigate to a particular channel within that Server : Port

Any thoughts?

Roblex
Sep-24-2014, 03:01
Like Steerpots, I would like the ability to go straight into the server but not get kicked back to desktop out as soon as I finish. Despite having a reasonable quad-core PC and a very fast broadband, for some reason it can take me four or five minutes to get from desktop to spawned! Even just leaving the server and coming back in when the map changes can take two or three minutes which is frustrating for the rest of my squad who are all lined up ready to take-off before I can even start my engine.

Steerpots
Sep-27-2014, 04:32
Thanks for the code.
AHK is a brand new thing to me.

Still, you'll never never know if you never never go.Can I ask about this Section of Code:

I can google the individual programs to understand what's going on, but how have you got F7 being sent only to Track IR?
To make a script work for me I will want to send specific inputs to specific programs.


Launch:
{
Run cmd /c ipconfig /flushdns
Run cmd /c ipconfig /renew
FileDelete, C:\Windows\Prefetch\*.*
Run, "C:\Program Files (x86)\IObit\Advanced SystemCare 7\ASC.exe"
Run, "C:\Program Files (x86)\D3DOverrider\D3DOverrider.exe"
Run, "C:\Program Files (x86)\NaturalPoint\TrackIR5\TrackIR5.exe"
Run, "C:\Program Files (x86)\TS Notifier\TSNotifier.exe"
Run, "C:\Program Files\TeamSpeak 3 Client\ts3client_win64.exe"
Run, "C:\Program Files (x86)\ROCCAT\Power-Grid\ROCCATPowerGrid.exe"
Run, C:\Windows\explorer.exe "C:\Program Files (x86)\CoD Gauges\VirtualCockpit.exe"
SendInput, {F7}

But wait: What I actually want to do is to open the ATAG TS server.

I can use the code from their Web Page:
ts3server://216.52.148.29?port=9987

Now all I need to do is to figure how to make TS navigate to a particular channel within that Server : Port

Any thoughts?

Hi Decay
AHK was new to me to once upon a time, I started out using it as a way of automating re-spwaning within the game, then moved on to use it to automate launching the game and choosing which server to spawn into.
Eventually I've ended up using it to create a GUI with point and click to launch/choose/close down and allocate hot keys.

To answer your questions in the order they were asked in your post.

1. F7: yes F7 is being sent to TIR, the reason it's being sent only to TIR; is that only TIR has been configured to recognise F7 as an input.

2. To make TS go to a particular server/channel, configure that server/channel as the default in TS not in the script.
That's what I've done to log on to ATAG Allies channel every time I launch TS, also makes it easier to manage should you want to change the default server and/or channel.

Steerpots

Steerpots
Sep-27-2014, 04:41
Like Steerpots, I would like the ability to go straight into the server but not get kicked back to desktop out as soon as I finish. Despite having a reasonable quad-core PC and a very fast broadband, for some reason it can take me four or five minutes to get from desktop to spawned! Even just leaving the server and coming back in when the map changes can take two or three minutes which is frustrating for the rest of my squad who are all lined up ready to take-off before I can even start my engine.

S! Roblex
The GUI above allows me to take advantage of the gap in the game when maps roll.
I do this by clicking on the exit server button (yes still takes me back to the desktop)
I clear the cache by clicking on the button(seems a useful thing to do if I'm out of the game)
I then click on the ATAG button to re-join that server.

Suggest you do the same immediately the map says it's stopped; by the time you get back in not too much time will have been wasted.

As for the time it takes you to join/rejoin, that can be down to may things and I'd be happy to take you through the options and actions via TS, should you want to.

Steerpots

Decay
Oct-02-2014, 09:10
My Current Launcher is a text file with the extension changed to CMD (Run_Dover.cmd)
And the contents are:


rem only display outputs in the CMD prompt
@echo off
Rem Change to my D: drive where all my bulk data is
D:
rem park in a garbage directory
cd "D:\Null"
rem each ping waits one second so you can use 2 pings of the home IP piped to a null file to make the script wait one second
ping -n 2 127.0.0.1>null
rem delete the Cliffs of Dover Cache and any subdirectories and don't ask for a prompt
rmdir /S /Q "D:\Documents\1C SoftClub\il-2 sturmovik cliffs of dover - MOD\cache"
rem wait one second
ping -n 2 127.0.0.1>null
rem rotate through the six dashpics I have made and then list that directory briefly (debugging)
CD "D:\Documents\1C SoftClub\il-2 sturmovik cliffs of dover - MOD\DashPics\Selected"
rename "D:\Documents\1C SoftClub\il-2 sturmovik cliffs of dover - MOD\DashPics\Selected\1.tga" 6.bak
rename "D:\Documents\1C SoftClub\il-2 sturmovik cliffs of dover - MOD\DashPics\Selected\2.tga" 1.tga
rename "D:\Documents\1C SoftClub\il-2 sturmovik cliffs of dover - MOD\DashPics\Selected\3.tga" 2.tga
rename "D:\Documents\1C SoftClub\il-2 sturmovik cliffs of dover - MOD\DashPics\Selected\4.tga" 3.tga
rename "D:\Documents\1C SoftClub\il-2 sturmovik cliffs of dover - MOD\DashPics\Selected\5.tga" 4.tga
rename "D:\Documents\1C SoftClub\il-2 sturmovik cliffs of dover - MOD\DashPics\Selected\6.tga" 5.tga
ping -n 2 127.0.0.1>null
rename "D:\Documents\1C SoftClub\il-2 sturmovik cliffs of dover - MOD\DashPics\Selected\6.bak" 6.tga
ping -n 2 127.0.0.1>null
dir /b "D:\Documents\1C SoftClub\il-2 sturmovik cliffs of dover - MOD\DashPics\Selected\"
rem I found running the executable for track IR was flakey, so I make a call to the link.
Start "" "C:Users\Public\Public Desktop\TrackIRv5.lnk"
ping -n 2 127.0.0.1>null
rem open the ATAG teamspeak server - modify this for your preferred place, but ATAG is always busy so
start ts3server://216.52.148.29?port=9987
ping -n 2 127.0.0.1>null
rem VC.lnk is the name of myshortcut to Virtual Cockpit
Start "" D:\Desktop\VC.lnk
ping -n 2 127.0.0.1>null
rem I got this link off the ATAG website, it should drop you straight in to the ATAG server 127
Start steam://connect/216.52.148.29:27016
ping -n 2 127.0.0.1>null

Volunteer
Dec-28-2014, 14:20
Absolutely spiffing; top job! :thumbsup:

breeze
May-17-2017, 16:06
:stunned: it works..shortcuted to my dt and clicked and wam bam I'm wif you guys...dudes and dudets ...you guys are the bomb..word:woohoo: