AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Hooking directX / graphics overlay for game
Goto page 1, 2  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Lemming



Joined: 20 Dec 2005
Posts: 158
Location: Malaysia

PostPosted: Wed Jan 04, 2006 8:08 am    Post subject: Hooking directX / graphics overlay for game Reply with quote

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
View user's profile Send private message
haywire



Joined: 11 Jun 2007
Posts: 1

PostPosted: Mon Jun 11, 2007 10:07 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
JackleJack



Joined: 11 Jun 2007
Posts: 4

PostPosted: Tue Jun 12, 2007 12:18 am    Post subject: Reply with quote

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
View user's profile Send private message
dandy



Joined: 09 May 2007
Posts: 45

PostPosted: Tue Jun 12, 2007 4:40 am    Post subject: Reply with quote

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
View user's profile Send private message
bmcclure



Joined: 24 Nov 2007
Posts: 487

PostPosted: Mon Dec 10, 2007 7:41 pm    Post subject: Reply with quote

Where is Direct3d-hook.dll available from or documented?
_________________
-Ben

SteamLab Wiki
SteamLab Trac site
[Broken] - My industrial music
Back to top
View user's profile Send private message
dandy



Joined: 09 May 2007
Posts: 45

PostPosted: Sat Dec 15, 2007 6:15 am    Post subject: Reply with quote

http://nexe.gamedev.net/files/Direct3D-Hook-2005-11-23.zip

let us know if you fond a way to use it with ahk Smile
Back to top
View user's profile Send private message
bmcclure



Joined: 24 Nov 2007
Posts: 487

PostPosted: Sat Dec 15, 2007 6:27 am    Post subject: Reply with quote

Wow Shocked

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
View user's profile Send private message
dandy



Joined: 09 May 2007
Posts: 45

PostPosted: Sat Dec 15, 2007 7:04 am    Post subject: Reply with quote

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
View user's profile Send private message
bmcclure



Joined: 24 Nov 2007
Posts: 487

PostPosted: Sat Dec 15, 2007 7:24 am    Post subject: Reply with quote

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
View user's profile Send private message
dandy



Joined: 09 May 2007
Posts: 45

PostPosted: Sat Dec 15, 2007 7:28 am    Post subject: Reply with quote

http://www.gamedev.net/community/forums/topic.asp?topic_id=359794


original release thread
Back to top
View user's profile Send private message
bmcclure



Joined: 24 Nov 2007
Posts: 487

PostPosted: Sat Dec 15, 2007 7:59 am    Post subject: Reply with quote

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
View user's profile Send private message
dandy



Joined: 09 May 2007
Posts: 45

PostPosted: Sat Dec 15, 2007 8:05 am    Post subject: Reply with quote

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 Smile.
Back to top
View user's profile Send private message
bmcclure



Joined: 24 Nov 2007
Posts: 487

PostPosted: Sat Dec 15, 2007 6:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
stekkie



Joined: 09 Nov 2007
Posts: 16

PostPosted: Sun Dec 16, 2007 8:29 am    Post subject: Reply with quote

I hope it works, it will be awesome to overlay with ahk
Back to top
View user's profile Send private message
DerRaphael



Joined: 23 Nov 2007
Posts: 600
Location: 127.0.0.1

PostPosted: Sun Dec 16, 2007 7:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group