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 

[lib] GPF v1.1c - Overlaying Direct3D games (DX 8+9) (FIXED)
Goto page Previous  1, 2, 3, 4, 5, 6  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Spooky



Joined: 27 Jul 2009
Posts: 6

PostPosted: Wed Dec 09, 2009 6:30 pm    Post subject: Reply with quote

Just now getting back to this. think I discovered the problem with AA3. It doesn't work in AA3 because AA3 uses DirectX exclusive mode. After experimenting some more found it not to work in some other DirectX games that use exclusive mode.

Was a nice idea, but i don't have any more time to spend on it, so I coded my own. Its a PITA to get an overlay to work with exclusive mode DirectX applications but I finally did it.
Back to top
View user's profile Send private message
MasterFocus



Joined: 08 Apr 2009
Posts: 3035
Location: Rio de Janeiro - RJ - Brasil

PostPosted: Thu Dec 10, 2009 12:45 am    Post subject: Reply with quote

@heavenzone:
Thanks for commenting!
But which game/application? Is it DX8 or 9?

@Spooky:
Oh, I see. I will add this info to the documentation.
I've been quite busy, but vacation is coming soon!
Mind sending me a PM to tell how you managed to get your overlay?
_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"

Antonio França
My stuff: Google Profile
Back to top
View user's profile Send private message Visit poster's website
Liquid44
Guest





PostPosted: Tue Jan 12, 2010 1:53 am    Post subject: Reply with quote

sorry for posting in such an old topic but i hought it would be handy to know you can change the injecter image using res hacker and opening the d3d9.dll then just replace bitmap with ure one Smile
Back to top
MasterFocus



Joined: 08 Apr 2009
Posts: 3035
Location: Rio de Janeiro - RJ - Brasil

PostPosted: Fri Jan 15, 2010 6:45 am    Post subject: Reply with quote

I am aware of that. Thanks for the info though.
I totally forgot about this lib as I'm not currently using it for a few reasons.
I thought about changing the bitmap but it's not such a big deal since it just makes reference to the developer of GPP, which was used in this lib.
_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"

Antonio França
My stuff: Google Profile
Back to top
View user's profile Send private message Visit poster's website
Tajin



Joined: 20 Jan 2010
Posts: 4
Location: Germany

PostPosted: Wed Jan 20, 2010 1:51 pm    Post subject: Reply with quote

Say, MasterFocus... have you ever considered looking at the Mumble-sourcecode? They seem to have an decent overlay system that works with DX10 aswell.

Might be worth a try. Very Happy
Back to top
View user's profile Send private message
MasterFocus



Joined: 08 Apr 2009
Posts: 3035
Location: Rio de Janeiro - RJ - Brasil

PostPosted: Wed Jan 20, 2010 4:31 pm    Post subject: Reply with quote

Never heard about that before. I'll check it later. Thanks!
_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"

Antonio França
My stuff: Google Profile
Back to top
View user's profile Send private message Visit poster's website
andz



Joined: 05 Oct 2007
Posts: 11

PostPosted: Thu Apr 15, 2010 11:44 pm    Post subject: Reply with quote

Thanks for this, it is working for me!

But:

Spooky wrote:
[...] I was forced to inject it from outside the game directory. [...]


How do you inject the dll file?
I want to use the library without copying the d3d8.dll into my Warcraft III directory.
Back to top
View user's profile Send private message
MasterFocus



Joined: 08 Apr 2009
Posts: 3035
Location: Rio de Janeiro - RJ - Brasil

PostPosted: Fri Apr 16, 2010 1:22 am    Post subject: Reply with quote

andz wrote:
Spooky wrote:
[...] I was forced to inject it from outside the game directory. [...]

How do you inject the dll file?

There are programs to do that.
Search for "inject dll" (Google) and you may find something useful.

andz wrote:
I want to use the library without copying the d3d8.dll into my Warcraft III directory.

I don't see why that would be a problem, but I can't tell you anything about this DLL injection method as I've never tried it.
_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"

Antonio França
My stuff: Google Profile
Back to top
View user's profile Send private message Visit poster's website
andz



Joined: 05 Oct 2007
Posts: 11

PostPosted: Sat Apr 17, 2010 11:55 pm    Post subject: Clear multiline text Reply with quote

Thank you for your fast reply. I think I will have to do some reseaerch.

Another question:

Is it a bug concerning to multiline text, that refreshing the text inside one and the same text field doesn't erase former text?

