Skip to content

Latest commit

 

History

History
837 lines (649 loc) · 18.1 KB

File metadata and controls

837 lines (649 loc) · 18.1 KB

Api index

Methods

wkeCreateWebWindow

Parameter Type description
_type int 0:normal window,1:transparent window,3:embedded window
hwnd int embedded other window's handle
x int x axis
y int y axis
width int window's width
height int window's height
Return int webview

wkeShowWindow

Parameter Type description
webview int --
_bool bool --
Return None --

wkeCreateWebView

Parameter Type description
Return int webview

wkeDestroyWebView

Parameter Type description
webview int --
Return None --

wkeMoveToCenter

Parameter Type description
webview int --
Return None --

wkeRunMessageLoop

Parameter Type description
Return None --

wkeSetUserAgentW

Parameter Type description
webview int --
ua string --
Return None --

wkeGetUserAgent

Parameter Type description
webview int --
Return None --

wkeSetDragEnable

Parameter Type description
webview int --
_bool bool --
Return None --

wkeAddPluginDirectory

Parameter Type description
webview int --
_path string --
Return None --

wkeSetNpapiPluginsEnabled

Parameter Type description
webview int --
_bool bool --
_path string --
Return None --

If you want to use flash must ues this method

wkeSetCspCheckEnable

Parameter Type description
webview int --
_bool bool --
Return None --

wkeSetDebugConfig

Parameter Type description
webview int --
debug string --
param string --
Return None --

wkeSetCspCheckEnable

Parameter Type description
webview int --
_bool bool --
Return None --

wkeSetHeadlessEnabled

Parameter Type description
webview int --
_bool bool --
Return None --

wkeSetNavigationToNewWindowEnable

Parameter Type description
webview int --
_bool bool --
Return None --

wkeSetWebViewName

Parameter Type description
webview int --
name string --
Return None --

wkeSetZoomFactor

Parameter Type description
webview int --
factor int --
Return None --

wkeSetContextMenuEnabled

Parameter Type description
webview int --
_bool bool --
Return None --

wkeSetWindowTitleW

Parameter Type description
webview int --
title string --
Return None --

wkeSetHandleOffset

Parameter Type description
webview int --
x int --
y int --
Return None --

wkeSetHandle

Parameter Type description
webview int --
hwnd int --
Return None --

wkeResize

Parameter Type description
webview int --
width int --
height int --
Return None --

wkeWidth

Parameter Type description
webview int --
Return int width

wkeHeight

Parameter Type description
webview int --
Return int height

wkeContentsWidth

Parameter Type description
webview int --
Return int contentswidth

wkeContentsHeight

Parameter Type description
webview int --
Return int contentsheight

wkeGoForward

Parameter Type description
webview int --
Return None --

wkeGoForward

Parameter Type description
webview int --
Return None --

wkeGetWindowHandle

Parameter Type description
webview int --
Return int hwnd

wkeGetViewDC

Parameter Type description
webview int --
Return int DC

wkeSetTouchEnabled

Parameter Type description
webview int --
_bool bool --
Return None --

simulate_device

Parameter Type description
webview int --
key string --
value string --
_int int --
_float float --
Return None --

bind_window

Parameter Type description
hwnd int --
_bool bool --
Return int webview

run_js

Parameter Type description
webview int --
js_code string --
Return string --

run_js_file

Parameter Type description
webview int --
file_name string --
Return string --

run_js_byframe

Parameter Type description
webview int --
frameId int --
js_code string --
isInClosure bool --
Return string --

run_js_global

Parameter Type description
webview int --
func_name string --
param_ls list --
this_func string --
Return string --

wkeSetProxy

Parameter Type description
ip string --
port string --
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
user string --
password string --
Return None --

wkeSetViewProxy

Parameter Type description
webview int --
ip string --
port string --
proxy_type int --
user string --
password string --
Return None --

wkeLoadURLW

Parameter Type description
webview int --
url string --
Return None --

wkeLoadHTMLW

Parameter Type description
webview int --
html string --
Return None --

wkeLoadFile

Parameter Type description
webview int --
file_path string --
Return None --

wkeReload

Parameter Type description
webview int --
Return None --

wkeStopLoading

Parameter Type description
webview int --
Return None --

wkeGetURL

Parameter Type description
webview int --
Return string url

wkeGetFrameUrl

Parameter Type description
webview int --
frameId int --
Return string url

wkeGetSource

Parameter Type description
webview int --
Return string html

wkeUtilSerializeToMHTML

Parameter Type description
webview int --
Return string mhtml

save_buf_data

Parameter Type description
url string --
buf int --
lens int --
Return None --

Use it in the wkeLoadUrlEndCallback method

cancel_request

