Diablo II - Multi instance

Ask gaming related questions (AHK v1.1 and older)
TheCox
Posts: 1
Joined: 07 Nov 2015, 21:41

Diablo II - Multi instance

07 Nov 2015, 21:59

Hey guys,quick question for you all.. I am not the strongest programmer, I dabble in it just for fun, but I noticed someone wrote a custom AHK to launch 4 instances of diablo II at once in window mode, and with bnet parameters, etc.. but not do not want to rip them off and learn HOW it works is why I am coming here.

I wanted to try and learn how to make one of my own, however, I would like to run the four instances then use a simple hotkey to flip between the 4 windows. Would also like to rename the game windows to say Box 1,2,3,4 etc. so that I can use the hotkey to use the following code:

Code: Select all

IfWinExist, Box 1
    WinActivate ; use the window found above
else
    WinActivate, Calculator
I am sure this is possible, but I can use the basic script of:

Code: Select all

Run, C:\Users\TheCox\Documents\My Games\Diablo II\Diablo II.exe
to launch the game, but how can I go about making it run 4 instances of D2 and then set a hotkey script to flip it to which ever window I need without having to alt tab or click over. Hard enough running 4 accounts at once haha.

Anyways, thanks for any insight you guys/gals might have.
User avatar
Xtra
Posts: 2750
Joined: 02 Oct 2015, 12:15

Re: Diablo II - Multi instance

15 Nov 2015, 03:25

Check the Docs for the Run command and take a look at the PID parameter.
This should get you started on how to know which instance is which.

HTH
Flow_Snaake3

Re: Diablo II - Multi instance

15 Nov 2015, 13:17

Hey

you will need to have a special client to be able to run more then 1 Diablo 2 game a the the time

or else you will get this:
http://i.imgur.com/iDAcDEE.png

you need to use a program like D2Loader for it to work
User avatar
tomoe_uehara
Posts: 213
Joined: 05 Oct 2013, 12:37
Contact:

Re: Diablo II - Multi instance

15 Nov 2015, 14:18

I wonder if Sandboxie can fix that?

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: doanmvu and 58 guests