I am a beginner to Autohotkey and I though this library would help me complete what I wanted to do. Currently, I am just reading in a tsv file (tab separated value file). The file seams to load. When I output the headers, the message box is missing the last column.
#include csv.ahk
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
csv_filename := "timecard2.txt"
FormatTime, CurrentYear,, yyyy
FormatTime, CurrentMonthDay,, MM-dd
FormatTime, CurrentWeekday,, ddd
FormatTime, CurrentTime,, hh:mm
Week := SubStr(A_YWeek, -1)
CSV_Load(csv_filename,CSV,"`t")
row := CSV_ReadRow(CSV,1)
Msgbox %row%
Date Clock-In Clock-Out
2022-45-11-07-Mon 07:21 04:37
2022-45-11-08-Tue 07:05 04:19
2022-45-11-09-Wed 07:07 04:13
2022-45-11-10-Thu 07:04 04:02
2022-45-11-11-Fri 07:07
I am a beginner to Autohotkey and I though this library would help me complete what I wanted to do. Currently, I am just reading in a tsv file (tab separated value file). The file seams to load. When I output the headers, the message box is missing the last column.
Script Source Code
Data file
Files
time_punch - Copy.txt
timecard2.txt