Custom AutoIt Routine to change disc when neededScript Version 1.2
I have quite a lot of scripts made for automatic game installs so I've done a function to change the disc when an install asks for it.
why ? First I'm quite lazy, and having to type the whole stuff everytime a disc change is needed in every each of my script just makes my hands tired (I told you I'm lazy, even if it's only a copy-paste job plus some modifications).
Second, the whole sequence is not very user friendly and difficult to understand if you're not familiar with the functions used. Using a custom routine makes my scripts easier to understand for you and easier to maintain for me.
Feel free to use it for your own game installs scripts
It's still a bit limited because of some AutoIt restrictions.
I wish the syntax of the routine was something like _DiscChange($DiscLabel,$DiscType) where $DiscLabel is label of the disc needed and $DiscType its type (CD or DVD), with $DiscType optionnal so you would need to specify it only if your game is on a DVD.
To use it, first type #include "cdchange.au3" at the beginning of your script (put it in your game's script dir). When you want to call the function do it this way ONLY (DON'T ADD ANY " AROUND THE COMMA). _DiscChange("LABEL_OF_THE_NEEDED_DISC,TYPE_OF_THE_NEEDED_DISC")
You can omit ,TYPE_OF_THE_NEEDED_DISC if your game is on CDs
some game scripts using this will follow
edit: some progress have been made. I've been able to write a routine that detects the number of alcohol's and daemon-tools virtual drives.
edit bis: using of disc images implemented and working (as far as I've tested). won't post it yet: still some minor things to do, plus it's based on AutoIt's latest beta, which might be kinda bugged and unstable...