Author Topic: Batch file to open gproxy and warcraft at once  (Read 1473 times)

Offline Velyger

  • Advanced Member
  • *
  • Topic Author
  • Posts: 108
  • Karma: +3/-5
    • View Profile
    • Awards
Batch file to open gproxy and warcraft at once
hi i made a batch file for myself to open gproxy and warcraft at once and then close it and i want to share it. i use "GProxy ++ stefos007 for eurobattle.net" and it works on my windows 7

setup:
1. make sure you have working gproxy copied in warcraft directory in subfolder "Stefos Gproxy"
2. open notepad and copy there this commands:
Code: [Select]
start /MIN /D "Stefos Gproxy" gproxy.exe
echo gproxy loaded
euroloader.exe
echo euroloader loaded

ping -n 10 127.0.0.1 > nul

:loop
ping -n 3 127.0.0.1 > nul
tasklist /FI "IMAGENAME eq war3.exe" 2>NUL | find /I /N "war3.exe">NUL
if "%ERRORLEVEL%"=="0" goto loop

taskkill /F /T /IM gproxy.exe
echo gproxy killed, goodbye!
3. file -> save as
4. save as type: all files
5. file name: gproxyloader.bat
6. save it to warcraft directory
7. now when you want to play, just launch gproxyloader.bat in your warcraft directory. you can make link on desktop if you want

how does it work?
Code: [Select]
start /MIN /D "Stefos Gproxy" gproxy.exe
echo gproxy loaded
euroloader.exe
echo euroloader loaded
this opens gproxy in directory "Stefos Gproxy" and then starts warcraft by euroloader.exe

Code: [Select]
ping -n 10 127.0.0.1 > nulthis ping makes batch wait 10 seconds before checking if war3.exe is running

Code: [Select]
:loop
ping -n 3 127.0.0.1 > nul
tasklist /FI "IMAGENAME eq war3.exe" 2>NUL | find /I /N "war3.exe">NUL
if "%ERRORLEVEL%"=="0" goto loop
this loop is checking every 3 seconds if warcraft is running. when warcraft is closed, then next command is executed:

Code: [Select]
taskkill /F /T /IM gproxy.exe
echo gproxy killed, goodbye!
gproxy is closed. well, it is forced to do :D
« Last Edit: April 16, 2011, 17:09 by Velyger »

Offline opa_bato[o.0]

  • Hero Member
  • *
  • Posts: 678
  • Karma: +35/-30
  • wub wub wub prrrrrrrrrraaaaaaahhh
    • View Profile
    • Awards
Re: Batch file to open gproxy and warcraft at once
« Reply #1 on: April 16, 2011, 16:46 »
is it so hard to click 4 times instead of 2?
bored i am

Offline Velyger

  • Advanced Member
  • *
  • Topic Author
  • Posts: 108
  • Karma: +3/-5
    • View Profile
    • Awards
Re: Batch file to open gproxy and warcraft at once
« Reply #2 on: April 16, 2011, 16:49 »
i am lazy :) i do not force you to be lazy too

Offline Juggernaut99

  • Pro Member
  • *
  • Posts: 345
  • Karma: +27/-21
    • View Profile
    • Awards
Re: Batch file to open gproxy and warcraft at once
« Reply #3 on: April 16, 2011, 16:55 »
Gproxy doesn't run... i wait few seconds than w3 opens but without gproxy, i have both w3 and gproxy and the batch file in one folder..
whats the problem

* i have the newest gproxy, with sounds etc.
« Last Edit: April 16, 2011, 16:57 by Juggernaut99 »

Offline Velyger

  • Advanced Member
  • *
  • Topic Author
  • Posts: 108
  • Karma: +3/-5
    • View Profile
    • Awards
Re: Batch file to open gproxy and warcraft at once
« Reply #4 on: April 16, 2011, 17:02 »
maybe you dont have Stefos Gproxy, or you have gproxy in different directory... i have installed gproxy from dragoljub's tutorial.
if you have this file structure and windows 7 it should work:

(warcraft directory)\euroloader.exe
(warcraft directory)\gproxyloader.bat
(warcraft directory)\Stefos Gproxy\gproxy.exe

otherwise i dont know.

edit: i use "GProxy ++ stefos007 for eurobattle.net"
« Last Edit: April 16, 2011, 17:05 by Velyger »

Offline Juggernaut99

  • Pro Member
  • *
  • Posts: 345
  • Karma: +27/-21
    • View Profile
    • Awards
Re: Batch file to open gproxy and warcraft at once
« Reply #5 on: April 16, 2011, 17:04 »
gproxy wasnt on a subfolder i copied directly gproxy, now i put it on a folder and it works thank..
 laziness FTW

Offline PlayDota.eu08

  • WickedSick Member
  • *
  • Posts: 1217
  • Karma: +88/-326
  • hi
    • View Profile
    • Awards
Re: Batch file to open gproxy and warcraft at once
« Reply #6 on: April 16, 2011, 23:57 »
in new euroloader gproxy autoruns as i know
Quote from: Dino-Merlin
Ne nisam ti rekao sve, jednostavno nisam imao snage za to

Offline Velyger

  • Advanced Member
  • *
  • Topic Author
  • Posts: 108
  • Karma: +3/-5
    • View Profile
    • Awards
Re: Batch file to open gproxy and warcraft at once
« Reply #7 on: April 17, 2011, 00:34 »
good to know, i didnt know about that

Offline In0S

  • Full Member
  • *
  • Posts: 58
  • Karma: +4/-13
    • View Profile
    • Awards
Re: Batch file to open gproxy and warcraft at once
« Reply #8 on: April 17, 2011, 17:02 »
You made it too complicated so many still stick to old method of multi clicking  :P
All I did is made a batch file with those 3 lines

start "" "D:\Games\Warcraft III\gproxy-win32\gproxy.exe"
cd..
start "" "D:\Games\Warcraft III\euroloader.exe"

Those are, of course, locations of the game loader and gproxy on my hard disk.
All you need to do is create batch file, change those locations and you will get a file that opens both with single click.

Offline 1QuestioN!

  • d^_^b
  • GFX Pro Member
  • WickedSick Member
  • *
  • Posts: 2424
  • Country: zw
  • Karma: +257/-49
  • Straight Out Of Line
  • Awards Winner of 10 Signature of the Week Contest [LEGENDARY] Winner of 5 Photo Manipulation Contest [EPIC] Winner of 5 Photoshop Challenge Contests [EPIC] GFX staff member [RARE]
    • View Profile
    • Awards
Re: Batch file to open gproxy and warcraft at once
« Reply #9 on: April 17, 2011, 17:30 »
is it so hard to click 4 times instead of 2?
I agree :D anyway when i in the loby and type !gproxy always is ,,Yes'' to my nick others ,,NO''
just wana to say people dont have regular gprox so why they comlicated with this.....But its nice to share your work with others
;)  ;)  ;)  ;)
Sorry for my bad eng. if i missed something
« Last Edit: April 17, 2011, 17:33 by [_sYsTemDzI_] »