Parameter Type description
job int --
url string --
ident_ls list --
Return bool --

get_js_args_val

Parameter Type description
es int --
arg_count int --
Return list args

to_js_args_val

Parameter Type description
es int --
val -- string/int/float/bool/list
Return int jsvalue

bind_func

Parameter Type description
func_name string callback funtion name
arg_count int --
param int ptr
Return None --
self-defined callback function: python_func

wkeGetCookieW

Parameter Type description
webview int --
Return string cookie

wkeSetCookie

Parameter Type description
webview int --
url string --
cookie string --
Return None --

wkeSetCookieJarPath

Parameter Type description
webview int --
path string F:\MBPython
Return None --

wkeSetCookieJarFullPath

Parameter Type description
webview int --
path string F:\MBPython\mycookie.dat
Return None --

wkeClearCookie

Parameter Type description
webview int --
Return None --

wkeFireMouseEvent

Parameter Type description
webview int --
msg int --
x int --
y int --
flags int --
Return bool --

wkeFireKeyDownEvent

Parameter Type description
webview int --
virtualKeyCode int --
flags int --
Return bool --

wkeFireKeyUpEvent

Parameter Type description
webview int --
virtualKeyCode int --
flags int --
Return bool --

wkeFireKeyPressEvent

Parameter Type description
webview int --
virtualKeyCode int --
flags int --
Return bool --

wkeFireWindowsMessage

Parameter Type description
webview int --
hwnd int --
msg int --
wParam int --
lParam int --
result int --
Return bool --

bind_webview

Parameter Type description
hwnd int --
isTransparent bool --
isZoom bool --
Return int webview

wkeOnCreateView

Parameter Type description
webview int --
param int ptr
Return None --
self-defined callback function:wkeCreateViewCallback

wkeOnWindowClosing

Parameter Type description
webview int --
param int ptr
Return None --
self-defined callback function:wkeWindowClosingCallback

wkeOnWindowDestroy

Parameter Type description
webview int --
param int ptr
Return None --
self-defined callback function:wkeWindowDestroyCallback

wkeOnPaintUpdated

Parameter Type description
webview int --
param int ptr
Return None --
self-defined callback function:wkePaintUpdatedCallback

wkeOnPaintBitUpdated

Parameter Type description
webview int --
param int ptr
Return None --
self-defined callback function:wkePaintBitUpdatedCallback

wkeOnNavigation

Parameter Type description
webview int --
param int ptr
Return None --
self-defined callback function:wkeNavigationCallback

wkeOnTitleChanged

Parameter Type description
webview int --
param int ptr
Return None --
self-defined callback function:wkeTitleChangedCallback

wkeOnURLChanged2

Parameter Type description
webview int --
param int ptr
Return None --
self-defined callback function:wkeURLChangedCallback2

wkeOnMouseOverUrlChanged

Parameter Type description
webview int --
param int ptr
Return None --
self-defined callback function:wkeMouseOverUrlChangedCallback

wkeOnAlertBox

Parameter Type description
webview int --
param int ptr
Return None --
self-defined callback function:wkeAlertBoxCallback

wkeOnConfirmBox

Parameter Type description
webview int --
param int ptr
Return None --
self-defined callback function:wkeConfirmBoxCallback

wkeOnPromptBox

Parameter Type description
webview int --
param int ptr
Return None --
self-defined callback function:wkePromptBoxCallback

wkeOnConsole

Parameter Type description
webview int --
param int ptr
Return None --
self-defined callback function:wkeConsoleCallback

wkeOnDownload

Parameter Type description
webview int --
param int ptr
Return None --
self-defined callback function:wkeDownloadCallback

wkeOnDocumentReady2

Parameter Type description
webview int --
param int ptr
Return None --
self-defined callback function:wkeDocumentReady2Callback

wkeNetOnResponse

Parameter Type description
webview int --
param int ptr
Return None --
self-defined callback function:wkeNetResponseCallback

wkeOnLoadUrlBegin

Parameter Type description
webview int --
param int ptr
Return None --
self-defined callback function:wkeLoadUrlBeginCallback

wkeOnLoadUrlEnd

Parameter Type description
webview int --
param int ptr
Return None --
self-defined callback function:wkeLoadUrlEndCallback

wkeOnLoadUrlFail

Parameter Type description
webview int --
param int ptr
Return None --
self-defined callback function:wkeLoadUrlFailCallback

wkeOnLoadingFinish

Parameter Type description
webview int --
param int ptr
Return None --
self-defined callback function:wkeLoadingFinishCallback

wkeNetGetFavicon

Parameter Type description
webview int --
param int ptr
Return None --
self-defined callback function:wkeOnNetGetFaviconCallback