Skip to content

Commit 75829f9

Browse files
committed
update
1 parent 15ba521 commit 75829f9

2 files changed

Lines changed: 73 additions & 5 deletions

File tree

MBPython/pyrunjs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def run_js(self,webview,js_code):
2222
def run_js_file(self,webview,file_name):
2323
with open(file_name) as f:
2424
js_code=f.read()
25-
self.run_js(webview,js_code)
25+
return self.run_js(webview,js_code)
2626
def run_js_byframe(self,webview,frameId,js_code,isInClosure=True):
2727

2828
js_code=js_code.encode()
Lines changed: 72 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
# window (object)
1+
# Api index
22

3-
Table of contents:
4-
* [Methods](#methods)
3+
* [window(object)-Methods](#methods)
54
* [wkeCreateWebWindow](#wkeCreateWebWindow)
65
* [wkeShowWindow](#wkeShowWindow)
76
* [wkeCreateWebView](#wkeCreateWebView)
@@ -33,7 +32,17 @@ Table of contents:
3332
* [wkeSetTouchEnabled](#wkeSetTouchEnabled)
3433
* [simulate_device](#simulate_device)
3534
* [bind_window](#bind_window)
35+
* [pyrunjs(object)-Methods](#methods)
36+
* [run_js](#run_js)
37+
* [run_js_file](#run_js_file)
38+
* [run_js_byframe](#run_js_byframe)
39+
* [run_js_global](#run_js_global)
40+
* [proxy(object)-Methods](#methods)
41+
* [wkeSetProxy](#wkeSetProxy)
42+
* [wkeSetViewProxy](#wkeSetViewProxy)
43+
3644
## Methods
45+
3746
### wkeCreateWebWindow
3847

3948
| Parameter | Type | description
@@ -302,4 +311,63 @@ If you want to use flash must ues this method
302311
| --- | --- | --- |
303312
| hwnd | int | -- |
304313
| _bool | bool | -- |
305-
| __Return__ | int | webview |
314+
| __Return__ | int | webview |
315+
316+
### run_js
317+
318+
| Parameter | Type | description
319+
| --- | --- | --- |
320+
| webview | int | -- |
321+
| js_code | string | -- |
322+
| __Return__ | string | -- |
323+
324+
### run_js_file
325+
326+
| Parameter | Type | description
327+
| --- | --- | --- |
328+
| webview | int | -- |
329+
| file_name | string | -- |
330+
| __Return__ | string | -- |
331+
332+
### run_js_byframe
333+
334+
| Parameter | Type | description
335+
| --- | --- | --- |
336+
| webview | int | -- |
337+
| frameId | int | -- |
338+
| js_code | string | -- |
339+
| isInClosure | bool | -- |
340+
| __Return__ | string | -- |
341+
342+
### run_js_global
343+
344+
| Parameter | Type | description
345+
| --- | --- | --- |
346+
| webview | int | -- |
347+
| func_name | string | -- |
348+
| param_ls | list | -- |
349+
| this_func | string | -- |
350+
| __Return__ | string | -- |
351+
352+
### wkeSetProxy
353+
354+
| Parameter | Type | description
355+
| --- | --- | --- |
356+
| ip | string | -- |
357+
| port | string | -- |
358+
| proxy_type | int | 0:WKE_PROXY_NONE,1:WKE_PROXY_HTTP,2:WKE_PROXY_SOCKS4,3:WKE_PROXY_SOCKS4A,4:WKE_PROXY_SOCKS5,5:WKE_PROXY_SOCKS5HOSTNAME |
359+
| user | string | -- |
360+
| password | string | -- |
361+
| __Return__ | None | -- |
362+
363+
### wkeSetViewProxy
364+
365+
| Parameter | Type | description
366+
| --- | --- | --- |
367+
| webview | int | -- |
368+
| ip | string | -- |
369+
| port | string | -- |
370+
| proxy_type | int | -- |
371+
| user | string | -- |
372+
| password | string | -- |
373+
| __Return__ | None | -- |

0 commit comments

Comments
 (0)