Page 1 of 1

Script to copy data from notepad and enter it on a website  Topic is solved

Posted: 17 May 2018, 21:26
by anarion125
I need to copy a list of numbers from notepad to a set of input forms on a website.

I'm entering inventory values, each line has the name of the item and a text box to enter the amount. I can press enter go down to the next text box to enter amount.

The problem I'm having is that I can only paste into the top box. I need a script that will enter the first number, press enter, enter the second number, press enter, etc until there's nothing left in the list.

Please help save me days of work!!!

Re: Script to copy data from notepad and enter it on a website

Posted: 18 May 2018, 02:36
by Guest
Don't use Notepad, just use the FileRead command - https://autohotkey.com/docs/commands/FileRead.htm to read the text file into the clipboard and process that file. The first example here https://autohotkey.com/docs/misc/Clipboard.htm shows you how to do that.
Instead of the MsgBox you can use https://autohotkey.com/docs/commands/Send.htm