For example:

First my "Output" is "Line1`nLine2`nLine3`nLine4" (Output := "Line1`nLine2`nLine3`nLine4")
I show and hide it with

Code:

SomeLabel:
GPF_SetMultiLine(0,10,10,Output,0xffff0000,0,30,1,1000,1000,1)
GPF_ShowMultiLine(0,1)
SetTimer, ClearOSD, -5000
Return

ClearOSD:
GPF_ShowMultiLine(0,0)
Return


This will show an OSD like this:

Quote:
Line1
Line2
Line3
Line4


Now i use the same text field (ID 0) to show another text (Output := "ANOTHERLINE1"):

Code:
SomeLabel:
GPF_SetMultiLine(0,10,10,Output,0xffff0000,0,30,1,1000,1000,1)
SetTimer, ClearOSD, -5000
Return

ClearOSD:
GPF_ShowMultiLine(0,0)
Return


This will show something like:
Quote:
ANOTHERLINE1
ne2
Line3
Line4


Is it my fault or is it a bug? Or ist it necessary to use "GPF_Main( )" always to activate OSD and to erase text afterwards?
Back to top
View user's profile Send private message
MasterFocus



Joined: 08 Apr 2009
Posts: 3035
Location: Rio de Janeiro - RJ - Brasil

PostPosted: Mon Apr 19, 2010 3:07 am    Post subject: Reply with quote

It is a bug. Thanks!

To avoid this behaviour, I added the auxiliar function GPF_AuxGetFilledStr(Text), which is always called.
However, now I see (pretty obvisoulsy) that it will work only for singleline text fields.

I will update the library and fix this ASAP. Meanwhile, inside that auxiliar function, you may change from 127 to 1023, which will work for multiline fields. I can't predict how it will behave for singleline fields, but probably won't cause any other bugs.
_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"

Antonio França
My stuff: Google Profile
Back to top
View user's profile Send private message Visit poster's website
MasterFocus



Joined: 08 Apr 2009
Posts: 3035
Location: Rio de Janeiro - RJ - Brasil

PostPosted: Tue Jun 08, 2010 8:02 pm    Post subject: Reply with quote

Bump. Updated!

A minor bug (regarding multiline strings not being filled properly) has been fixed.

I've been checking/updating all my code (library, functions, templates...) today.
I'm not sure if I'll have time to update this library's documentation though.
_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"

Antonio França
My stuff: Google Profile
Back to top
View user's profile Send private message Visit poster's website
Stryker7



Joined: 15 Jun 2007
Posts: 2

PostPosted: Thu Jun 24, 2010 11:50 am    Post subject: Besides Text and FPS Reply with quote

I am new to all of this, but I was wondering if .....

Is there a way to add other information to be displayed besides text and FPS, such as available system memory, cpu fan speed.

Thanks for the replies.
Back to top
View user's profile Send private message
MasterFocus



Joined: 08 Apr 2009
Posts: 3035
Location: Rio de Janeiro - RJ - Brasil

PostPosted: Thu Jun 24, 2010 12:52 pm    Post subject: Reply with quote

Via GPF, the only way to do this would probably be retireve this info
somehow and then show it using one of the available text fields.
_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"

Antonio França
My stuff: Google Profile
Back to top
View user's profile Send private message Visit poster's website
WRobN



Joined: 16 Jul 2010
Posts: 40

PostPosted: Tue Jul 27, 2010 3:50 pm    Post subject: Reply with quote

Is it possible to create a tabbed menu.
where the tabs and the buttons in the menu are clickable by mouse?

I need a way to overlay a DX game with a menu.

with a click on a key i need a pop up menu.
The mouse must be disabled ingame and enabled in menu.

Is this possible with this???
Back to top
View user's profile Send private message
MasterFocus



Joined: 08 Apr 2009
Posts: 3035
Location: Rio de Janeiro - RJ - Brasil

PostPosted: Tue Jul 27, 2010 6:53 pm    Post subject: Reply with quote

With this library, there is no way to overlay a DX application with a truly functional/clickable window or GUI.

Also, as documented:
GPF Documentation [Notes] wrote:
Overlayed elements also get ontop of the game's custom mouse cursor

This aspect makes it harder to simulate the click behaviour on a certain overlay because the mouse wouldn't be visible.

If you manage to find any workarounds, please report.
_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"

Antonio França
My stuff: Google Profile
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 4 of 6

 
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