Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

How To Close Gui


  • Please log in to reply
3 replies to this topic

#1 litlmike

litlmike

    Struggling Learner

  • Active Members
  • PipPipPipPipPipPip
  • 693 posts

Posted 23 March 2006 - 04:51 PM

Is there a way to control how the 'X' in the top right corner of a GUI acts? I just want it to close when clicked.
Is it some sort of constant?

Instead of closing when clicking the 'X' it will run the rest of the script.







#2 Pakku

Pakku

    Prodigy

  • Active Members
  • PipPipPip
  • 183 posts

Posted 23 March 2006 - 05:00 PM

yup there is
a gui looks like this
see for youself how to modifed it

#include<GUIConstants.au3> GUICreate("My GUI") GUISetState() While 1     $msg = GUIGetMsg()     If $msg = $GUI_EVENT_CLOSE Then         Exit     EndIf WEnd

How can someone use Windows without using AutoIt?That one would properly don't know how to handle a computer!My scripts:Send files over internetKind of RSS reader3Draw ProUDF: convert a character string to a binary one and backCalculate PiCommand line downloader (Youtube/Google video)Set the transparency of a window just by hitting a key!Secure your pcOther things:http://www.autoitscript.com/fileman/users/arjan%20staring/My profilePM me

#3 litlmike

litlmike

    Struggling Learner

  • Active Members
  • PipPipPipPipPipPip
  • 693 posts

Posted 23 March 2006 - 05:09 PM

yup there is
a gui looks like this
see for youself how to modifed it

#include<GUIConstants.au3> GUICreate("My GUI") GUISetState() While 1     $msg = GUIGetMsg()     If $msg = $GUI_EVENT_CLOSE Then         Exit     EndIf WEnd

Thanks!

#4 slightly_abnormal

slightly_abnormal

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 513 posts

Posted 23 March 2006 - 05:18 PM

welcome to the forums!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users