xdotool 1.0.50 → 1.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.history/src/XdoTool_20220115190446.cpp +350 -0
- package/.history/src/XdoTool_20220115190504.cpp +350 -0
- package/.history/src/XdoTool_20220115190619.cpp +350 -0
- package/.history/src/tasks/ActivateWindow_20210721132815.h +15 -0
- package/.history/src/tasks/ActivateWindow_20210721133108.cpp +23 -0
- package/.history/src/tasks/ActivateWindow_20220115190504.cpp +23 -0
- package/.history/src/tasks/ActivateWindow_20220115190504.h +15 -0
- package/.history/src/tasks/ActivateWindow_20220115190527.h +19 -0
- package/.history/src/tasks/ActivateWindow_20220115190528.cpp +23 -0
- package/.history/src/tasks/GetViewportDimensions_20210721132156.h +17 -0
- package/.history/src/tasks/GetViewportDimensions_20210721132157.cpp +26 -0
- package/.history/src/tasks/GetViewportDimensions_20220115190619.cpp +26 -0
- package/.history/src/tasks/GetViewportDimensions_20220115190622.cpp +26 -0
- package/.history/src/tasks/GetViewportDimensions_20220115190623.h +21 -0
- package/CMakeLists.txt +9 -6
- package/build/cmake-js/CMakeFiles/3.22.1/CompilerIdC/CMakeCCompilerId.c +803 -0
- package/build/cmake-js/CMakeFiles/3.22.1/CompilerIdCXX/CMakeCXXCompilerId.cpp +791 -0
- package/cmake-build-debug/CMakeFiles/3.21.1/CompilerIdC/CMakeCCompilerId.c +807 -0
- package/cmake-build-debug/CMakeFiles/3.21.1/CompilerIdCXX/CMakeCXXCompilerId.cpp +795 -0
- package/out/Keyboard.js +1 -1
- package/out/Screenshooter.d.ts +2 -2
- package/out/Screenshooter.d.ts.map +1 -1
- package/out/Screenshooter.js +3 -3
- package/out/xdo.d.ts +22 -12
- package/out/xdo.d.ts.map +1 -1
- package/out/xdo.js +12 -3
- package/package.json +2 -3
- package/src/Keyboard.cpp +6 -1
- package/src/Keyboard.h +1 -0
- package/src/Screenshooter.h +0 -2
- package/src/TypeConverter.cpp +10 -3
- package/src/TypeConverter.h +1 -0
- package/src/XService.cpp +0 -4
- package/src/XService.h +1 -2
- package/src/XdoTool.cpp +48 -8
- package/src/XdoTool.h +3 -0
- package/src/main.cpp +0 -1
- package/src/tasks/ActivateWindow.cpp +3 -3
- package/src/tasks/ActivateWindow.h +6 -2
- package/src/tasks/GetActiveKeysToKeycodeList.cpp +25 -0
- package/src/tasks/GetActiveKeysToKeycodeList.h +19 -0
- package/src/tasks/GetFocusedWindow.cpp +20 -0
- package/src/tasks/GetFocusedWindow.h +17 -0
- package/src/tasks/GetImage.cpp +1 -1
- package/src/tasks/GetViewportDimensions.cpp +3 -3
- package/src/tasks/GetViewportDimensions.h +6 -2
- package/src/tasks/GetWindowSize.cpp +19 -0
- package/src/tasks/GetWindowSize.h +22 -0
- package/src/tasks/QueryKeymap.cpp +1 -1
- package/src/tasks/Sync.cpp +17 -0
- package/src/tasks/Sync.h +19 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#ifndef NODE_XDOTOOL_GETWINDOWSIZE_H
|
|
2
|
+
#define NODE_XDOTOOL_GETWINDOWSIZE_H
|
|
3
|
+
|
|
4
|
+
#include "../XdoToolTask.h"
|
|
5
|
+
|
|
6
|
+
namespace tasks {
|
|
7
|
+
|
|
8
|
+
class GetWindowSize : public XdoToolTask {
|
|
9
|
+
public:
|
|
10
|
+
GetWindowSize(xdo_t*,XID);
|
|
11
|
+
void Execute() override;
|
|
12
|
+
v8::Local<v8::Value> GetResult() override;
|
|
13
|
+
private:
|
|
14
|
+
XID id;
|
|
15
|
+
int status = XDO_SUCCESS;
|
|
16
|
+
unsigned int width, height;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
#endif //NODE_XDOTOOL_GETWINDOWSIZE_H
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
using v8::Local;
|
|
6
6
|
using v8::Value;
|
|
7
7
|
|
|
8
|
-
XTask_QueryKeymap::XTask_QueryKeymap(XKeyboard* keyboard): XTask(keyboard->
|
|
8
|
+
XTask_QueryKeymap::XTask_QueryKeymap(XKeyboard* keyboard): XTask(keyboard->display), keyboard(keyboard) {
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
void XTask_QueryKeymap::Execute() {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Created by victor on 7/22/21.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#include "Sync.h"
|
|
6
|
+
|
|
7
|
+
void XdoToolTask_Sync::Execute() {
|
|
8
|
+
XSync(display,0);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
v8::Local<v8::Value> XdoToolTask_Sync::GetResult() {
|
|
12
|
+
return Nan::Undefined();
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
XdoToolTask_Sync::XdoToolTask_Sync(Display* display) : XTask(display){
|
|
16
|
+
|
|
17
|
+
}
|
package/src/tasks/Sync.h
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Created by victor on 7/22/21.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#ifndef NODE_XDOTOOL_SYNC_H
|
|
6
|
+
#define NODE_XDOTOOL_SYNC_H
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
#include "../XTask.h"
|
|
10
|
+
|
|
11
|
+
class XdoToolTask_Sync : public XTask {
|
|
12
|
+
public:
|
|
13
|
+
explicit XdoToolTask_Sync(Display*);
|
|
14
|
+
void Execute() override;
|
|
15
|
+
v8::Local<v8::Value> GetResult() override;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
#endif //NODE_XDOTOOL_SYNC_H
|