ผมอยากให้เวลาค้นหาไฟล์ progress bar ทำงานไปพร้อมกันแล้วเสร็จพร้อมกันอ่าครับ ขอคำแนะทำทีมือใหม่พึ่งเรียนรู้คร้าบๆ
[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]
$var = InputBox("หาไฟล์", "ใส่ชื่อไฟล์ที่ต้องการค้นหา", "PSsix.au3")
$var2 = FileSelectFolder("เลือกตำแหน่งที่ต้องการค้นหา",@ScriptDir,1)
$search = FileFindFirstFile($var2&"\"&$var )
If $search = -1 Then
MsgBox(0, "Error", "ไม่พบไฟล์")
Exit
EndIf
ProgressOn("","เริ่มค้นหาไฟล์จาก"& $var2&"\"&$var)
While 1
$file = FileFindNextFile($search)
If @error Then ExitLoop
MsgBox(4096, "File:", $file)
WEnd
ProgressOff()
FileClose($search)
|
|