This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'win32ole' | |
csharp_script = WIN32OLE.new('ruby.csharp_script.CsharpScript') | |
code = <<"EOS" | |
"Hello, Ruby!" | |
EOS | |
result = csharp_script.EvaluateAsync(code) | |
p result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'win32ole' | |
csharp_script = WIN32OLE.new('ruby.csharp_script.CsharpScript') | |
code = <<"EOS" | |
10.08 | |
EOS | |
result = csharp_script.EvaluateAsync(code) | |
p result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'win32ole' | |
csharp_script = WIN32OLE.new('ruby.csharp_script.CsharpScript') | |
code = <<"EOS" | |
1 | |
EOS | |
result = csharp_script.EvaluateAsync(code) | |
p result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'win32ole' | |
csharp_script = WIN32OLE.new('ruby.csharp_script.CsharpScript') | |
code = <<"EOS" | |
#r "PresentationFramework " | |
using System; | |
using System.Windows; | |
using System.Windows.Controls; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'win32ole' | |
csharp_script = WIN32OLE.new('ruby.csharp_script.CsharpScript') | |
code = <<"EOS" | |
#r "PresentationFramework" | |
using System; | |
using System.Windows; | |
var result = MessageBox.Show( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'win32ole' | |
csharp_script = WIN32OLE.new('ruby.csharp_script.CsharpScript') | |
code = <<"EOS" | |
#r "System" | |
using System; | |
for (int i=0; i<10; i++) { | |
Console.WriteLine(i.ToString(" 0")); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
require 'mscorlib' | |
require 'System' | |
require 'PresentationFramework' | |
module Masoojer | |
def self.full_screen | |
if @full_screen_toggle then | |
self.full_screen_off | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
require 'mscorlib' | |
require 'System' | |
require 'PresentationFramework' | |
module Masoojer | |
def self.dqmp | |
@webbrowser = System::Windows::Controls::WebBrowser.new | |
@webbrowser.Name = "DqmpWebBrowser" | |
@webbrowser.Height = System::Double.NaN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
require 'mscorlib' | |
require 'System' | |
require 'PresentationFramework' | |
module Masoojer | |
def self.kancolle | |
@webbrowser = System::Windows::Controls::WebBrowser.new | |
@webbrowser.Name = "KancolleWebBrowser" | |
@webbrowser.Height = System::Double.NaN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
module Masoojer | |
def self.secret_protection(begin_position, end_position) | |
replace_string = "■" * (end_position - begin_position) | |
$azukiControl.Document.Replace(replace_string, begin_position, end_position) | |
end | |
end | |
menu_sp = System::Windows::Controls::MenuItem.new() |