Jump to content
Sign in to follow this  
TrueSR

Gui in game

Recommended Posts

TrueSR

How can i show a gui in a game, like the chat window from xfire ?

I really do not have any idea how this can be done.

Thanks.

Share this post


Link to post
Share on other sites
_Kurt

I'm not sure exactly what you mean, but try something like this:

Local $hwnd = WinGetHandle("My Window Title") ;<-- Must be changed..
WinSetState($hwnd, "", @SW_SHOW)

Kurt


Awaiting Diablo III..

Share this post


Link to post
Share on other sites
TrueSR

I'm not sure exactly what you mean, but try something like this:

Local $hwnd = WinGetHandle("My Window Title") ;<-- Must be changed..
WinSetState($hwnd, "", @SW_SHOW)

Kurt

Something like this, but that also works in-game :

#include <GuiConstants.au3>

GUICreate ("Test", 600, 200, -1, -1, -1, $WS_EX_TOPMOST)
GUISetState()

While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            Exit
    EndSelect
WEnd

Thanks already

Share this post


Link to post
Share on other sites
_Kurt

Maybe look into: WinSetOnTop()

Kurt


Awaiting Diablo III..

Share this post


Link to post
Share on other sites
TrueSR

Maybe look into: WinSetOnTop()

Kurt

Does not work in-game, i think (i'm really not sure) i need to hook with some windows dll

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×