AutoHotkey Community

It is currently May 27th, 2012, 7:38 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 51 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject:
PostPosted: August 20th, 2006, 12:33 pm 
Offline

Joined: September 12th, 2005, 2:12 am
Posts: 190
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/sc ... 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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 20th, 2006, 8:50 pm 
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' :roll: 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. 8)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 21st, 2006, 3:34 am 
Offline

Joined: September 12th, 2005, 2:12 am
Posts: 190
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' :roll: 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. 8)


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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 21st, 2006, 8:30 am 
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:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 21st, 2006, 9:52 pm 
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 ... opic=22301


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 22nd, 2006, 3:05 am 
Offline

Joined: September 12th, 2005, 2:12 am
Posts: 190
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 22nd, 2006, 5:24 am 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 22nd, 2006, 12:47 pm 
Offline

Joined: September 12th, 2005, 2:12 am
Posts: 190
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. :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 9th, 2006, 5:39 pm 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 9th, 2006, 5:50 pm 
Offline

Joined: September 12th, 2005, 2:12 am
Posts: 190
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 ... _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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 10th, 2006, 3:27 pm 
Game Overlay (Shareware, trial available)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 26th, 2006, 3:41 am 
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.


Report this post
Top
  
Reply with quote  
 Post subject: Still no luck
PostPosted: October 14th, 2006, 7:36 am 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 10th, 2007, 8:39 pm 
Offline

Joined: November 24th, 2007, 9:07 pm
Posts: 774
Did you ever figure this out? I have the same requirement now.

_________________
Ben

My Trac projects
My Wiki
[Broken] - My music


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 18th, 2008, 8:08 pm 
Offline

Joined: July 21st, 2006, 12:26 am
Posts: 223
http://www.codeplex.com/DirectDrawOverlayLib
the YUV with nvidia was solved with it but still hard to use with ahk's DLLCall.

please help?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 51 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: HotkeyStick, sjc1000, SKAN, tomL and 73 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group