mabicro 1.0.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/examples/basic_loop.rb +5 -0
- data/lib/mabicro.rb +11 -9
- metadata +2 -1
data/lib/mabicro.rb
CHANGED
@@ -1,17 +1,19 @@
|
|
1
1
|
require 'Win32API'
|
2
2
|
|
3
|
-
|
4
|
-
$getSearchedX = Win32API.new("mabicro", "GetSearchedX", "", "I")
|
5
|
-
$getSearchedY = Win32API.new("mabicro", "GetSearchedY", "", "I")
|
3
|
+
MABICRO_DLL_PREFIX = Gem::Specification.find_by_name("mabicro").gem_dir + "/lib/"
|
6
4
|
|
7
|
-
$
|
8
|
-
$
|
9
|
-
$
|
5
|
+
$imageSearch = Win32API.new(MABICRO_DLL_PREFIX + "mabicro", "ImageSearch", "LLLLPL", "I")
|
6
|
+
$getSearchedX = Win32API.new(MABICRO_DLL_PREFIX + "mabicro", "GetSearchedX", "", "I")
|
7
|
+
$getSearchedY = Win32API.new(MABICRO_DLL_PREFIX + "mabicro", "GetSearchedY", "", "I")
|
10
8
|
|
11
|
-
$
|
12
|
-
$
|
9
|
+
$sendKeyDown = Win32API.new(MABICRO_DLL_PREFIX + "mabicro", "KeyDown", "I")
|
10
|
+
$sendKeyUp = Win32API.new(MABICRO_DLL_PREFIX + "mabicro", "KeyUp", "I")
|
11
|
+
$moveCursor = Win32API.new(MABICRO_DLL_PREFIX + "mabicro", "MouseTo", "II")
|
13
12
|
|
14
|
-
$
|
13
|
+
$sendMouseDown = Win32API.new(MABICRO_DLL_PREFIX + "mabicro", "MouseDown", "I")
|
14
|
+
$sendMouseUp = Win32API.new(MABICRO_DLL_PREFIX + "mabicro", "MouseUp", "I")
|
15
|
+
|
16
|
+
$getKeyState = Win32API.new(MABICRO_DLL_PREFIX + "user32", "GetAsyncKeyState", "I", "I")
|
15
17
|
|
16
18
|
LEFT = 1
|
17
19
|
RIGHT = 2
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mabicro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -68,6 +68,7 @@ extra_rdoc_files: []
|
|
68
68
|
files:
|
69
69
|
- lib/mabicro.dll
|
70
70
|
- lib/mabicro.rb
|
71
|
+
- examples/basic_loop.rb
|
71
72
|
homepage: http://github.com/pjc0247/
|
72
73
|
licenses: []
|
73
74
|
post_install_message:
|