3
3
#include < vector>
4
4
#include " mouse.h"
5
5
#include " deadbeef_rand.h"
6
- #include " screen.h"
7
- #include " screengrab.h"
8
6
#include " keypress.h"
9
7
10
8
using namespace v8 ;
@@ -108,33 +106,6 @@ Handle<Value> typeString(const Arguments& args)
108
106
return scope.Close (String::New (" 1" ));
109
107
}
110
108
111
- /*
112
- _____
113
- / ____|
114
- | (___ ___ _ __ ___ ___ _ __
115
- \___ \ / __| '__/ _ \/ _ \ '_ \
116
- ____) | (__| | | __/ __/ | | |
117
- |_____/ \___|_| \___|\___|_| |_|
118
-
119
- */
120
-
121
- Handle <Value> captureScreen (const Arguments& args)
122
- {
123
- HandleScope scope;
124
-
125
- MMRect rect;
126
- MMBitmapRef bitmap = NULL ;
127
- MMSize displaySize = getMainDisplaySize ();
128
-
129
- rect = MMRectMake (0 , 0 , displaySize.width , displaySize.height );
130
-
131
- bitmap = copyMMBitmapFromDisplayInRect (rect);
132
-
133
- return scope.Close (External::Wrap (bitmap));
134
-
135
- // return scope.Close(String::New("1"));
136
- }
137
-
138
109
void init (Handle <Object> target)
139
110
{
140
111
target->Set (String::NewSymbol (" moveMouse" ),
@@ -151,9 +122,6 @@ void init(Handle<Object> target)
151
122
152
123
target->Set (String::NewSymbol (" typeString" ),
153
124
FunctionTemplate::New (typeString)->GetFunction ());
154
-
155
- target->Set (String::NewSymbol (" captureScreen" ),
156
- FunctionTemplate::New (captureScreen)->GetFunction ());
157
125
}
158
126
159
127
NODE_MODULE (robotjs, init)
0 commit comments