SroMaster Posted January 5, 2008 Share Posted January 5, 2008 (edited) I need help converting this C++ script in to auto itvoid drawSomeText() { PVOID address = GetProcAddress(GetModuleHandle("dxhook.dll"), "DrawText"); LPCTSTR text = "Woah ! Drawing text on rakion !"; int x = 200; int y = 150; int charHeight = 24; char* fontName = "Arial"; DWORD color = 0xFFE4F740; DWORD time = 10; if(address == NULL) { MessageBox(NULL, "We couldnt find dxhook.dll...maybe you arent using Rakion Kit??? or maybe the Rakion Kit version is too old :(", "", NULL); return; } __asm { push time push color push fontName push charHeight push y push x push string mov eax, address call eax } }http://img50.imageshack.us/img50/1021/pic1du3.jpgbasiclly in C++ is suppose to resize a full screen game name Rakion MMOPRG game in to windows mode need help converting in to auto it . thanksplease forgive if this is in a wrong section. Edited January 6, 2008 by SroMaster [center]dbod.rar player created by auto3.0Visit Topic here==>[font="Arial Black"]CLICK HERE[/font]<==PovClipse tutorial:Similar to auto it , with this you can make anything[/center] Link to comment Share on other sites More sharing options...
cppman Posted January 6, 2008 Share Posted January 6, 2008 I need help converting this C++ script in to auto it CODEvoid drawSomeText() { PVOID address = GetProcAddress(GetModuleHandle("dxhook.dll"), "DrawText"); LPCTSTR text = "Woah ! Drawing text on rakion !"; int x = 200; int y = 150; int charHeight = 24; char* fontName = "Arial"; DWORD color = 0xFFE4F740; DWORD time = 10; if(address == NULL) { MessageBox(NULL, "We couldnt find dxhook.dll...maybe you arent using Rakion Kit??? or maybe the Rakion Kit version is too old ", "", NULL); return; } __asm { push time push color push fontName push charHeight push y push x push string mov eax, address call eax } } http://img50.imageshack.us/img50/1021/pic1du3.jpg basiclly in C++ is suppose to resize a full screen game name Rakion MMOPRG game in to windows mode need help converting in to auto it . thanks please forgive if this is in a wrong section. That assembly isn't really necessary. But all you need to do is a dllcall to 'dxhook.dll' with the parameters. Also, by the looks of it, are you sure it resizes a fullscreen game to windowed mode? It looks like it just draws text in the DirectX window. I don't know the return type, so I'll assume it's an HRESULT. Func _DrawText($szString, $szFontName, $nX, $nY, $nCharHeight, $dwColor, $dwTime) return DllCall("dxhook.dll", "long", "DrawText", "dword", $dwTime, "dword", $dwColor, "str", $szFontName, "int", $nCharHeight, "int", $nY, "int", $nX, "str", $szString) EndFunc You might have to fiddle with that for a while, but that should be generally what your looking for. Miva OS Project Link to comment Share on other sites More sharing options...
Siao Posted January 6, 2008 Share Posted January 6, 2008 (edited) that should be generally what your looking for.Except all DllCall function params in reverse order. In ASM first parameter is pushed last. Edited January 6, 2008 by Siao "be smart, drink your wine" Link to comment Share on other sites More sharing options...
SroMaster Posted January 6, 2008 Author Share Posted January 6, 2008 That assembly isn't really necessary. But all you need to do is a dllcall to 'dxhook.dll' with the parameters. Also, by the looks of it, are you sure it resizes a fullscreen game to windowed mode? It looks like it just draws text in the DirectX window. I don't know the return type, so I'll assume it's an HRESULT. Func _DrawText($szString, $szFontName, $nX, $nY, $nCharHeight, $dwColor, $dwTime) return DllCall("dxhook.dll", "long", "DrawText", "dword", $dwTime, "dword", $dwColor, "str", $szFontName, "int", $nCharHeight, "int", $nY, "int", $nX, "str", $szString) EndFunc You might have to fiddle with that for a while, but that should be generally what your looking for. yep it does it will work well. just need to implement the .dll in to .au3 any other suggestion man. [center]dbod.rar player created by auto3.0Visit Topic here==>[font="Arial Black"]CLICK HERE[/font]<==PovClipse tutorial:Similar to auto it , with this you can make anything[/center] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now