我正在尝试进行保存,将数据从文本编辑保存到文件。编辑var似乎不会将任何数据放入文件中。文件内部最后有0个字节。
Gui, Add, Tab, x2 y-1 w250 h20 , Main|Code
Gui, Font, S9 CGreen, Verdana
Gui, Tab, Code
Gui, Add, Edit, x2 y39 w1410 h630 vMencode , Edit
Gui, Font, S13 CRed, Verdana
Gui, Add, Text, x1452 y39 w100 h30 +BackgroundTrans, Code Snips
Gui, Font, ,
Gui, Add, Button, x1422 y79 w60 h30 , Create Gui
Gui, Add, Button, x1512 y79 w60 h30 , Add Button
Gui, Add, Button, x1422 y119 w60 h30 , Add Pic
Gui, Add, Button, x1512 y119 w60 h30 , New Sec
Gui, Tab, Main
Gui, Add, Button, x2 y429 w100 h30 , Start String
Gui, Add, Button, x252 y-1 w90 h20 , Test Game
Gui, Tab, Code
Gui, Add, Button, x2 y669 w100 h30 gAddhelp, Add helpers
Gui, Add, Button, x100 y669 w100 h30 gSave vGMVSAVE, Save File
Gui, Show, x263 y180 h758 w1593, Temrin Dev Engine
Return
GuiClose:
ExitApp
Addhelp:
Gui, Tab, Code
FileRead, FileContents, Organ.gmv
GuiControl, , Mencode, %FileContents%
return
Save:
FileSelectFile, FileName, S16,, Save File, Game Managment Varibles (*.gmv)
Sleep, 2000
FileAppend,
(
%Mencode%
), %FileName%
return
答案 0 :(得分:0)
如此接近!您在Save
例行程序中遗漏了一个关键命令:
Gui, Submit [, NoHide]