수강신청 매크로

#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.

buffer := ""
Counter := 0
Loop, read, data.txt
{
    Loop, parse, A_LoopReadLine, %A_Tab%
    {
        buffer .= A_LoopField . A_Tab
    }
    Counter += 1
}

While(Counter < 30)
{
    buffer .= A_Tab . A_Tab
    Counter += 1
}

buffer .= A_Tab . A_Space

^!1:: Send, %buffer% 

Usage

put data in “data.txt” like this:

300012  11
120042  12
381638  01

Download & run this file and press Ctrl+Alt+1 to make keystrokes.

kjwon15

I'm a hacker, I want to improve life.

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.