Code Monkey home page Code Monkey logo

standardgalactic / objcsv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jnllnd/objcsv

0.0 1.0 0.0 149 KB

AutoHotkey_L (AHK) functions to load from CSV files, sort, display and save as CSV collections of records using the Object data type. Files can be read and saved in any delimited format (CSV, semi-colon, tab delimited, single-line or multi-line, etc.). Collections can also be displayed, edited and read in GUI ListView objects.

CSS 2.27% AutoHotkey 63.27% HTML 34.46%

objcsv's Introduction

ObjCSV Library

##Library to load and save CSV files to/from objects and ListView

Written using AutoHotkey_L v1.1.09.03+ (http://l.autohotkey.net/) By JnLlnd on AHK forum Library home on GitHub https://github.com/JnLlnd/ObjCSV 2013-08-22+, last update (v0.5.1): 2016-06-06

AutoHotkey_L (AHK) functions to load from CSV files, sort, display and save collections of records using the Object data type

  • Read and save files in any delimited format (CSV, semi-colon, tab delimited, single-line or multi-line, etc.).
  • Display, edit and read Collections in GUI ListView objects.
  • Export Collection to fixed-width, HTML or XML files.
  • Read and save files supporting the following file encoding: ANSI (default), UTF-8, UTF-16, UTF-8-RAW, UTF-16-RAW or CPnnnn (nnnn being a code page numeric identifier), new in v0.5

For more info on CSV files, see http://en.wikipedia.org/wiki/Comma-separated_values.

Even if you don't know much about AHK objects, simply using these functions will help to:

  • Transform a tab or semi-colon delimited CSV file to a straight coma-delimited file (any single character delimited is supported).
  • Load a CSV file with multi-line fields (for example, Notes fields in a Google Contact or Outlook tasks export) and save it in a single line CSV file (with the end-of-line replacement character of your choice) that can be imported easily in Excel.
  • Load a list and export it in an HTML file ready for your website.

Other usages:

  • Load a file to object to run any scripted manipulation on the content of the file with the ease and safety of AHK objets.
  • Add/change CSV header names, change the order of fields or remove fields in a CSV file programatically.
  • Display the file content in a ListView for further viewing or editing (multiple Gui and ListView controls are supported).
  • Sort the data on any field combination before loading to the ListView or saving to a CSV file.
  • Save all or selected rows of a ListView to a CSV file.
  • Save to a file with or without header, with the fields delimiter and encapsulator of your choice.

The most up-to-date version of this library can be found on GitHub: https://github.com/JnLlnd/ObjCSV

INSTRUCTIONS

Copy this script in a file named ObjCSV.ahk and save this file in one of these \Lib folders:

  • %A_ScriptDir%\Lib\
  • %A_MyDocuments%\AutoHotkey\Lib\
  • [path to the currently running AutoHotkey_L.exe]\Lib\

You can use the functions in this library by calling ObjCSV_FunctionName. No #Include required!

DOCUMENTATION, DISCUSSION AND TUTORIAL

Library documentation:
http://code.jeanlalonde.ca/ahk/ObjCSV/ObjCSV-doc/ (updated to v0.5)

A discussion on this library and tutorials can be found on the AutoHotkey forum:
http://www.autohotkey.com/board/topic/96618-lib-objcsv-library-v01-library-to-load-and-save-csv-files-tofrom-objects-and-listview/
http://www.autohotkey.com/board/topic/96619-objcsv-library-tutorial-basic/
http://www.autohotkey.com/board/topic/97147-parsing-csv-files-with-multi-line-fields/

objcsv's People

Contributors

jnllnd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.