Code: Select all
; Generated by Auto-GUI 3.0.1
#SingleInstance Force
#NoEnv
SetWorkingDir %A_ScriptDir%
SetBatchLines -1
Gui Font, s9, Segoe UI
Gui Add, Button, x142 y12 w80 h23 gCheck, &OK
Gui Add, Edit, x13 y13 w120 h21 vEdit
Gui Show, w233 h58, Window
Return
var := "1"
Check:
GuiControlGet,Edit
if (Edit = "") {
MsgBox, EditBox is empty, so i am going to put 1 on it.
var := "1"
GuiControl,,Edit, %var%
} else {
var := %Edit%
MsgBox, EditBox was not empty, congratulations! Setted the var value to its value. (%var%)
}
return
GuiEscape:
GuiClose:
ExitApp
não funciona direito. Ao invés de aparecer o valor da variávelMsgBox, EditBox was not empty, congratulations! Setted the var value to its value. (%var%)
, não aparece nada.var