gammasts Posted December 27, 2004 Posted December 27, 2004 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.
Insolence Posted December 27, 2004 Posted December 27, 2004 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.
layer Posted December 27, 2004 Posted December 27, 2004 no functions to do that.. as far as i know your probably going to want to get your hands dirty with C or C++ or some laguage like that... i highly doubth theres a dllcall either to do this.. FootbaG
Nova Posted December 27, 2004 Posted December 27, 2004 (edited) 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 December 27, 2004 by Nova
gammasts Posted December 27, 2004 Author Posted December 27, 2004 sounds good, ill take a try with it later Thanks for the help
gammasts Posted December 28, 2004 Author Posted December 28, 2004 I get an error on line two about unknown function
Nova Posted December 28, 2004 Posted December 28, 2004 It works perfectly for me, have you got the latest unstable version of autoit ?Latest Version 27th Dec
gammasts Posted December 28, 2004 Author Posted December 28, 2004 latest version works for me. hmm wierd k, ill play around with the script.
gammasts Posted December 28, 2004 Author Posted December 28, 2004 ok I tried it. It does not work in game. Perhaps there is another way to draw it or something? If you can find a way let me know.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now