Sign in to follow this  
Followers 0
rawrr

Above Script.

6 posts in this topic

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!

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

Yeah..

Share this post


Link to post
Share on other sites

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. :)

Share this post


Link to post
Share on other sites

Yeah, I know it has flaws, I'm still an AutoIt noob. I just shared it because it helped me.

Share this post


Link to post
Share on other sites

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! :)

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  
Followers 0