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 

Drawing on top of a fullscreen d3d app?
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Kahz



Joined: 12 Sep 2005
Posts: 190

PostPosted: Sun Aug 20, 2006 11:33 am    Post subject: Reply with quote

I've found that using this code allows me to interact (click) on the SplashImage but it's still being drawn underneath.

Code:

WinSet ExStyle, 0x8, SplashBox ;set SplashImage to AlwaysOnTop
WinSet ExStyle, 0x00000080, ahk_class classname ;change d3d window to toolwindow style?


This is referencing:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/77131

I've also tried to use the example from the documentation to poke a hole through the visible window:

Code:
WinSet, Region, 0-0 300-0 300-300 0-300 0-0   100-100 200-100 200-200 100-200 100-100, ahk_class classname


This does change the application window but the d3d window is still overlaying on top of it and fullscreen, regardless. This method did work in an opengl demo.
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Sun Aug 20, 2006 7:50 pm    Post subject: Reply with quote

Quote:
I don't appreciate some of the rude comments made. My question is valid.
You're right - if it's about the question, but that wasn't the case for your (previously unedited, original) subject line which IMHO provocated that 'rude' Rolling Eyes comments (no idea what you'll state when it would come to really rude comments, but it looks like the sense of humour is getting lost while playing games). Anyway, have fun & thx for listening. Cool
Back to top
Kahz



Joined: 12 Sep 2005
Posts: 190

PostPosted: Mon Aug 21, 2006 2:34 am    Post subject: Reply with quote

BoBo wrote:
Quote:
I don't appreciate some of the rude comments made. My question is valid.
You're right - if it's about the question, but that wasn't the case for your (previously unedited, original) subject line which IMHO provocated that 'rude' Rolling Eyes comments (no idea what you'll state when it would come to really rude comments, but it looks like the sense of humour is getting lost while playing games). Anyway, have fun & thx for listening. Cool


I don't mind sarcasm but it can be considered rude when given without any additional constructive information. It's the equivalent of slapping someone in the face and walking away.

And yes, I changed the subject line to something less flame-able. The original title was used for the sake of clarity and example. "d3d app" is a bit more vague that I would like.
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Mon Aug 21, 2006 7:30 am    Post subject: Reply with quote

Quote:
The original title was used for the sake of clarity and example. "d3d app" is a bit more vague that I would like.
Not indeed. The original one was definitely more vague, which you proved correct as you stated that is was more 'flamable' - means left more space for a different interpretation by its the reader (which BTW is the one that counts). Ergo, be more specific and you won't be a target for those who can deal with humor Wink
Back to top
Envelo
Guest





PostPosted: Mon Aug 21, 2006 8:52 pm    Post subject: Reply with quote

hi Kahz

I found some code for a Crosshair Overlay, maybe this works for you. Unfortunaltely its for autoit, not ahk, but it can surly be converted.

http://www.autoitscript.com/forum/index.php?showtopic=22301
Back to top
Kahz



Joined: 12 Sep 2005
Posts: 190

PostPosted: Tue Aug 22, 2006 2:05 am    Post subject: Reply with quote

Quote:
ok heres the deal. i have an overlay that is being displayed over a fullscreen game. however when the game looses focus while in fullscreen, opengl crashes. so to avoid that i want to keep my overlay from getting focus


Thanks for the link but the problem seems to be limited to d3d applications. I've been successful with different solutions OpenGL but none for DirectX.

"WinSet, Region", btw, is the best solution for OpenGL I believe. By poking a hole in the window I could interact with both the game window and click/activate the right click menu ont he desktop without it minimizing.

It seems that I can use the same technique to poke a whole in the game "window" but there is a different kind of overlay that hovers on top of that and is unaffected by this command.
Back to top
View user's profile Send private message
Envelo
Guest





PostPosted: Tue Aug 22, 2006 4:24 am    Post subject: Reply with quote

Found another link, this seems to be the solution for DirectX. But kind of komplex to handle.

http://www.mikoweb.eu/index.php?node=21
Back to top
Kahz



Joined: 12 Sep 2005
Posts: 190

PostPosted: Tue Aug 22, 2006 11:47 am    Post subject: Reply with quote

Envelo wrote:
Found another link, this seems to be the solution for DirectX. But kind of komplex to handle.

http://www.mikoweb.eu/index.php?node=21


It does look like a solution. Unfortunately I don't know anything about programming or editing source code, let alone something involving directx calls.

A great find nonetheless. Thank you. Smile
Back to top
View user's profile Send private message
crrimson
Guest





PostPosted: Sat Sep 09, 2006 4:39 pm    Post subject: Reply with quote

Thats too bad, that AutoHotkey doesn't support it. It would be nice if they could add the support for drawing on top of d3d apps, I need this functionality too.
Back to top
Kahz



Joined: 12 Sep 2005
Posts: 190

PostPosted: Sat Sep 09, 2006 4:50 pm    Post subject: Reply with quote

From what I've found the actual d3d screen is an overlay on top of the actual window and cannot be moved, clipped, or resized. I've read that it's only possible to draw on top by using a proxy dll:

http://www.mikoweb.eu/index.php?node=21 (thanks, Envelo!)

Here is another example:
http://www.gamedev.net/community/forums/topic.asp?topic_id=359794

FRAPS seems to use a different form of code injection by hijacking the directx dll while in memory. If Chris does choose to add features for this down the line this would probably be the best method.
Back to top
View user's profile Send private message
not-logged-in-daonlyfreez
Guest





PostPosted: Sun Sep 10, 2006 2:27 pm    Post subject: Reply with quote

Game Overlay (Shareware, trial available)
Back to top
Guest






PostPosted: Tue Sep 26, 2006 2:41 am    Post subject: Reply with quote

I found simply making a hotkey of mouse button 1 and if the mouse cursur is over your window blocking the click and then script the desired outcome. if the click isnot over your window allow click to go through.
Back to top
crrimson
Guest





PostPosted: Sat Oct 14, 2006 6:36 am    Post subject: Still no luck Reply with quote

Ok, so I checked out miko web. I downloaded his GPP14.zip file, and it contains an example exe that allows writing to the screen in a d3d app. It works just fine.

And he also provides documentation on the function calls that allow writing to the app. Great. So I load the dll in AHK, and try to call the function and while it does "work", it acts just like any other attempt to draw overtop a d3d app does. The text doesn't show up, unless I loop the display of it, in which case it flickers.

What gives? Has anyone else tried his gpcomms.dll? It's actually fairly simple and well documented to test. I would love to be able to write on top of D3D.
Back to top
bmcclure



Joined: 24 Nov 2007
Posts: 766

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

Did you ever figure this out? I have the same requirement now.
_________________
Ben

My Trac projects
My Wiki
[Broken] - My music
Back to top
View user's profile Send private message
k3ph



Joined: 20 Jul 2006
Posts: 221

PostPosted: Mon Feb 18, 2008 7:08 pm    Post subject: Reply with quote

http://www.codeplex.com/DirectDrawOverlayLib
the YUV with nvidia was solved with it but still hard to use with ahk's DLLCall.

please help?
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
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