currently all common bots use gwca (a dll to inject, not public) or gwa2 (autoit script which self-injects) - they both add direct functionality to read/write the memory / send commands directly to the server... because they are so efficient gwmi and tt6 are not developed anymore.
ddarek postet the current gwa2 here:
you can also find alot information on wiki.g a m e r e v i s i o n.com, the forum there will also be reopened soon and contains alot of information too
hope that helps you getting started =)
edit: to be clear, gwca was once public:

but all patterns are outdated and would need to be updated
example usage of gwa2 can be found on several bots here, e.g. the vaettir one