ascript 1.3.27__py3-none-win_amd64.whl

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.
Files changed (177) hide show
  1. ascript/__init__.py +8 -0
  2. ascript/hooks/__init__.py +0 -0
  3. ascript/hooks/hook-ascript.py +2 -0
  4. ascript/windows/__init__.py +29 -0
  5. ascript/windows/daos/__init__.py +0 -0
  6. ascript/windows/daos/screen.py +143 -0
  7. ascript/windows/hardware/__init__.py +5 -0
  8. ascript/windows/hardware/keyboard.py +279 -0
  9. ascript/windows/hardware/logitech_driver.py +179 -0
  10. ascript/windows/hardware/mouse.py +308 -0
  11. ascript/windows/license/__init__.py +16 -0
  12. ascript/windows/license/achttp.cp310-win_amd64.pyd +0 -0
  13. ascript/windows/license/achttp.cp311-win_amd64.pyd +0 -0
  14. ascript/windows/license/achttp.cp312-win_amd64.pyd +0 -0
  15. ascript/windows/license/achttp.cp313-win_amd64.pyd +0 -0
  16. ascript/windows/license/achttp.cp314-win_amd64.pyd +0 -0
  17. ascript/windows/license/achttp.cp38-win_amd64.pyd +0 -0
  18. ascript/windows/license/achttp.cp39-win_amd64.pyd +0 -0
  19. ascript/windows/media/__init__.py +0 -0
  20. ascript/windows/resources/__init__.py +0 -0
  21. ascript/windows/resources/libs/logitech/x64/LogitechGkeyEnginesWrapper.dll +0 -0
  22. ascript/windows/resources/libs/logitech/x86/LogitechGkeyEnginesWrapper.dll +0 -0
  23. ascript/windows/resources/templates/__init__.py +0 -0
  24. ascript/windows/resources/templates/__init__py.win.template +51 -0
  25. ascript/windows/resources/templates/build.as.win.template +14 -0
  26. ascript/windows/resources/templates/build.py +71 -0
  27. ascript/windows/resources/templates/logo_windows.ico +0 -0
  28. ascript/windows/resources/templates/windows/main.py +50 -0
  29. ascript/windows/resources/templates/windows/pyproject.toml +44 -0
  30. ascript/windows/resources/templates/windows/res/img/logo.ico +0 -0
  31. ascript/windows/screen/__init__.py +13 -0
  32. ascript/windows/screen/as_cv.py +382 -0
  33. ascript/windows/screen/canny.py +128 -0
  34. ascript/windows/screen/code_scanner.py +72 -0
  35. ascript/windows/screen/color_algorithms.py +277 -0
  36. ascript/windows/screen/find_colors.py +251 -0
  37. ascript/windows/screen/find_images.py +217 -0
  38. ascript/windows/screen/ocr/__init__.py +4 -0
  39. ascript/windows/screen/ocr/ocr.py +223 -0
  40. ascript/windows/screen/ocr/rapidocr_hook.py +301 -0
  41. ascript/windows/screen/ocrx.py +169 -0
  42. ascript/windows/screen/screen_core.py +139 -0
  43. ascript/windows/store/__init__.py +21 -0
  44. ascript/windows/system/__init__.py +8 -0
  45. ascript/windows/system/device.py +355 -0
  46. ascript/windows/system/easy_print.py +115 -0
  47. ascript/windows/system/env.py +492 -0
  48. ascript/windows/system/exception/__init__.py +1 -0
  49. ascript/windows/system/key_value.py +145 -0
  50. ascript/windows/system/pip.py +175 -0
  51. ascript/windows/system/r.py +165 -0
  52. ascript/windows/system/runtime.py +62 -0
  53. ascript/windows/tools/__init__.py +27 -0
  54. ascript/windows/tools/__main__.py +21 -0
  55. ascript/windows/tools/action.json +33 -0
  56. ascript/windows/tools/action.py +168 -0
  57. ascript/windows/tools/colors_tool.py +391 -0
  58. ascript/windows/tools/config.py +26 -0
  59. ascript/windows/tools/dumptool.py +18 -0
  60. ascript/windows/tools/eel_api.py +495 -0
  61. ascript/windows/tools/gpplug/__init__.py +0 -0
  62. ascript/windows/tools/gpplug/plug.py +70 -0
  63. ascript/windows/tools/mouse_catch.py +168 -0
  64. ascript/windows/tools/plug_manager.py +38 -0
  65. ascript/windows/tools/tool_api.py +906 -0
  66. ascript/windows/tools/tool_window.py +56 -0
  67. ascript/windows/tools/uia_worker.py +365 -0
  68. ascript/windows/tools/web/app_store_window.html +481 -0
  69. ascript/windows/tools/web/colors.html +532 -0
  70. ascript/windows/tools/web/css/screen.css +1342 -0
  71. ascript/windows/tools/web/css/viewtree.css +357 -0
  72. ascript/windows/tools/web/flot_control.html +195 -0
  73. ascript/windows/tools/web/img/ico/favicon.png +0 -0
  74. ascript/windows/tools/web/img/ico/paintpalette.png +0 -0
  75. ascript/windows/tools/web/img/svg/find_colors.svg +1 -0
  76. ascript/windows/tools/web/img/svg/find_images.svg +1 -0
  77. ascript/windows/tools/web/img/svg/illustration-6.svg +89 -0
  78. ascript/windows/tools/web/img/svg/img_default.svg +1 -0
  79. ascript/windows/tools/web/img/svg/ocr.svg +1 -0
  80. ascript/windows/tools/web/js/screen/colors.js +466 -0
  81. ascript/windows/tools/web/js/screen/gp_plug.js +108 -0
  82. ascript/windows/tools/web/js/screen/image_mouse.js +464 -0
  83. ascript/windows/tools/web/js/screen/img_view.js +558 -0
  84. ascript/windows/tools/web/js/screen/plug.js +246 -0
  85. ascript/windows/tools/web/js/screen/screen.js +690 -0
  86. ascript/windows/tools/web/js/screen/screen_api.js +778 -0
  87. ascript/windows/tools/web/js/screen/screen_maker.js +10 -0
  88. ascript/windows/tools/web/js/utils/map.js +73 -0
  89. ascript/windows/tools/web/js/utils/upload.js +157 -0
  90. ascript/windows/tools/web/js/viewtree/niv_js.js +27 -0
  91. ascript/windows/tools/web/js/viewtree/vtree.js +1510 -0
  92. ascript/windows/tools/web/libs/bootstrap/css/bootstrap.min.css +6 -0
  93. ascript/windows/tools/web/libs/bootstrap/js/bootstrap.bundle.min.js +7 -0
  94. ascript/windows/tools/web/libs/bootstrap-icons/0-circle.svg +4 -0
  95. ascript/windows/tools/web/libs/bootstrap-icons/0-square.svg +4 -0
  96. ascript/windows/tools/web/libs/bootstrap-icons/font/bootstrap-icons.css +2078 -0
  97. ascript/windows/tools/web/libs/bootstrap-icons/font/bootstrap-icons.json +2052 -0
  98. ascript/windows/tools/web/libs/bootstrap-icons/font/bootstrap-icons.min.css +5 -0
  99. ascript/windows/tools/web/libs/bootstrap-icons/font/bootstrap-icons.scss +2090 -0
  100. ascript/windows/tools/web/libs/bootstrap-icons/font/fonts/bootstrap-icons.woff +0 -0
  101. ascript/windows/tools/web/libs/bootstrap-icons/font/fonts/bootstrap-icons.woff2 +0 -0
  102. ascript/windows/tools/web/libs/feather-icons/dist/feather.min.js +13 -0
  103. ascript/windows/tools/web/libs/feather-icons/dist/icons.json +1 -0
  104. ascript/windows/tools/web/libs/jquery/core.js +399 -0
  105. ascript/windows/tools/web/libs/jquery/jquery.js +10598 -0
  106. ascript/windows/tools/web/libs/jquery/jquery.min.js +4 -0
  107. ascript/windows/tools/web/libs/jquery/jquery.min.js.zip +0 -0
  108. ascript/windows/tools/web/libs/jquery/jquery.slim.js +8495 -0
  109. ascript/windows/tools/web/libs/jquery/jquery.slim.min.js +2 -0
  110. ascript/windows/tools/web/libs/jquery-menu/jquery.contextMenu.js +2134 -0
  111. ascript/windows/tools/web/libs/jquery-menu/jquery.contextMenu.min.css +16 -0
  112. ascript/windows/tools/web/libs/jquery-zTree/css/zTreeStyle.css +97 -0
  113. ascript/windows/tools/web/libs/jquery-zTree/img/diy/1_close.png +0 -0
  114. ascript/windows/tools/web/libs/jquery-zTree/img/diy/1_open.png +0 -0
  115. ascript/windows/tools/web/libs/jquery-zTree/img/diy/2.png +0 -0
  116. ascript/windows/tools/web/libs/jquery-zTree/img/diy/3.png +0 -0
  117. ascript/windows/tools/web/libs/jquery-zTree/img/diy/4.png +0 -0
  118. ascript/windows/tools/web/libs/jquery-zTree/img/diy/5.png +0 -0
  119. ascript/windows/tools/web/libs/jquery-zTree/img/diy/6.png +0 -0
  120. ascript/windows/tools/web/libs/jquery-zTree/img/diy/7.png +0 -0
  121. ascript/windows/tools/web/libs/jquery-zTree/img/diy/8.png +0 -0
  122. ascript/windows/tools/web/libs/jquery-zTree/img/diy/9.png +0 -0
  123. ascript/windows/tools/web/libs/jquery-zTree/img/line_conn.gif +0 -0
  124. ascript/windows/tools/web/libs/jquery-zTree/img/loading.gif +0 -0
  125. ascript/windows/tools/web/libs/jquery-zTree/img/tree-node-btn.png +0 -0
  126. ascript/windows/tools/web/libs/jquery-zTree/img/zTreeStandard.gif +0 -0
  127. ascript/windows/tools/web/libs/jquery-zTree/img/zTreeStandard.png +0 -0
  128. ascript/windows/tools/web/libs/jquery-zTree/js/jquery.ztree.all.min.js +3 -0
  129. ascript/windows/tools/web/libs/treeview/css/jquery.treeview.css +79 -0
  130. ascript/windows/tools/web/libs/treeview/img/file.png +0 -0
  131. ascript/windows/tools/web/libs/treeview/img/ico_loading.png +0 -0
  132. ascript/windows/tools/web/libs/treeview/img/icon4.png +0 -0
  133. ascript/windows/tools/web/libs/treeview/img/icon5.png +0 -0
  134. ascript/windows/tools/web/libs/treeview/img/icon6.png +0 -0
  135. ascript/windows/tools/web/libs/treeview/img/py.png +0 -0
  136. ascript/windows/tools/web/libs/treeview/img/treeview-black-line.gif +0 -0
  137. ascript/windows/tools/web/libs/treeview/img/treeview-black.gif +0 -0
  138. ascript/windows/tools/web/libs/treeview/img/treeview-default-line.gif +0 -0
  139. ascript/windows/tools/web/libs/treeview/img/treeview-default.gif +0 -0
  140. ascript/windows/tools/web/libs/treeview/img/treeview-famfamfam-line.gif +0 -0
  141. ascript/windows/tools/web/libs/treeview/img/treeview-famfamfam.gif +0 -0
  142. ascript/windows/tools/web/libs/treeview/img/treeview-gray-line.gif +0 -0
  143. ascript/windows/tools/web/libs/treeview/img/treeview-gray.gif +0 -0
  144. ascript/windows/tools/web/libs/treeview/img/treeview-red-line.gif +0 -0
  145. ascript/windows/tools/web/libs/treeview/img/treeview-red.gif +0 -0
  146. ascript/windows/tools/web/libs/treeview/js/jquery.treeview.edit.js +37 -0
  147. ascript/windows/tools/web/libs/treeview/js/jquery.treeview.js +250 -0
  148. ascript/windows/tools/web/license_window.html +255 -0
  149. ascript/windows/tools/web/plugs/a.html +653 -0
  150. ascript/windows/tools/web/plugs/demo.html +52 -0
  151. ascript/windows/tools/web/plugs/find_colors.html +629 -0
  152. ascript/windows/tools/web/plugs/find_images.html +699 -0
  153. ascript/windows/tools/web/plugs/rapidocr.html +954 -0
  154. ascript/windows/tools/web/vtree.html +496 -0
  155. ascript/windows/tools/webview/assets/index-HymBPl-I.css +1 -0
  156. ascript/windows/tools/webview/assets/index-PqA_m8tL.js +17 -0
  157. ascript/windows/tools/webview/index.html +13 -0
  158. ascript/windows/ui/__init__.py +6 -0
  159. ascript/windows/ui/app_store_window.py +272 -0
  160. ascript/windows/ui/draw_window.py +231 -0
  161. ascript/windows/ui/flot_test.py +297 -0
  162. ascript/windows/ui/flot_window.py +488 -0
  163. ascript/windows/ui/license_window.py +111 -0
  164. ascript/windows/ui/web_window.py +466 -0
  165. ascript/windows/utils/__init__.py +0 -0
  166. ascript/windows/utils/node_utils.py +20 -0
  167. ascript/windows/utils/screen_utils.py +280 -0
  168. ascript/windows/window/Selector.py +1015 -0
  169. ascript/windows/window/Window.py +747 -0
  170. ascript/windows/window/__init__.py +5 -0
  171. ascript/windows/window/launcher.py +213 -0
  172. ascript/windows/window/uia_runtime.py +26 -0
  173. ascript-1.3.27.dist-info/METADATA +41 -0
  174. ascript-1.3.27.dist-info/RECORD +177 -0
  175. ascript-1.3.27.dist-info/WHEEL +5 -0
  176. ascript-1.3.27.dist-info/entry_points.txt +2 -0
  177. ascript-1.3.27.dist-info/top_level.txt +1 -0
