Jump to content
Sign in to follow this  

An Optional Gui!

Recommended Posts


So I was wondering one day, can I make a program run, and not have it have a GUI but at some points do, without going through GUI delete and creation. Here's a little wrapper that will make the GUI optional.

; ----------------------------------------------------------------------------
; AutoIt Version: 3.1.+++ (BETA 117)
; Author:        Max Gardner (AutoIt Smith;king.of.all@comcast.net)
; ----------------------------------------------------------------------------
HotKeySet("{F1}", "GUIStart")
AdlibEnable("GetMsg", 10)
While 1
; Main Program (Service Running In Background)
Func GetMsg()
    $GUIMsg = GUIGetMsg()
    If $GUIMsg = -3 Then GUIDelete($GUI)
; Deal with the message.
Func GUIStart()
    Global $GUIMsg
; Graphic User Interface
    Global $GUI = GUICreate("YourGUI")

Here's some code for all of you command line script kiddies. I hope you like. I know I havn't been around alot I just don't have the time.


AutoIt Smith

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.