| View previous topic :: View next topic |
| Author |
Message |
Kahz
Joined: 12 Sep 2005 Posts: 190
|
Posted: Sun Aug 20, 2006 11:33 am Post subject: |
|
|
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 |
|
 |
BoBo Guest
|
Posted: Sun Aug 20, 2006 7:50 pm Post subject: |
|
|
| 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' 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.  |
|
| Back to top |
|
 |
Kahz
Joined: 12 Sep 2005 Posts: 190
|
Posted: Mon Aug 21, 2006 2:34 am Post subject: |
|
|
| 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' 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.  |
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 |
|
 |
BoBo Guest
|
Posted: Mon Aug 21, 2006 7:30 am Post subject: |
|
|
| 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  |
|
| Back to top |
|
 |
Envelo Guest
|
|
| Back to top |
|
 |
Kahz
Joined: 12 Sep 2005 Posts: 190
|
Posted: Tue Aug 22, 2006 2:05 am Post subject: |
|
|
| 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 |
|
 |
Envelo Guest
|
|
| Back to top |
|
 |
Kahz
Joined: 12 Sep 2005 Posts: 190
|
Posted: Tue Aug 22, 2006 11:47 am Post subject: |
|
|
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.  |
|
| Back to top |
|
 |
crrimson Guest
|
Posted: Sat Sep 09, 2006 4:39 pm Post subject: |
|
|
| 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
|
Posted: Sat Sep 09, 2006 4:50 pm Post subject: |
|
|
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 |
|
 |
not-logged-in-daonlyfreez Guest
|
Posted: Sun Sep 10, 2006 2:27 pm Post subject: |
|
|
| Game Overlay (Shareware, trial available) |
|
| Back to top |
|
 |
Guest
|
Posted: Tue Sep 26, 2006 2:41 am Post subject: |
|
|
| 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
|
Posted: Sat Oct 14, 2006 6:36 am Post subject: Still no luck |
|
|
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
|
Posted: Mon Dec 10, 2007 7:39 pm Post subject: |
|
|
Did you ever figure this out? I have the same requirement now. _________________ Ben
My Trac projects
My Wiki
[Broken] - My music |
|
| Back to top |
|
 |
k3ph
Joined: 20 Jul 2006 Posts: 221
|
|
| Back to top |
|
 |
|