谢谢各位的帮助,真的很有用,但是我现在碰到另外一个问题#include <GUIConstantsEx.au3>
#include <EditConstants.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
#include <StaticConstants.au3>
#include <TreeViewConstants.au3>
#include <File.au3>
#NoTrayIcon
Opt('MustDeclareVars', 1)
GUICreate('vcfCard creator v1.00.01', 280, 150, -1, -1)
Dim $p, $Button, $Button2, $nMsg,$i,$Str
$p = GUICtrlCreateInput("0", 50, 35, 140, 20)
$Button = GUICtrlCreateButton("Generate Contacts", 50, 80, 140, 20)
$Button2 = HotKeySet("{ESC}","Terminate")
GUISetState()
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button2
Terminate()
Case $Button
Create()
EndSwitch
WEnd
Func Terminate()
Exit 0
EndFunc ;==>Terminate
Func Create()
For $i = 1 to $p
$Str = 'a' & $i & @CRLF & 'b'& $i & @CRLF & 'c' & $i & @CRLF & '...' & @CRLF & 'ggg' & $i
FileWrite('Contact'& $i & '.txt', $Str)
Next
EndFunc
为什么我定义的input不能起作用呢?? |