﻿DBD Lookup
==========


วิธีใช้งาน (ภาษาไทย)
--------------------

1. แตกไฟล์ ZIP นี้ออกมาก่อน (คลิกขวา > Extract All)
   อย่าเปิดใช้งานจากข้างในไฟล์ ZIP โดยตรง

2. ดับเบิลคลิกไฟล์  setup.bat
   - ครั้งแรกจะติดตั้งส่วนประกอบที่จำเป็นให้เอง ใช้เวลาสักครู่
   - ครั้งต่อ ๆ ไปจะเปิดโปรแกรมได้ทันที

3. ถ้าขึ้นว่าไม่พบ Python ให้ติดตั้ง Python 3 ก่อน แล้วลองใหม่
   - เปิด Microsoft Store ค้นหา "Python 3.13" แล้วกด Get
   - หรือดาวน์โหลดจาก https://www.python.org/downloads/
     (ถ้าลงจากเว็บ อย่าลืมติ๊ก "Add python.exe to PATH" ตอนติดตั้ง)

4. ในโปรแกรม ให้ลากไฟล์ .xlsx เข้าไป เลือกคอลัมน์ แล้วกด Start

หมายเหตุ
   - โปรแกรมจะเขียนผลลงในไฟล์เดิมโดยตรง และสำรองไฟล์ต้นฉบับไว้ให้
     ครั้งแรกเป็นชื่อ ....original_backup.xlsx
   - ปิดไฟล์ใน Excel ก่อนเริ่ม ไม่อย่างนั้นจะบันทึกไม่ได้
   - หน้าต่าง Chrome ที่เปิดขึ้นมา อย่าปิด ปล่อยให้ทำงานไป
   - หยุดกลางคันได้ กด Stop แล้วค่อยเปิดใหม่ทีหลัง แถวที่ทำไปแล้วจะถูกข้าม

สิ่งที่ต้องมี: Windows 10/11, Python 3, Google Chrome


How to use (English)
--------------------

1. Extract this ZIP first (right-click > Extract All).
   Do not run it from inside the ZIP.

2. Double-click  setup.bat
   - The first run installs what it needs. This takes a few minutes.
   - Every run after that opens the program straight away.

3. If it says Python was not found, install Python 3 and try again:
   - Microsoft Store > search "Python 3.13" > Get
   - or https://www.python.org/downloads/
     (tick "Add python.exe to PATH" if you install from the website)

4. In the app: drag your .xlsx in, pick the columns, click Start.

Notes
   - Results are written into your file in place. A one-time copy of the
     original is kept as ....original_backup.xlsx
   - Close the file in Excel before starting, or saving will fail.
   - Leave the Chrome window it opens alone while it works.
   - You can Stop and resume later; finished rows are skipped.

Requirements: Windows 10/11, Python 3, Google Chrome
