[GUIDA] autoit, by Fraev

« Older   Newer »
  Share  
MatteoJug
CAT_IMG Posted on 11/10/2009, 19:28 by: MatteoJug     +1   -1




CODICE
#include <GUIConstants.au3>

$form = GUICreate ("Prima GUI", 330, 300)
$menu = GUICtrlCreateMenu ("File")
$tasto1 = GUICtrlCreateMenuItem ("Apri", $menu)
$inserisci = GUICtrlCreateButton ("Inserisci", 140, 210) ; per nascondere serve uno stile?
GUICtrlSetState(-1,32);No, serve uno stato (32)

GUISetState(@SW_SHOW)

While 1
      $Msg = GUIGetMsg()
      Switch $Msg
              Case $GUI_EVENT_CLOSE
                      Exit
              Case $tasto1
                      $testo = GUICtrlCreateEdit ("", 10, 35, 310, 150) ; e una volta cliccato quà poi me lo ricambia per mostrrlo?
                                               GUICtrlSetState($inserisci,16);e un altro per visualizzarlo (16)
              Case $inserisci
                      MsgBox (0, "Testo inserito", "Ciao!")
      EndSwitch
WEnd
 
Top
94 replies since 24/2/2008, 11:09   44901 views
  Share