rawrr Posted May 10, 2008 Posted May 10, 2008 DESCRIPTIONWell, I was making a script for a game I play and I needed it to appear over the game atCertain times so I made this script.SOURCE;Name - Above script ;Author - Rawrr ;========================================================== #include <GUIConstants.au3> Hotkeyset ("{ESC}","Close"); Sets Escape to close the Script. Hotkeyset ("{INS}","Above"); Sets Insert to make the gui above over anything. $GUI = Guicreate ("Above",200,200); Creates a gui. ;========================================================== ; Makes the X button close the gui and script. While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then Exit Wend ;=========================================================== ; When Insert is pressed the gui appears over everything. Func Above() Guisetstate(@SW_SHOW, $GUI) Endfunc ;============================================================ ; When Escape is pressed closes the script. Func Close() Exit EndFuncIt is described inside the script.Hope you like it!
thepip3r Posted May 10, 2008 Posted May 10, 2008 u realize that Opt("GUICloseOnESC",1) does the same thing to make a script close on the user pressing escape? My Additions:- RunAs AdminDeviant Fun:- Variable Sound Volume
Generator Posted May 10, 2008 Posted May 10, 2008 DESCRIPTION Well, I was making a script for a game I play and I needed it to appear over the game at Certain times so I made this script. SOURCE;Name - Above script ;Author - Rawrr ;========================================================== #include <GUIConstants.au3> Hotkeyset ("{ESC}","Close"); Sets Escape to close the Script. Hotkeyset ("{INS}","Above"); Sets Insert to make the gui above over anything. $GUI = Guicreate ("Above",200,200); Creates a gui. ;========================================================== ; Makes the X button close the gui and script. While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then Exit Wend ;=========================================================== ; When Insert is pressed the gui appears over everything. Func Above() Guisetstate(@SW_SHOW, $GUI) Endfunc ;============================================================ ; When Escape is pressed closes the script. Func Close() Exit EndFunc It is described inside the script. Hope you like it! I certainly don't see how this is useful and it does have flaws. But thanks for sharing what you have.
rawrr Posted May 10, 2008 Author Posted May 10, 2008 Yeah, I know it has flaws, I'm still an AutoIt noob. I just shared it because it helped me.
darkshadow791 Posted May 13, 2008 Posted May 13, 2008 Even noobs come to the forum looking for help and support. I know simple stuff like this helped me out when I first started AI long ago. Congrats on your first official contribution! Note Taker Lite - a note taking / converting tool.
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