shupershuff / Diablo2RLoader

D2rLoader - Diablo 2: Resurrected launcher for multi-boxing
MIT License
61 stars 11 forks source link

Function to kill open handles #26

Closed oers closed 1 year ago

oers commented 1 year ago

I would like to just have a plain function call like 'k' which kills all open handles I have one account I have to sign in manually due to 2fa and afterwards I want to start the other account when I start manually and then start 1 in the script , it will not kill all open handles before launching 1

shupershuff commented 1 year ago

I had someone else ask me this yesterday too. I will have something for this in the next update. For now, as a quick workaround, open the ps1 file in an editor and on line 1645 type killhandle

This way upon launching the script it will remove any existing handles. I can't promise that the script will behave properly afterwards as it may rename the wrong window.

shupershuff commented 1 year ago

I have built and tested a capability to check for existing handles when launching from the script. The new version will also ensure that the correct window is renamed.

shupershuff commented 1 year ago

Resolved in v1.10.0 script now looks to kill handles prior to launching another instance.