読者です 読者をやめる 読者になる 読者になる

時間を浪費するのやめたい

限界AtoZタイピング

#include <iostream>

int main() {
    // Generate applescript
    std::cout << "on run {input, parameters}\n\tactivate application \"Google Chrome\"" << std::endl;
    for (char i = 'a'; i <= 'z'; ++i) {
        std::cout << "\ttell application \"System Events\" to keystroke " << '"' << i << '"' << std::endl;
    }
    std::cout << "end run" << std::endl;
}
on run {input, parameters}
    activate application "Google Chrome"
    tell application "System Events" to keystroke "a"
    tell application "System Events" to keystroke "b"
    tell application "System Events" to keystroke "c"
    tell application "System Events" to keystroke "d"
    tell application "System Events" to keystroke "e"
    tell application "System Events" to keystroke "f"
    tell application "System Events" to keystroke "g"
    tell application "System Events" to keystroke "h"
    tell application "System Events" to keystroke "i"
    tell application "System Events" to keystroke "j"
    tell application "System Events" to keystroke "k"
    tell application "System Events" to keystroke "l"
    tell application "System Events" to keystroke "m"
    tell application "System Events" to keystroke "n"
    tell application "System Events" to keystroke "o"
    tell application "System Events" to keystroke "p"
    tell application "System Events" to keystroke "q"
    tell application "System Events" to keystroke "r"
    tell application "System Events" to keystroke "s"
    tell application "System Events" to keystroke "t"
    tell application "System Events" to keystroke "u"
    tell application "System Events" to keystroke "v"
    tell application "System Events" to keystroke "w"
    tell application "System Events" to keystroke "x"
    tell application "System Events" to keystroke "y"
    tell application "System Events" to keystroke "z"
end run