| View previous topic :: View next topic |
| Author |
Message |
Lemming
Joined: 20 Dec 2005 Posts: 158 Location: Malaysia
|
Posted: Wed Jan 04, 2006 8:08 am Post subject: Hooking directX / graphics overlay for game |
|
|
I'm aware of the WinSet Transparent, TransColor and AlwaysonTop commands, but I can't seem to make them work in fullscreen games. The same script works fine on non-fullscreen apps.
Some details about this game: It only works with nvidia or ATI cards. It uses directX8/9. It only runs at 1024x768. It detects when it is not fullscreen/foreground, and will timeout in less than 30 sec.
I would like to "punch thru" the game to see other programs behind (e.g. web browser, IM) and/or write my own programs to overlay the game.
From what I've gathered off the Net, it seems I need to hook directX, which doesn't seem to be possible with AHK. Perhaps something for the wishlist?
BTW, the standard tricks for making a program windowed all do not work for this game. I can't create a shortcut to its exe file either, because the game is lauched by a separate loader program.
Anyone know of a solution for fullscreen games? |
|
| Back to top |
|
 |
haywire
Joined: 11 Jun 2007 Posts: 1
|
Posted: Mon Jun 11, 2007 10:07 pm Post subject: |
|
|
Bumping this topic because I'd love to be able to make popups and things that could work in a fullscreen D3D/GL app, but they always loose focus and break :C
Any ideas? _________________ asdfg |
|
| Back to top |
|
 |
JackleJack
Joined: 11 Jun 2007 Posts: 4
|
Posted: Tue Jun 12, 2007 12:18 am Post subject: |
|
|
| Hooking into directX, sounds like your trying to make a hack, even if you're not ahk wouldn't create such a thing because it would be a tool for hackers. AHK gets enough flack as it is. |
|
| Back to top |
|
 |
dandy
Joined: 09 May 2007 Posts: 45
|
Posted: Tue Jun 12, 2007 4:40 am Post subject: |
|
|
to add my 5 cents...
im looking for something like this too to add a countdown timer into kiosk mode computers.
Direct3d-hook.dll looks good for such operaions, but how to control it with ahk?
thanks for any help provided. |
|
| Back to top |
|
 |
bmcclure
Joined: 24 Nov 2007 Posts: 487
|
|
| Back to top |
|
 |
dandy
Joined: 09 May 2007 Posts: 45
|
|
| Back to top |
|
 |
bmcclure
Joined: 24 Nov 2007 Posts: 487
|
Posted: Sat Dec 15, 2007 6:27 am Post subject: |
|
|
Wow
I have VS so I can build the DLL probably, but it may take some modification. Hmm...
*digs in* _________________ -Ben
SteamLab Wiki
SteamLab Trac site
[Broken] - My industrial music |
|
| Back to top |
|
 |
dandy
Joined: 09 May 2007 Posts: 45
|
Posted: Sat Dec 15, 2007 7:04 am Post subject: |
|
|
| well, the dll is included in the zip,no need to build it again unless you want to make some changes,keep us posted. |
|
| Back to top |
|
 |
bmcclure
Joined: 24 Nov 2007 Posts: 487
|
Posted: Sat Dec 15, 2007 7:24 am Post subject: |
|
|
Yeah but there's no documentation or anything with it that I see so I don't know what functions there are. Am I missing something in this zip package? The readme only seems to apply to the vc++ project files but not to the compiled version. _________________ -Ben
SteamLab Wiki
SteamLab Trac site
[Broken] - My industrial music |
|
| Back to top |
|
 |
dandy
Joined: 09 May 2007 Posts: 45
|
|
| Back to top |
|
 |
bmcclure
Joined: 24 Nov 2007 Posts: 487
|
Posted: Sat Dec 15, 2007 7:59 am Post subject: |
|
|
Wouldn't this method by the same author be easier to use for a game overlay?
I've switched to trying to figure out this other dll first because it seems like if I can figure out how to call it properly, it should do everything I need. He offers an unmanaged c++ library and a managed .NET DLL. I guess the question is which one would be easiest to try and convert into something AHK can use. _________________ -Ben
SteamLab Wiki
SteamLab Trac site
[Broken] - My industrial music |
|
| Back to top |
|
 |
dandy
Joined: 09 May 2007 Posts: 45
|
Posted: Sat Dec 15, 2007 8:05 am Post subject: |
|
|
i just wish some of the very talented people here come to help.
hell, i'll even throw a 100$ for a full solution to be able to display either text or an image over any fullscreen game using ahk . |
|
| Back to top |
|
 |
bmcclure
Joined: 24 Nov 2007 Posts: 487
|
Posted: Sat Dec 15, 2007 6:14 pm Post subject: |
|
|
I'm with ya. I somewhat doubt my ability to successfully create a C++ wrapper for this on my own, which sounds like what is probably required (for the overlay dll). I will start my first attempt today, however. _________________ -Ben
SteamLab Wiki
SteamLab Trac site
[Broken] - My industrial music |
|
| Back to top |
|
 |
stekkie
Joined: 09 Nov 2007 Posts: 16
|
Posted: Sun Dec 16, 2007 8:29 am Post subject: |
|
|
| I hope it works, it will be awesome to overlay with ahk |
|
| Back to top |
|
 |
DerRaphael
Joined: 23 Nov 2007 Posts: 600 Location: 127.0.0.1
|
Posted: Sun Dec 16, 2007 7:48 pm Post subject: |
|
|
to inject content into a fullscreen d3d app wont work as a generic solution for every d3d app around.
this depends on the method - well at least the ones described.
see this article for details
http://www.codeguru.com/cpp/g-m/directx/directx8/article.php/c11453/#more
the method described above (not in my post) uses system hooks for direct 3d and works with the same principle.
this method slows down the process then more calls have to be redirected and checked.
it should be possible though - just a question of time to get this in ahk running.
greets
derRaphael _________________
|
|
| Back to top |
|
 |
|