Skip to content

Instantly share code, notes, and snippets.

@ongaeshi
Created February 17, 2011 03:24
Show Gist options
  • Select an option

  • Save ongaeshi/830905 to your computer and use it in GitHub Desktop.

Select an option

Save ongaeshi/830905 to your computer and use it in GitHub Desktop.
Windwosで、メッセージをポップアップさせるrubyスクリプト
#! ruby
require 'win32ole'
wsh = WIN32OLE.new('Wscript.Shell')
wsh.Popup(ARGV[0], # メッセージ本体
0, # 待機時間
'Message Box', # タイトル
4096) # オプション(メッセージボックスに応答するまですべてのアプリケーションを中断)
@tasuzuki1228

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment