Thanks.
Code: Select all
Gui, Add, Text, x32 y29 w100 h30 +Right, Asset #:
Gui, Add, Edit, x142 y29 w100 h30 Number Limit5 vAsset,
Gui, Add, Text, x32 y69 w100 h30 +Right, Description:
Gui, Add, DropDownList, R5: x142 y69 w100 h21 vDescription, MSR|MRA|MSR Training|HR Training|DR|Check Scanning|Seminar
Gui, Add, Button, x32 y179 w100 h30 , OK
Gui, Add, Button, x142 y179 w100 h30 , Cancel
; Generated using SmartGUI Creator 4.0
Gui, Show, x127 y87 h239 w306, New GUI Window
Return
ButtonCancel:
GuiClose:
Gui, Cancel
return
ButtonOK:
Gui, Submit
RegWrite, REG_SZ, HKEY_LOCAL_MACHINE\Software\Company, CompanyAssetNumber, %vAsset%
RegWrite, REG_SZ, HKEY_LOCAL_MACHINE\Software\Company, CompanyDescription, %vDescription%
ExitApp