DeathlyAssassin Posted June 1, 2009 Share Posted June 1, 2009 (edited) Hi folks! I started to program a chat and i want to add an "ingame" function with which the user is able to chat while he is playing a game (similar to Xfire). I first thought of the topmost, but that won't work for games which are made with DirectX or OpenGL (so it won't work for nearly every 3D game ). I used google for hours but the only thing i found out is that this could be done by dll hooking (on which i didn't find any tutorials/a library for c++/DLLs/examples/UDFs) Does anybody of you know an UDF/tutorials/a library for c++/DLLs/examples for making an windo ontop of a DirectX/OpenGL api? (I'm not English, so there might be some grammar and spelling mistakes ) Edited June 1, 2009 by DeathlyAssassin [url='http://www.autoitbot.de'][/url] Link to comment Share on other sites More sharing options...
Valik Posted June 1, 2009 Share Posted June 1, 2009 (edited) You will be banned if I hear of you having PMed another user about this. Do not PM users asking for help. Consider yourself lucky, the last person who pulled this stupid stunt was banned.Edit: And especially don't PM developers. Is it not enough that we make the language? Must we write your scripts for you, too? Edited June 1, 2009 by Valik Link to comment Share on other sites More sharing options...
DeathlyAssassin Posted June 2, 2009 Author Share Posted June 2, 2009 @Valik: I'm very sorry, I didn't know that I'm not allowed to do this.. has no one an idea how to solve this problem? [url='http://www.autoitbot.de'][/url] Link to comment Share on other sites More sharing options...
KaFu Posted June 2, 2009 Share Posted June 2, 2009 Didn't try, but maybe one of these work? Let me know ...OpenGLhttp://www.autoitscript.com/forum/index.ph...60&start=60DirectXhttp://www.autoitscript.com/forum/index.ph...t=0&start=0 Â OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26)Â BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16)Â ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
DeathlyAssassin Posted June 2, 2009 Author Share Posted June 2, 2009 (edited) I gave both of them a try and this is very close to what I expect, but the first UDF is for making OpenGL programms and not putting a window on top of it and with the second one it's the same but with DirectX... anyway, these are very nice UDFs Does anyone have some other suggestions? Edited June 2, 2009 by DeathlyAssassin [url='http://www.autoitbot.de'][/url] Link to comment Share on other sites More sharing options...
ProgAndy Posted June 2, 2009 Share Posted June 2, 2009 (edited) Wrte a plugIn for gamepe Edited June 2, 2009 by ProgAndy *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
Valik Posted June 2, 2009 Share Posted June 2, 2009 @Valik: I'm very sorry, I didn't know that I'm not allowed to do this..It's called common sense. I suggest you start using it. You will not last long here if you do not use common sense. Link to comment Share on other sites More sharing options...
DeathlyAssassin Posted June 2, 2009 Author Share Posted June 2, 2009 (edited) Let me have some time to give this a try I thing this might work(even if i have no source code and there are no command lines) , but nevertheless has anyone else a good idea for solving my problem? Edited June 2, 2009 by DeathlyAssassin [url='http://www.autoitbot.de'][/url] Link to comment Share on other sites More sharing options...
DeathlyAssassin Posted June 3, 2009 Author Share Posted June 3, 2009 Ok, i tried to make a plugin for hours, but i think it won't work... That's because I have no sourcecode or command lines and the data is copyrighted .. Do you have any other ideas? [url='http://www.autoitbot.de'][/url] Link to comment Share on other sites More sharing options...
DeathlyAssassin Posted June 3, 2009 Author Share Posted June 3, 2009 Does no one of you have another idea ? [url='http://www.autoitbot.de'][/url] Link to comment Share on other sites More sharing options...
Seagul Posted June 4, 2009 Share Posted June 4, 2009 its around here somewhere man Link to comment Share on other sites More sharing options...
DeathlyAssassin Posted June 4, 2009 Author Share Posted June 4, 2009 This is the best post I've ever seen! ;D [url='http://www.autoitbot.de'][/url] Link to comment Share on other sites More sharing options...
DeathlyAssassin Posted June 4, 2009 Author Share Posted June 4, 2009 The Problem still exist's [url='http://www.autoitbot.de'][/url] Link to comment Share on other sites More sharing options...
sniper120 Posted August 10, 2009 Share Posted August 10, 2009 (edited) Hi folks!I started to program a chat and i want to add an "ingame" function with which the user is able to chat while he is playing a game (similar to Xfire).I first thought of the topmost, but that won't work for games which are made with DirectX or OpenGL (so it won't work for nearly every 3D game ).I used google for hours but the only thing i found out is that this could be done by dll hooking (on which i didn't find any tutorials/a library for c++/DLLs/examples/UDFs)Does anybody of you know an UDF/tutorials/a library for c++/DLLs/examples for making an windo ontop of a DirectX/OpenGL api?(I'm not English, so there might be some grammar and spelling mistakes )Hey this is what I am tying to do! This currently seems not to be possible in autoit (And AutoitX, if I can get it working). There are lots of sites (If I get the go a head from a mod I will add links) that do a lot of gaming hacking that draw menus and text in C++. However, autoit (Not X for some stupid reason!) does support Win API draw text, images, and more (msgboxes). However I would like this in a format that I can use in a dll...Hope It helps! >_< Edited August 10, 2009 by sniper120 Link to comment Share on other sites More sharing options...
Richard Robertson Posted August 10, 2009 Share Posted August 10, 2009 Clearly you aren't that smart. If you're using AutoItX you already know how to call dll functions. That's all the WinApi is. Link to comment Share on other sites More sharing options...
sniper120 Posted August 10, 2009 Share Posted August 10, 2009 Clearly you aren't that smart. If you're using AutoItX you already know how to call dll functions. That's all the WinApi is.The thing is that I have tried many many times to get advanced code to run with DEV-C++ and Vis C++. I have the DirectX SDK, and I have searched up on the internet about calling a dll. Calling a dll in C++ is like trying to read assembler. It doesn't make sence! If you could post some code that calls the dll needed for winapi to work and show some text, I would appreciate that! For now I'm trying to get autoit x to work...Thanks! Link to comment Share on other sites More sharing options...
Richard Robertson Posted August 10, 2009 Share Posted August 10, 2009 Calling dlls in C++ is EASIER than in AutoIt. Which function are you trying to call? There are plenty of things that will show text. Link to comment Share on other sites More sharing options...
sniper120 Posted August 10, 2009 Share Posted August 10, 2009 (edited) Calling dlls in C++ is EASIER than in AutoIt. Which function are you trying to call? There are plenty of things that will show text. The one in autoit "_WinAPI_DrawText" I noticed in the UDF that I need to call "User32.dll". EDIT: Is there a one to draw over a full screened game? That is what I am mainly interested in. Here is the autoit code: Func _WinAPI_DrawText($hDC, $sText, ByRef $tRect, $iFlags) Local $aResult $aResult = DllCall("User32.dll", "int", "DrawText", "hwnd", $hDC, "str", $sText, "int", -1, "ptr", DllStructGetPtr($tRect), "int", $iFlags) If @error Then Return SetError(@error, 0, 0) Return $aResult[0] EndFunc ;==>_WinAPI_DrawText Thanks! >_< Edited August 10, 2009 by sniper120 Link to comment Share on other sites More sharing options...
Richard Robertson Posted August 10, 2009 Share Posted August 10, 2009 (edited) Quick C++.#include "windows.h" void main() { HDC hDC = NULL; // set this LPCTSTR lpchText = "Something"; // set this int nCount = -1; RECT rect; // set up rectangle UINT uFormat = 0; // set this DrawText(hDC, lpchText, nCount, &rect, uFormat); } Edited August 10, 2009 by Richard Robertson 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