用金山詞霸的dll檔案實現螢幕取詞 vb

2021-04-13 07:51:11 字數 820 閱讀 6767

引用xdictgrb.dll,自己到詞霸目錄找。

嚴重注意:要金山詞霸2005的版本中的dll,2003版的我未測試成功。

新建專案,在新窗體中新增3個label,名稱預設。

窗體中**如下:

option explicit

implements ixdictgrabsink

private gp as grabproxy

private sub form_load()

set gp = new grabproxy

with gp

.grabenabled = true

.grabinterval = 30

.grabmode = xdictgrabmouse

.advisegrab me

end with

end sub

private function ixdictgrabsink_queryword(byval wordstring as string, byval lcursorx as long, byval lcursory as long, byval sentencestring as string, lloc as long, lstart as long) as long

label1.caption = "(" & lcursorx & "," & lcursory & ")"

label2.caption = "當前語句:" & sentencestring

label3.caption = "當前字元:" & mid(sentencestring, lloc + 1, 1)

end function

c 實現金山詞霸一樣的螢幕取詞

c 螢幕取詞 想做金山詞霸一樣的螢幕取詞 告訴你兩個方法 第一 在金山詞霸中2005中帶了乙個xdictgrb.dll,新增引用 然後下面是 using system using system.collections.generic using system.componentmodel using...

金山詞霸」螢幕取詞技術揭密 討論稿

這篇文章最早是發在北極星論壇的一系列帖子,那時候聞怡洋 好像他也是mvp 也在那裡混 原始的帖子我已經沒有了,但不知道是誰幫我收集整理了下來 非常感謝 我用google找到了 這是我進金山之前寫的,應該不算洩露公司技術秘密吧 而且這些現在看來似乎已經有些過時了 那時討論的只是win31和win9x下...

python呼叫金山詞霸的api

python環境 requests庫 原理 通過requests的傳送get請求,然後解析返回的資料。具體的描述如上圖。import requests import json header response requests.get url params headers header date引數為...