@@ -0,0 +1,10 @@
1
+
2
+
3
+
4
+ function add_point_maker(){
5
+
6
+ }
7
+
8
+ function add_rect_maker(){
9
+
10
+ }
@@ -0,0 +1,73 @@
1
+ /**
2
+ *
3
+ * 描述:js实现的map方法
4
+ * @returns {Map}
5
+ */
6
+
7
+
8
+
9
+ function Map() {
10
+ var each = function (fn) {
11
+ if (typeof fn != 'function') {
12
+ return;
13
+ }
14
+ var len = this.arr.length;
15
+ for (var i = 0; i < len; i++) {
16
+
17
+ var k = this.arr[i].key;
18
+ fn(k, this.arr[i].value, i);
19
+ }
20
+ }
21
+
22
+ var struct = function (key, value) {
23
+ this.key = key;
24
+ this.value = value;
25
+ };
26
+ // 添加map键值对
27
+ var put = function (key, value) {
28
+ for (var i = 0; i < this.arr.length; i++) {
29
+ if (this.arr[i].key === key) {
30
+ this.arr[i].value = value;
31
+ return;
32
+ }
33
+ };
34
+ this.arr[this.arr.length] = new struct(key, value);
35
+ };
36
+ // 根据key获取value
37
+ var get = function (key) {
38
+ for (var i = 0; i < this.arr.length; i++) {
39
+ if (this.arr[i].key === key) {
40
+ return this.arr[i].value;
41
+ }
42
+ }
43
+ return null;
44
+ };
45
+ // 根据key删除
46
+ var remove = function (key) {
47
+ var v;
48
+ for (var i = 0; i < this.arr.length; i++) {
49
+ v = this.arr.pop();
50
+ if (v.key === key) {
51
+ continue;
52
+ }
53
+ this.arr.unshift(v);
54
+ }
55
+ };
56
+ // 获取map键值对个数
57
+ var size = function () {
58
+ return this.arr.length;
59
+ };
60
+ // 判断map是否为空
61
+ var isEmpty = function () {
62
+ return this.arr.length <= 0;
63
+ };
64
+ this.arr = new Array();
65
+ this.get = get;
66
+ this.put = put;
67
+ this.each = each;
68
+ this.remove = remove;
69
+ this.size = size;
70
+ this.isEmpty = isEmpty;
71
+ }
72
+
73
+
@@ -0,0 +1,157 @@
1
+
2
+
3
+ function uploadFile(dom,upDir,callback,zipDir) {
4
+ $(dom).trigger('click');
5
+ if (!$(dom).data('hasChangeEvent')) {
6
+ $(dom).change(function (e) {
7
+ // alert($('#fileupload')[0].files.length)
8
+ if ($(dom)[0].files.length >= 1) {
9
+ var formData = new FormData();
10
+ var fName = $(dom)[0].files[0].name;
11
+ // var fName = new Date().getTime()+".png"
12
+ formData.append("data", e.target.files[0]);
13
+ // formData.append("path", uploadDir+fName);
14
+
15
+ if(upDir.endsWith('/')){
16
+
17
+ }else{
18
+ upDir = upDir+"/";
19
+ }
20
+
21
+ zipDirStr = "";
22
+
23
+ if(zipDir!=undefined && zipDir.length>0){
24
+ zipDirStr = "&zip="+zipDir+fName.split('.')[0];
25
+ }
26
+
27
+ $.ajax({
28
+ url: baseUrl+'/api/file/upload?path='+(upDir+fName)+zipDirStr,
29
+ type: 'POST',
30
+ cache: false,
31
+ data: formData,
32
+ processData: false,
33
+ contentType: false
34
+ }).done(function (res) {
35
+ // $("#upload_pic").text("导入图片");
36
+ // addPicCacheListItem(fName,false)
37
+ if(callback){
38
+ callback();
39
+ }
40
+
41
+ }).fail(function (res) {
42
+ // getFilesList();
43
+ // $("#upload_pic").text("导入图片");
44
+ alert("上传失败")
45
+ });
46
+ }else{
47
+ $("#upload_pic").text("导入图片");
48
+ }
49
+
50
+ });
51
+ $(dom).data('hasChangeEvent', true);
52
+ }
53
+ }
54
+
55
+ function upload_zip(dom,upDir,callback,zipDir) {
56
+ $(dom).trigger('click');
57
+ if (!$(dom).data('hasChangeEvent')) {
58
+ $(dom).change(function (e) {
59
+ // alert($('#fileupload')[0].files.length)
60
+ if ($(dom)[0].files.length >= 1) {
61
+ var formData = new FormData();
62
+ var fName = $(dom)[0].files[0].name;
63
+ // var fName = new Date().getTime()+".png"
64
+ formData.append("data", e.target.files[0]);
65
+ // formData.append("path", uploadDir+fName);
66
+
67
+ if(upDir.endsWith('/')){
68
+
69
+ }else{
70
+ upDir = upDir+"/";
71
+ }
72
+
73
+ zipDirStr = "";
74
+
75
+ if(zipDir!=undefined && zipDir.length>0){
76
+ zipDirStr = "&zip="+zipDir+fName.split('.')[0];
77
+ }
78
+
79
+ $.ajax({
80
+ url: baseUrl+'/api/file/upload?path='+(upDir)+"&zipfile=true",
81
+ type: 'POST',
82
+ cache: false,
83
+ data: formData,
84
+ processData: false,
85
+ contentType: false
86
+ }).done(function (res) {
87
+ // $("#upload_pic").text("导入图片");
88
+ // addPicCacheListItem(fName,false)
89
+ if(callback){
90
+ callback();
91
+ }
92
+
93
+ }).fail(function (res) {
94
+ // getFilesList();
95
+ // $("#upload_pic").text("导入图片");
96
+ alert("上传失败")
97
+ });
98
+ }else{
99
+ $("#upload_pic").text("导入图片");
100
+ }
101
+
102
+ });
103
+ $(dom).data('hasChangeEvent', true);
104
+ }
105
+ }
106
+
107
+ function uploadUiFile(dom,upDir,callback,zipDir) {
108
+ $(dom).trigger('click');
109
+ if (!$(dom).data('hasChangeEvent')) {
110
+ $(dom).change(function (e) {
111
+ // alert($('#fileupload')[0].files.length)
112
+ if ($(dom)[0].files.length >= 1) {
113
+ var formData = new FormData();
114
+ var fName = $(dom)[0].files[0].name;
115
+ // var fName = new Date().getTime()+".png"
116
+ formData.append("data", e.target.files[0]);
117
+ // formData.append("path", uploadDir+fName);
118
+
119
+ if(upDir.endsWith('/')){
120
+
121
+ }else{
122
+ upDir = upDir+"/";
123
+ }
124
+
125
+ zipDirStr = "";
126
+
127
+ if(zipDir!=undefined && zipDir.length>0){
128
+ zipDirStr = "&zip="+zipDir;
129
+ }
130
+
131
+ $.ajax({
132
+ url: baseUrl+'/api/file/upload?path='+(upDir+fName)+zipDirStr,
133
+ type: 'POST',
134
+ cache: false,
135
+ data: formData,
136
+ processData: false,
137
+ contentType: false
138
+ }).done(function (res) {
139
+ // $("#upload_pic").text("导入图片");
140
+ // addPicCacheListItem(fName,false)
141
+ if(callback){
142
+ callback();
143
+ }
144
+
145
+ }).fail(function (res) {
146
+ // getFilesList();
147
+ // $("#upload_pic").text("导入图片");
148
+ alert("上传失败")
149
+ });
150
+ }else{
151
+ $("#upload_pic").text("导入图片");
152
+ }
153
+
154
+ });
155
+ $(dom).data('hasChangeEvent', true);
156
+ }
157
+ }
@@ -0,0 +1,27 @@
1
+ function setIframeHeight(iframe) {
2
+ if (iframe) {
3
+ var iframeWin = iframe.contentWindow || iframe.contentDocument.parentWindow;
4
+ if (iframeWin.document.body) {
5
+ iframe.height = iframeWin.document.documentElement.scrollHeight || iframeWin.document.body.scrollHeight;
6
+ }
7
+ }
8
+ };
9
+
10
+ window.onload = function () {
11
+ setIframeHeight(document.getElementById('external-frame'));
12
+ };
13
+
14
+ function skip(i){
15
+ if(i==1){
16
+ top.location.href= "http://"+location.host;
17
+ }
18
+ if(i==2){
19
+ top.location.href= "http://"+location.host+"/create";
20
+ }
21
+ if(i==3){
22
+ top.location.href= "http://"+location.host+"/dump";
23
+ }
24
+ if(i==4){
25
+ top.location.href= "http://"+location.host+"/colortool";
26
+ }
27
+ }