| 1 |
require_relative "../lib/ninix/dll/osuwari" |
| 2 |
|
| 3 |
module NinixTest |
| 4 |
|
| 5 |
class OsuwariTest |
| 6 |
|
| 7 |
def initialize |
| 8 |
saori = Osuwari::Saori.new |
| 9 |
saori.setup |
| 10 |
saori.need_ghost_backdoor(self) |
| 11 |
saori.request("") |
| 12 |
print(saori.execute(nil), "\n") |
| 13 |
print(saori.execute( |
| 14 |
["START", "s1", "ACTIVE", "TL", "10", "20", "100", |
| 15 |
"XMOVE", "LEFT WORKAREA"]), |
| 16 |
"\n") |
| 17 |
saori.do_idle_tasks |
| 18 |
print(saori.execute(["STOP"]), "\n") |
| 19 |
saori.finalize |
| 20 |
end |
| 21 |
|
| 22 |
def identify_window(args) |
| 23 |
return false |
| 24 |
end |
| 25 |
|
| 26 |
def get_surface_scale |
| 27 |
return 90 |
| 28 |
end |
| 29 |
|
| 30 |
def get_surface_size(side) |
| 31 |
return 50, 100 |
| 32 |
end |
| 33 |
|
| 34 |
def set_surface_position(side, x, y) |
| 35 |
print("SIDE: ", side, "\n") |
| 36 |
print("POSITION: ", x, ", ", y, "\n") |
| 37 |
end |
| 38 |
|
| 39 |
def raise_surface(side) |
| 40 |
print("RAISE: ", side, "\n") |
| 41 |
end |
| 42 |
|
| 43 |
def get_workarea(side) |
| 44 |
return 0, 0, 640, 480 |
| 45 |
end |
| 46 |
end |
| 47 |
end |
| 48 |
|
| 49 |
NinixTest::OsuwariTest.new() |