bub |
|
| CODICE #Include <GuiConstants.au3> $gui = GuiCreate('Titolo',300,200,BitOr($WS_POPUP,$WS_BORDER)); così creo la gui, senza pulsanti e con un bordo intorno $b1 = GuiCtrlCreateButton('bottone',2,2,80,20); così creo un bottone GuiSetState ( ); così faccio vedere la gui
While 1 Switch GuiGetMsg() ;importantissimo! ci deve essere sempre! Case $b1; se si preme il bottone MsgBox(0,'Clikkato','Hai premuto il bottone') Case $GUI_EVENT_CLOSE; se premiamo il tasto di chiusura Exit;esce EndSwitch;serve! Wend;serve! errore CODICE ==> Variable used without being declared.: $gui = GuiCreate('Titolo',300,200,BitOr($WS_POPUP,$WS_BORDER)) $gui = GuiCreate('Titolo',300,200,BitOr(^ ERROR
|
| |