kritya Posted April 20, 2012 Share Posted April 20, 2012 Hi, I was trying to make an overlay GUI which could be displayed above all the open windows(including games , etc) I tried to do something with Koda and made something(code is below) it works for all windows except full screen games. Is the some style or ex-style I have missed or added an extra one ? If there is any other way of making an overlay that too would of course work #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 615, 440, -1, -1, BitOR($GUI_SS_DEFAULT_GUI,$WS_MAXIMIZEBOX,$WS_SIZEBOX,$WS_THICKFRAME,$WS_TABSTOP,$DS_MODALFRAME), BitOR($WS_EX_OVERLAPPEDWINDOW,$WS_EX_TOOLWINDOW,$WS_EX_TOPMOST,$WS_EX_WINDOWEDGE,$WS_EX_LAYERED)) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Thanks Link to comment Share on other sites More sharing options...
rcmaehl Posted April 20, 2012 Share Posted April 20, 2012 (edited) This works for me: GUISetStyle(BitOr($WS_POPUP + $WS_VISIBLE), 0x08000000) Edited April 20, 2012 by rcmaehl My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.My Projects WhyNotWin11Cisco Finesse, Github, IRC UDF, WindowEx UDF Link to comment Share on other sites More sharing options...
BrewManNH Posted April 20, 2012 Share Posted April 20, 2012 This works for me: GUISetStyle(0x90000000, 0x08000000) You should be using the style variables in that example so that the OP knows what you're doing with the styles, rather than making everyone look up what those numbers translate to. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
rcmaehl Posted April 20, 2012 Share Posted April 20, 2012 You should be using the style variables in that example so that the OP knows what you're doing with the styles, rather than making everyone look up what those numbers translate to.The extended style has no variable. The Regular style is $WS_POPUP + $WS_VISIBLE My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.My Projects WhyNotWin11Cisco Finesse, Github, IRC UDF, WindowEx UDF Link to comment Share on other sites More sharing options...
BrewManNH Posted April 20, 2012 Share Posted April 20, 2012 I see that now, about the extended style, there is a MSDN variable for it (WS_EX_NOACTIVATE), but it's not included in the GUIConstantsEx.au3 or WindowsConstants.au3 files. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
rcmaehl Posted April 20, 2012 Share Posted April 20, 2012 I see that now, about the extended style, there is a MSDN variable for it (WS_EX_NOACTIVATE), but it's not included in the GUIConstantsEx.au3 or WindowsConstants.au3 files.I have reported it as a help file issue here My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.My Projects WhyNotWin11Cisco Finesse, Github, IRC UDF, WindowEx UDF Link to comment Share on other sites More sharing options...
BrewManNH Posted April 20, 2012 Share Posted April 20, 2012 Should be put into Trak, because it's not a help file issue, it's a content issue for the xConstants files. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
kritya Posted April 20, 2012 Author Share Posted April 20, 2012 (edited) Thanks for the replies But using BitOr($WS_POPUP + $WS_VISIBLE), 0x08000000) Gives me an error. J:urt connectorte.au3(5,42) : ERROR: BitOR() [built-in] called with wrong number of args. GUISetStyle(BitOr($WS_POPUP + $WS_VISIBLE) Edited April 20, 2012 by kritya Link to comment Share on other sites More sharing options...
BrewManNH Posted April 20, 2012 Share Posted April 20, 2012 GUISetStyle(BitOr($WS_POPUP, $WS_VISIBLE) If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
kritya Posted April 21, 2012 Author Share Posted April 21, 2012 (edited) Ok. But it still doesnt works on full screen games. and I know some softwares like Teamspeak 3 and Mumble who have overlay which do work. Edited April 21, 2012 by kritya Link to comment Share on other sites More sharing options...
rcmaehl Posted April 23, 2012 Share Posted April 23, 2012 Ok. But it still doesnt works on full screen games.and I know some softwares like Teamspeak 3 and Mumble who have overlay which do work.As far as I know, those examples display in the Framebuffer or Viewpoint. This means they do not use their own Window but instead display in the game window itself.Secondly, why do you want to have a window on top of full screen games? My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.My Projects WhyNotWin11Cisco Finesse, Github, IRC UDF, WindowEx UDF Link to comment Share on other sites More sharing options...
kritya Posted April 25, 2012 Author Share Posted April 25, 2012 Well things like in-game chat or some kind of notifications , etc Link to comment Share on other sites More sharing options...
johnmcloud Posted July 24, 2012 Share Posted July 24, 2012 (edited) Just for curiosity, it's possible or not with Autoit?Can be useful to have a always-on-top GUI whatever full-screen game/apps/things on the screen, example like a clockI see software like XFire , TeamViewer or Mumble ( http://mumble.sourceforge.net/ ) can do this, so maybe is possible also with autoit, i dunno Edited July 24, 2012 by johnmcloud Link to comment Share on other sites More sharing options...
johnmcloud Posted July 25, 2012 Share Posted July 25, 2012 (edited) Maybe i have find a solution, from the AutoHotkey forum: Someone what to try to make this with autoit? I don't understand a word of AutoHotKey Thanks Edited July 27, 2012 by johnmcloud Link to comment Share on other sites More sharing options...
holly Posted July 25, 2012 Share Posted July 25, 2012 oh please man do it! I'm searching for a timer over a games for a loooot of time, but is impossible to find and time goes fast when you playing. So johnmcloud if you can make it you will be mbff Link to comment Share on other sites More sharing options...
johnmcloud Posted July 25, 2012 Share Posted July 25, 2012 (edited) mbff? What? Anyway i have some problem to make this: 1) I don't understand the AutoHotKey syntax 2) How to parent an autoit GUI ( child ) into an external application ( parent ), i think with DllCall but i don't know where to set 3) The question of +WS_CHILD -WS_POPUP isn't clear for me, you need to put after/before? If someone help me to make an autoit version, you can do everything you want, a timer, a browser, a chat etc... and i can help you, but without an help i can't do more. We need only to wait... Edited July 25, 2012 by johnmcloud Link to comment Share on other sites More sharing options...
holly Posted July 25, 2012 Share Posted July 25, 2012 Ok, maybe is better open a new thread, hope someone help me Link to comment Share on other sites More sharing options...
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