Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

@youpy
Last activeAugust 29, 2015 14:08
    • Star(0)You must be signed in to star a gist
    • Fork(0)You must be signed in to fork a gist
    Save youpy/b6adf7b9fb4b1d8fa571 to your computer and use it in GitHub Desktop.
    # coding: utf-8
    require'mac-skype'
    require'mac-skype/Ruby4Skype'
    defmain
    text,blob=ARGV
    blank='​'
    Skype.init
    Skype.attach_wait
    chat=Skype::Chat.find_using_blob(blob)
    msg=chat.send_message(text)
    # https://twitter.com/youpy/status/528042270088364032
    1000.timesdo |i|
    sleep0.5
    msg.set_body((i %2).zero? ?blank :text)
    end
    end
    main
    Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

    [8]ページ先頭

    ©2009-2025 Movatter.jp