Jump to content

overlay image


gammasts
 Share

Recommended Posts

Is there a way to display an image on top of a game window? For instance I want to create a script that will display an image saying enemy somewhere on the screen when the center of the screen point is a certain color.

Is there a function or something? An example would be nice.

Link to comment
Share on other sites

I don't think a game would simply allow it.

For example Diablo II has to be the focus, you can't put anything over it like a splash screen or something.

If you can get the game in a window, and spit the information into a GUI I think that'd work well.

"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.
Link to comment
Share on other sites

A gui window set with the extended style attribute $WS_EX_TOPMOST might work.

See if this works for you,it stays on top of all windows ive tested it on.

Havnt tryed it with a game though.

#include "GUIConstants.au3"
$Msg_Gui = GUICreate("Enemy", 100, 20, -1, -1, $WS_POPUP, $WS_EX_TOPMOST)
$Lable = GUICtrlCreateLabel ("Enemy here --->",0, 0, 100)
$Lable_Font = GUICtrlSetFont ($Lable, 9, 600, -1, "Comic Sans MS")
GuiSetState ()

while 1
   sleep (10)
Wend

Nova

Edited by Nova
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...