Originally posted by: Ken g6
This sounds like a job for VBScript!
Here's a script that, when activated, will read the first line from a file called "csvfile.txt", split it by commas, and type the values separated by tabs. To use it, save it as a file (e.g. "tabscript.vbs"), create a shortcut to it in the same place (e.g. on the desktop), add a shortcut key for that shortcut (in the shortcut properties, type, e.g. Ctrl-Alt-T in that field), and create a file "csvfile.txt" in the same place with those comma-separated values on one line. Then go to your browser, select the first field, hit that shortcut key combination (Ctrl-Alt-T), and away it should go!
Option Explicit
Dim objShell, oFSO, objFile, fileLine, i
Const strFile = "csvfile.txt"
Set objShell = WScript.CreateObject("WScript.Shell")
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = oFSO.OpenTextFile(strFile, 1)
fileLine = objFile.ReadLine
objFile.Close
fileLine = split(fileLine, ",")
for each i in fileLine
objShell.SendKeys i
objShell.SendKeys "{TAB}"
next
By the way, I wanted to read the CSV data from the clipboard, but apparently VBScript can't do that (easily).