Ok, since I read the KM-grid question earlier I thought, well let's just whip up an example of how to initiate D3D hooking via script.
Time to start doing it hardcore, ppl
Now the reality is I did this very quickly (2 hours) and it does crash after a couple of minutes so it's leaking like crazy, but that was not the point. So it will take me some time to build a proper library, before even start thinking of any usefull implementations.