private void MainForm_Load(object sender, EventArgs e)
{
textBox.Highlighter = Highlighters.Ruby;
textBox.Images = templateBMPs;
engine = IronRuby.Ruby.CreateEngine();
ui = new UI(this);
scope = engine.CreateScope();
scope.SetVariable("ui", ui);
// Ctrl + R で今表示されているスクリプトを実行
// Ctrl + Esc で実行終了
// Ctrl + RPrintScreen でスクリーンショットを撮る
AddHotKeyAction(MOD_WIN, Keys.S, "スローモーションで実行", () => { ui.slowPlayFlag = true; Run(textBox.Text); });
AddHotKeyAction(MOD_WIN, Keys.Q, "実行停止", () => 停止SToolStripMenuItem_Click(null, null));
AddHotKeyAction(MOD_CONTROL, Keys.PrintScreen, "スクリーンショットを撮る", () => new BlackForm().takeScreenshot(this));
LoadConfigData();
}