[go: up one dir, main page]

WO2012022262A1 - 一种即时通讯工具及其实现便捷搜索的方法 - Google Patents

一种即时通讯工具及其实现便捷搜索的方法 Download PDF

Info

Publication number
WO2012022262A1
WO2012022262A1 PCT/CN2011/078556 CN2011078556W WO2012022262A1 WO 2012022262 A1 WO2012022262 A1 WO 2012022262A1 CN 2011078556 W CN2011078556 W CN 2011078556W WO 2012022262 A1 WO2012022262 A1 WO 2012022262A1
Authority
WO
WIPO (PCT)
Prior art keywords
text
search
message
command
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2011/078556
Other languages
English (en)
French (fr)
Inventor
常青
窦枫
谢鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to EP11817789.8A priority Critical patent/EP2608063B1/en
Priority to KR1020127026593A priority patent/KR20130003007A/ko
Priority to JP2013508363A priority patent/JP5564614B2/ja
Publication of WO2012022262A1 publication Critical patent/WO2012022262A1/zh
Priority to US13/676,950 priority patent/US20130073661A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation

Definitions

  • the present invention relates to the field of Internet technologies, and in particular, to an instant messaging tool and a method for implementing the convenient search. Background of the invention
  • Instant messaging tools enable peer-to-peer communication on the Internet through peer-to-peer technology, even group chats with a few friends.
  • instant messaging tools have been accepted by most netizens and become an indispensable communication tool for users.
  • the present invention provides an instant messaging tool and a method for implementing a convenient search for implementing a convenient search in an instant messaging tool.
  • An instant messaging tool includes a convenient search launching module, a text selection module, and a search module;
  • An instant messaging tool for implementing a convenient search method comprising:
  • the instant messaging tool receives a command to enable the convenient search function, listens for a command to start selecting a text, and a command to end the selected text, and initiates a search for the text content upon receiving a command to end the selected text.
  • the present invention can successfully select a command to start the search for the selected text content by receiving a command to start the convenient search function, and then listening for the command to select the text.
  • the search for the text content is started immediately after the text is output, and since the command to select the text is monitored by the instant messaging tool, and the instant messaging tool starts the search for the text content immediately after listening to the command to end the selection of the text, there is no need to open it separately.
  • a dedicated search tool does not require window switching between instant messaging tools and other search tools, so it enables easy searching and user convenience.
  • FIG. 1 is a structural diagram of an instant messaging tool provided by the present invention.
  • FIG. 2 is a flow chart of a method for implementing a convenient search by the instant messaging tool provided by the present invention. Mode for carrying out the invention
  • FIG. 1 is a structural diagram of an instant messaging tool provided by the present invention.
  • the instant messaging tool includes a convenient search launch module 101, text Module 102 and search module 103 are selected.
  • the convenient search startup module 101 receives a command to start a convenient search function.
  • the text selection module 102 listens for commands that begin to select text and ends the selection of text.
  • the command to start the convenient search function may be a trigger command of a specific hot key on the keyboard, or a trigger command of a specific button on the instant messaging tool interface.
  • the command to start selecting text is to press the left mouse button, and the command to end the selection of the text is to release the left mouse button.
  • the instant messaging user drags the text content by pressing the left mouse button in the text area until Release the left mouse button, the instant messaging tool monitors the operation of releasing the left mouse button, and the operation of releasing the right mouse button is used as a command to start the search, and it is determined whether the text content is selected, and if so, the selected text content is immediately selected. Search.
  • the instant messaging tool judges by mouse positioning, control positioning and interface call. No text content selected. Specifically, after the instant messaging tool listens to the operation of releasing the left mouse button, first locates the form where the mouse is located, and then locates the text area control according to the control tree of the form, wherein the text area includes the message display area and/or The message input area is then obtained by the interface provided by the text area control, wherein the text content selected by the user can be distinguished from other unselected text contents by highlighting or the like.
  • the search module 103 After receiving the text content, the search module 103 composes the URL by using the text content as a keyword, and directly searches by using the composed URL. From the user operation point of view, as long as the user drags the text into the search module 103, the user can start immediately. Search process.
  • the search module 103 is configured to form the URL and send the URL to the search engine, as long as the keyword and the URL format of the search engine are known, and the URL is used to form a URL that meets the requirements of the search engine.
  • the search work can be done by a search engine.
  • the existing method of searching in the browser needs to rely on the webpage script to process the keywords input by the user, and then submit the processed result to the search engine of the background for searching, wherein the webpage script provides limited interaction capability.
  • After receiving the keyword input by the user it is necessary to further monitor the command to start the search, for example, the operation of pressing the enter key or clicking the operation of the specific button is used as a command to start the search. From the perspective of the user operation, the user is required to use the keyword. After entering the search box, press the Enter key or click the specific button to start the search.
  • the search method provided by the present invention is more convenient than the existing method of searching in a browser.
  • the search module can be displayed in the right sidebar of the instant messaging tool, and then the text content in other programs such as the word document is dragged to the search module, the search The module does not need to listen to the command to start the search, and can immediately start the search for the text content. From the user operation point of view, after the user drags the text content to the search module, there is no need to click other commands such as a carriage return. The search module immediately initiates a search for the textual content upon receipt of the textual content.
  • the instant messaging tool of the present invention further includes a message pump and an exit module.
  • the invention adopts a new message pump method for message interception, so as to ensure that the search module for realizing the convenient search function in the instant communication tool can not be disturbed by the operation of changing the message direction such as window switching, and can acquire the convenient search process.
  • the message ensures a smooth and convenient search process.
  • the message pump receives all the messages of the current process of the instant messaging tool after the convenient search startup module 101 receives the startup command, and sends a message for the convenient search process to the text selection module 102 or the exit. Module, returning other messages to the current process to continue the distribution; receiving the exit indication, closing the message pump.
  • the search module 103 receives the exit indication and closes the search module 103.
  • the exiting module receives a message from the message pumping exiting the convenient search process, and sends an exit indication to the message pump, the text selection module 102, and the search module 103.
  • FIG. 2 is a flow chart of a method for implementing a convenient search by the instant messaging tool provided by the present invention. As shown in Figure 2, the method includes:
  • step 202 the instant messaging tool listens for a command to start selecting text and a command to end selection of text.
  • the message for the convenient search process includes a command to start selecting text, a command to end selection of text, and a message to exit the convenient search process.
  • the message exiting the convenient search process includes: closing the message of the current chat window, the exit message of the operating system, the message pressing the ESC key, the trigger message of the right mouse button, and/or the trigger message of the executable control.
  • the message fetched from the message sequence intercepted by the message pump is a trigger message of the left mouse button, if the trigger position of the left mouse button is located not in the text area, and it is determined that the left mouse button triggers the executable control, then Exit the convenient search.
  • the initiating search for the textual content includes:
  • the following is a specific example of a method for conveniently searching the instant messaging tool provided by the present invention.
  • the example has the following steps:
  • Step 1 Start the wording state: During the chat, the user can start the "word” by button or hotkey, and then the mouse style changes to the search state, prompting the user to be in the wording state.
  • Step 2 Perform wording: The user can search by selecting keywords in the message display area or the message input area of the chat window, and the selection state starts from the trigger of receiving the left button of the mouse, and is released when the left button is received. Ends when triggered. The text highlighting changes in the message area will match the user's word selection.
  • Step 3 Search for impressions: When the user releases the left mouse button to end the selection and does select a paragraph of text, the chat window displays the search results in the right sidebar area.
  • the search module provided by the instant messaging tool can be further extended, specifically: the search module will receive the text content as a command to start the search, immediately after receiving the text content. Launching a search for the textual content. That is, after the search result page is displayed in the right sidebar of the chat window, the user can drag and drop the text to be searched in any other window (such as a word text document or a webpage) into the search module of the right sidebar by using a text drag operation. In order to maximize the use of the region to facilitate user search operations.
  • the present invention limits the current process to only one word state at the same time, and the problem of multiple startups can be avoided by the anti-reentry protection.
  • the instant messaging tool needs to listen to the closing event of the current chat window, and when listening to the closing event, close the module for implementing the convenient search: due to the convenient search status and current
  • the chat window is associated with the need to exit this state when the chat window is closed, so the instant messaging tool needs to listen for the window's close event.
  • the instant messaging tool needs to change the normal mouse style to the predetermined "search style":
  • search style In order to let the user know that the current chat window is in a convenient search state, the mouse style needs to be changed, specifically by specific
  • the API interface replaces the user's mouse style with a "search style" that is specific to the word search.
  • the instant messaging tool can also draw a floating label (Tips) in the lower right corner of the mouse to follow the movement of the mouse, and the label displays an introduction to the wording operation.
  • Ton floating label
  • the instant messaging tool listens to all mouse and keyboard messages of the process by opening a dedicated message pump, regardless of whether the current operating focus is on the module for convenient search, so there is no convenient search due to the switching of the operating focus between windows. The process does not work properly.
  • the instant messenger can close the floating tag and change the mouse style to "normal mode,".
  • the instant messaging tool listens to the command to end the selection of the text
  • the text content selected by the user is extracted, and the text content is copied to the search module in the right sidebar.
  • the text module receives the text content
  • the text content is used as the key. Words are searched.
  • search module if the search module has not been started when the instant messaging tool listens to the command to end the selection of the text, the search module needs to be turned on, and if the search module is enabled, the text content selected by the user is directly sent to the The search module searches.
  • the special message pump mentioned in the present invention is one of the core modules of the present invention:
  • the special message pump needs to filter each system message, which is not related to the convenient search function.
  • the message is sent back to the main thread message pump for dispatch; for the message related to this function, it will be processed by the special message pump before deciding whether to send it.
  • the message exiting the convenient search state may not be returned to the current process, and other messages related to this function need to be returned to the current process.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明实施例公开了一种即时通讯工具及其实现便捷搜索的方法。该即时通讯工具包括便捷搜索启动模块、文本选择模块和搜索模块;所述便捷搜索启动模块,接收启动便捷搜索功能的命令;所述文本选择模块,监听开始选择文本的命令和结束选择文本的命令,根据所述开始选择文本的命令和结束选择文本的命令选择出文本内容;所述搜索模块,监听结束选择文本的命令,在所述文本选择模块成功选择出文本内容时,启动对所述文本内容的搜索。应用本发明可以在即时通讯工具中实现便捷搜索。

Description

一种即时通讯工具及其实现便捷搜索的方法
技术领域
本发明涉及互联网技术领域, 尤其涉及一种即时通讯工具及其实现 便捷搜索的方法。 发明背景
即时通信工具通过点对点的技术来实现互联网上的即时沟通, 甚至 是几个朋友的群聊。 即时通讯工具发展到今天, 已经被大多数的网民所 接受, 成为用户必不可少的通讯工具。
在当前用户利用即时通讯工具聊天的过程中, 常常会出现好友谈及 一些当前用户并不熟悉的专业术语或新潮词汇, 此时当前用户必须开启 一个浏览器锁定到常用的搜索网址, 然后键入关键字开始搜索, 整个过 程既耗时也非常繁瑣, 而且需要在两个应用层的窗口之间切换。 发明内容
有鉴于此, 本发明提供了一种即时通讯工具及其实现便捷搜索的方 法, 以便在即时通讯工具中实现便捷搜索。
本发明的技术方案具体是这样实现的:
一种即时通讯工具, 该即时通讯工具包括便捷搜索启动模块、 文本 选择模块和搜索模块;
所述便捷搜索启动模块, 接收启动便捷搜索功能的命令; 所述文本选择模块, 监听开始选择文本的命令和结束选择文本的命 所述搜索模块, 监听结束选择文本的命令, 在所述文本选择模块成 功选择出文本内容时, 启动对所述文本内容的搜索。
一种即时通讯工具实现便捷搜索的方法, 该方法包括:
即时通讯工具接收开启便捷搜索功能的命令, 监听开始选择文本的 命令和结束选择文本的命令, 在收到结束选择文本的命令时, 启动对所 述文本内容的搜索。
由上述技术方案可见, 本发明通过在收到启动便捷搜索功能的命令 后, 监听选择文本的命令, 并以结束选择文本的命令作为启动对选择出 的文本内容进行搜索的命令, 可以在成功选择出文本后立即启动对文本 内容的搜索, 并且, 由于由即时通讯工具监听选择文本的命令、 并由即 时通讯工具在监听到结束选择文本的命令时立即启动对文本内容的搜 索, 不需要另外打开专门的搜索工具, 也不需要在即时通讯工具和其他 搜索工具间进行窗口切换, 因此能够实现便捷搜索, 方便用户。 附图简要说明
图 1是本发明提供的即时通讯工具结构图。
图 2是本发明提供的即时通讯工具实现便捷搜索的方法流程图。 实施本发明的方式
本发明提出的即时通讯工具及其进行便捷搜索的方法, 旨在为用 户的聊天过程提供一种便捷的搜索陌生术语或新潮词汇的聊天辅助 功能,通过本发明, IM用户可以在 IM聊天窗口中通过划选关键词实 现边聊边搜索。
图 1是本发明提供的即时通讯工具结构图。
如图 1 所示, 该即时通讯工具包括便捷搜索启动模块 101、 文本 选择模块 102和搜索模块 103。
便捷搜索启动模块 101 , 接收启动便捷搜索功能的命令。
文本选择模块 102, 监听开始选择文本的命令和结束选择文本的命 谷。
搜索模块 103, 监听结束选择文本的命令, 在文本选择模块 102成 功选择出文本内容时, 启动对所述文本内容的搜索。
其中, 启动便捷搜索功能的命令可以是键盘上特定热键的触发命 令, 也可以是即时通讯工具界面上特定按钮的触发命令。
具体地, 文本选择模块 102, 监听在即时通讯工具的文本区输入的 开始选择文本的命令和结束选择文本的命令, 所述文本区包括消息显示 区和 /或消息输入区。
相应地, 搜索模块 103, 在文本选择模块 102从所述文本区成功选 择出文本内容时, 启动对所述文本内容的搜索。
其中, 即时通讯工具的文本区包括消息展示区和 /或消息输入区, 在 开启便捷搜索功能后, 即时通讯工具可以监测即时通讯用户是否从文本 区中划选了文本内容, 如果监测到结束选择文本的命令且即时通讯用户 从文本区中划选出了文本内容, 则立即启动对所述文本内容的搜索。
典型地, 所述开始选择文本的命令是按下鼠标左键, 所述结束选择 文本的命令是释放鼠标左键, 换言之, 即时通讯用户通过在文本区内按 下鼠标左键拖选文本内容直至释放鼠标左键, 即时通讯工具监测到释放 鼠标左键的操作后, 将该释放鼠标右键的操作作为启动搜索的命令, 判 断是否选择出了文本内容, 如果是, 则立即对选择出的文本内容进行搜 索。
其中, 即时通讯工具通过鼠标定位、 控件定位和接口调用来判断是 否选择出了文本内容。 具体地, 即时通讯工具监听到释放鼠标左键的操 作后, 首先定位鼠标所在位置的窗体, 进而根据该窗体的控件树定位到 文本区控件, 其中的文本区包括消息显示区和 /或消息输入区, 然后通过 该文本区控件提供的接口获取用户划选的文本内容, 其中, 用户划选的 文本内容可以通过高亮显示等方式与其他未被划选的文本内容相区分。
当然, 也可以预先将其他操作信息定义为开始选择文本的命令和结 令的形式不予限定, 例如, 可以将特定的键盘操作、 或特定的语音命令 确定为开始选择文本的命令、 或者结束选择文本的命令。
本发明还可以进一步对搜索模块 103进行扩展, 使得将即时通讯工 具当前进程以外的任意其他程序或窗口中的文本内容拖拽或者拷贝至 搜索模块 103, 搜索模块 103在接收到文本内容后立即启动对所述文本 内容的搜索。
具体地, 搜索模块 103收到所述文本内容后, 以该文本内容为关键 词组成 URL, 利用组成的 URL直接进行搜索, 从用户操作角度讲, 只 要用户将文本拖进搜索模块 103即可立即启动搜索过程。 其中, 只要知 道关键词以及搜索引擎的 URL格式, 即可利用该 URL组成符合所述搜 索引擎要求的 URL, 本发明中, 搜索模块 103用于组成所述 URL, 将 URL发给搜索引擎, 具体的搜索工作可以由搜索引擎完成。
现有在浏览器中进行搜索的方法需要依赖于网页脚本对用户输入 的关键字进行处理, 然后将处理的结果提交给后台的搜索引擎服务器进 行搜索, 其中的网页脚本所提供的交互能力有限, 在收到用户输入的关 键字后, 需要进一步监听启动搜索的命令, 例如将按下回车键的操作或 者点击特定按钮的操作作为启动搜索的命令, 从用户操作角度讲, 需要 用户将关键字输入搜索框后, 按回车键或者点击特定按钮才能启动搜 索。 显然, 与现有在浏览器中进行搜索的方法相比, 本发明提供的搜索 方法更加便捷。 例如, 在即时通讯工具中开启了便捷搜索功能后, 可以 在即时通讯工具的右侧边栏显示搜索模块, 然后将其他程序例如 word 文档中的文本内容拖拽至所述搜索模块后, 所述搜索模块不需要监听启 动搜索的命令, 即可立即启动对所述文本内容的搜索, 从用户操作角度 讲, 在用户将文本内容拖拽至所述搜索模块后, 不需要点击回车等其他 命令, 搜索模块在收到所述文本内容后, 立即启动对所述文本内容的搜 索。
为了使即时通讯工具的便捷搜索功能能够顺利进行或退出, 本发明 的即时通讯工具中还包括消息泵和退出模块。
由于默认情况下, Windows操作系统的鼠标和键盘消息只会派发给 当前有焦点的窗体, 为保证整个划词过程不被用户的窗口切换等类似改 变 Windows消息走向的操作所干扰。需要在整个过程中拦截当前进程的 所有消息, 以保证操作的顺利进行以及划词状态的正常退出。
本发明采用自起新的消息泵的方法进行消息拦截, 以保证即时通讯 工具中用于实现便捷搜索功能的搜索模块能够不被窗口切换等改变消 息走向的操作干扰, 能够获取属于便捷搜索过程的消息, 保证便捷搜索 过程的顺利进行。
具体地, 所述消息泵, 在便捷搜索启动模块 101接收到所述启动命 令后, 接收即时通讯工具当前进程的所有消息, 将用于便捷搜索过程的 消息发给文本选择模块 102或者所述退出模块, 将其他消息送还当前进 程继续分发; 接收退出指示, 关闭消息泵。
文本选择模块 102, 接收所述消息泵发来的开始选择文本的命令和 结束选择文本的命令; 接收退出指示, 关闭文本选择模块 102。
搜索模块 103 , 接收退出指示, 关闭搜索模块 103。 所述退出模块, 接收所述消息泵发来的退出便捷搜索过程的消息, 向消息泵、 文本选择模块 102和搜索模块 103发送退出指示。
其中, 所述退出便捷搜索过程的消息包括: 关闭当前聊天窗口的消 息、 操作系统的退出消息、 按下 ESC键的消息、 鼠标右键的触发消息和 可执行控件的触发消息。
图 2是本发明提供的即时通讯工具实现便捷搜索的方法流程图。 如图 2所示, 该方法包括:
步骤 201 , 即时通讯工具接收开启便捷搜索功能的命令。
步骤 202, 即时通讯工具监听开始选择文本的命令和结束选择文本 的命令。
步骤 203, 即时通讯工具在收到结束选择文本的命令时, 启动对所 述文本内容的搜索。 启动专门用于便捷搜索的消息泵, 接收即时通讯工具当前进程的所有消 息, 识别出用于便捷搜索过程的消息, 根据该用于便捷搜索过程的消息 进行便捷搜索, 将其他消息送还当前进程继续分发。
其中, 所述用于便捷搜索过程的消息包括开始选择文本的命令、 结 束选择文本的命令和退出便捷搜索过程的消息。
所述退出便捷搜索过程的消息包括: 关闭当前聊天窗口的消息、 操 作系统的退出消息、 按下 ESC键的消息、 鼠标右键的触发消息和 /或可 执行控件的触发消息。 其中, 当从消息泵拦截的消息序列中取出的消息 是鼠标左键的触发消息时, 如果定位出鼠标左键的触发位置不在文本 区, 且判断出鼠标左键触发的是可执行控件, 则退出便捷搜索。
所述启动对所述文本内容的搜索包括:
以该文本内容为关键词组成 URL, 将组成的 URL发给搜索引擎, 搜索引擎根据该 URL直接进行搜索。
下面举具体的例子对本发明所提供的即时通讯工具进行便捷搜索 的方法进行示例性的说明, 该例子具备包括如下的步骤:
步骤 1 , 启动划词状态: 用户在聊天过程中可以通过按钮或者热键 启动 "划词 ", 然后鼠标样式变为搜索状态, 提示用户当前为划词状态。
步骤 2: 进行划词: 用户可以通过在聊天窗口的消息展示区或是消 息输入区划选关键词进行搜索, 划选状态从收到鼠标左键的按下触发开 始, 在收到左键释放的触发时结束。 消息区的文本高亮变化会配合用户 的选词操作。
步骤 3: 搜索展示: 当用户释放鼠标左键结束选词, 并且确实选中 了一段文字以后, 聊天窗口会在右侧边栏区域展示搜索结果。
为了进一步方便即时通讯用户进行便捷搜索, 还可以对即时通讯工 具所提供的搜索模块做进一步的扩展, 具体为: 该搜索模块将收到文本 内容作为启动搜索的命令, 在收到文本内容后立即启动对所述文本内容 的搜索。 即, 在聊天窗口右侧边栏展示了搜索结果页面后, 用户可以通 过文本拖拽操作将任何其他窗口 (例如 word文本文档或网页) 中需要 搜索的文本直接拖进右侧边栏的搜索模块进行搜索, 以求最大限度的利 用该区域方便用户的搜索操作。
下面对保证即时通讯工具的便捷搜索方法能够顺利进行的技术特 征进行详细介绍:
由于同时启动两个以上的划词搜索会产生很多逻辑沖突, 因此本发 明限制当前进程只能同时存在一个划词状态, 具体可以通过防重入保护 来规避多次启动的问题。
即时通讯工具需要监听当前聊天窗口的关闭事件, 并在监听到所述 关闭事件时, 关闭用于实现便捷搜索的模块: 由于便捷搜索状态与当前 聊天窗口相关联, 需要在聊天窗口关闭时退出这种状态, 所以即时通讯 工具需要监听窗口的关闭事件。
即时通讯工具在启动便捷搜索功能后, 需要将普通的鼠标样式变更 为预定的 "搜索样式": 为了让用户了解到当前的聊天窗口为便捷搜索 状态, 需要将鼠标样式做变更, 具体可以通过特定的 API接口将用户的 鼠标样式换成划词搜索时专用的 "搜索样式"。
为了更好的辅助用户进行划词搜索操作, 即时通讯工具还可以在鼠 标的右下角绘制一个浮动标签(Tips )跟随鼠标的移动, 该标签上显示 有对划词操作进行的筒单介绍。
即时通讯工具通过开启专门的消息泵, 无论当前操作焦点是否在用 于进行便捷搜索的模块上, 都监听该进程的所有鼠标和键盘消息, 因此 不会由于操作焦点在窗口间切换而导致便捷搜索过程无法正常进行。
在划词状态结束后, 也就是即时通讯工具监听到结束选择文本的命 令后, 即时通讯工具可以关闭浮动标签, 并将鼠标样式变更为 "正常样 式,,。
即时通讯工具监听到结束选择文本的命令后, 提取用户所选的文本 内容, 将该文本内容拷贝至右侧边栏内的搜索模块, 该搜索模块收到该 文本内容后, 以该文本内容作为关键词进行搜索。
其中, 如果在即时通讯工具监听到结束选择文本的命令时, 尚未启 动搜索模块, 则需要开启所述搜索模块, 如果所述搜索模块已开启, 则 将用户所选的文本内容直接送入所述搜索模块进行搜索。
其中, 本发明所提到的专门的消息泵是本发明的核心模块之一: 在 便捷搜索状态下, 该专门的消息泵对每一条系统消息都需要做筛选, 对 与便捷搜索功能不相关的消息, 再次送还主线程消息泵进行派发; 对于 与本功能相关的消息, 会先由该专门的消息泵进行处理, 再决定是否送 还给当前进程,一般地,退出便捷搜索状态的消息可以不送还当前进程, 其他与本功能相关的消息需要送还当前进程。
以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本 发明的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包 含在本发明的保护范围之内。

Claims

权利要求书
1、 一种即时通讯工具, 其特征在于, 该即时通讯工具包括便捷搜 索启动模块、 文本选择模块和搜索模块;
所述便捷搜索启动模块, 接收启动便捷搜索功能的命令; 所述文本选择模块, 监听开始选择文本的命令和结束选择文本的命 谷,
所述搜索模块, 监听结束选择文本的命令, 在所述文本选择模块成 功选择出文本内容时, 启动对所述文本内容的搜索。
2、 根据权利要求 1所述的即时通讯工具, 其特征在于,
所述文本选择模块, 监听在即时通讯工具的文本区输入的开始选择 文本的命令和结束选择文本的命令,所述文本区包括消息显示区和 /或消 息输入区。
3、 根据权利要求 2所述的即时通讯工具, 其特征在于,
所述开始选择文本的命令是按下鼠标左键, 所述结束选择文本的命 令是释放鼠标左键。
4、 根据权利要求 3所述的即时通讯工具, 其特征在于,
所述文本选择模块, 监听释放鼠标左键的操作, 定位鼠标所在位置 的窗体, 根据该窗体的控件树定位到文本区控件, 然后通过该文本区控 件提供的接口获取选择出的文本内容。
5、 根据权利要求 1所述的即时通讯工具, 其特征在于,
所述搜索模块, 用于接收即时通讯工具当前进程以外的任意其他进 程或窗口中的文本内容, 在接收到文本内容后, 立即启动对所述文本内 容的搜索。
6、 根据权利要求 1或 5所述的即时通讯工具, 其特征在于, 所述搜索模块,以所述文本内容为关键词组成 URL,将组成的 URL 发给搜索引擎, 所述搜索引擎根据该 URL直接进行搜索。
7、 根据权利要求 1 所述的即时通讯工具, 其特征在于, 所述即时 通讯工具进一步包括消息泵和退出模块;
所述消息泵, 在所述便捷搜索启动模块接收到所述启动便捷搜索功 能的命令后, 接收即时通讯工具当前进程的所有消息, 将用于便捷搜索 过程的消息发给所述文本选择模块或者退出模块, 将其他消息送还当前 进程继续分发; 接收退出指示, 关闭消息泵;
所述文本选择模块, 根据所述消息泵发来的开始选择文本的命令和 结束选择文本的命令, 记录选择出的文本内容; 接收退出指示, 关闭文 本选择模块;
所述搜索模块, 接收退出指示, 关闭搜索模块;
所述退出模块, 接收所述消息泵发来的退出便捷搜索过程的消息, 向消息泵、 文本选择模块和搜索模块发送退出指示。
8、 根据权利要求 6所述的即时通讯工具, 其特征在于, 所述退出 便捷搜索过程的消息包括: 关闭当前聊天窗口的消息、 操作系统的退出 消息、 按下 ESC键的消息、 点击鼠标右键的消息和 /或点击可执行控件 的消息。
9、 一种即时通讯工具实现便捷搜索的方法, 其特征在于, 该方法 包括:
即时通讯工具接收开启便捷搜索功能的命令, 监听开始选择文本的 命令和结束选择文本的命令, 根据所述开始选择文本的命令和结束选择 文本的命令选择出文本内容, 在收到结束选择文本的命令时, 启动对所 述文本内容的搜索。
10、 根据权利要求 9所述的方法, 其特征在于, 所述监听开始选择 文本的命令和结束选择文本的命令包括:
启动消息泵, 接收即时通讯工具当前进程的所有消息, 识别出用于 便捷搜索过程的消息, 根据该用于便捷搜索过程的消息进行便捷搜索, 将其他消息送还当前进程继续分发。
11、 根据权利要求 10 所述的方法, 其特征在于, 所述用于便捷搜 索过程的消息包括开始选择文本的命令、 结束选择文本的命令和退出便 捷搜索过程的消息。
12、 根据权利要求 11 所述的方法, 其特征在于, 所述退出便捷搜 索过程的消息包括: 关闭当前聊天窗口的消息、 操作系统的退出消息、 按下 ESC键的消息、 点击鼠标右键的消息和 /或点击可执行控件的消息。
13、 根据权利要求 9所述的方法, 其特征在于, 该方法还包括: 接收即时通讯工具当前进程以外的任意其他进程或窗口中的文本 内容, 在接收到文本内容后, 立即启动对所述文本内容的搜索。
14、 根据权利要求 9或 13所述的方法, 其特征在于, 所述启动对 所述文本内容的搜索包括:
以该文本内容为关键词组成 URL, 将组成的 URL发给搜索引擎, 搜索引擎根据该 URL直接进行搜索。
PCT/CN2011/078556 2010-08-18 2011-08-18 一种即时通讯工具及其实现便捷搜索的方法 Ceased WO2012022262A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
EP11817789.8A EP2608063B1 (en) 2010-08-18 2011-08-18 Instant communication tool and method for same to accomplish convenient search
KR1020127026593A KR20130003007A (ko) 2010-08-18 2011-08-18 인스턴트 메신저 및 인스턴트 메신저에 의해 간편 검색을 수행하는 방법
JP2013508363A JP5564614B2 (ja) 2010-08-18 2011-08-18 インスタント通信ツールおよびインスタント通信ツールが便利検索を実現する方法
US13/676,950 US20130073661A1 (en) 2010-08-18 2012-11-14 Instant messenger and method for performing convenient search by instant messenger

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2010102589188A CN102375841A (zh) 2010-08-18 2010-08-18 一种即时通讯工具及其实现便捷搜索的方法
CN201010258918.8 2010-08-18

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US13/676,950 Continuation US20130073661A1 (en) 2010-08-18 2012-11-14 Instant messenger and method for performing convenient search by instant messenger

Publications (1)

Publication Number Publication Date
WO2012022262A1 true WO2012022262A1 (zh) 2012-02-23

Family

ID=45604780

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/078556 Ceased WO2012022262A1 (zh) 2010-08-18 2011-08-18 一种即时通讯工具及其实现便捷搜索的方法

Country Status (6)

Country Link
US (1) US20130073661A1 (zh)
EP (1) EP2608063B1 (zh)
JP (1) JP5564614B2 (zh)
KR (1) KR20130003007A (zh)
CN (1) CN102375841A (zh)
WO (1) WO2012022262A1 (zh)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130159849A1 (en) * 2011-12-20 2013-06-20 Keng Fai Lee Jump to Collaborator Cursor
CN102594734A (zh) * 2012-03-24 2012-07-18 上海量明科技发展有限公司 用以启动即时通信交互界面的方法、终端和系统
CN102945243B (zh) * 2012-09-20 2018-05-04 百度在线网络技术(北京)有限公司 一种基于浏览内容的联系信息识别方法
KR102072113B1 (ko) * 2012-10-17 2020-02-03 삼성전자주식회사 사용자 단말 장치 및 제어 방법
KR102108412B1 (ko) * 2013-05-08 2020-05-28 에스케이플래닛 주식회사 메시징 서비스 기반의 대화 중 검색 기능 제공 방법, 및 이를 위한 단말
KR101537555B1 (ko) * 2013-11-29 2015-07-20 (주)넷피아 인스턴트 메신저 상의 메시지 바로 검색 지원 방법
KR101607919B1 (ko) * 2014-10-16 2016-04-01 네이버 주식회사 메신저에 검색 기능을 제공하고 검색 결과를 정렬하는 방법과 시스템 및 기록 매체
US10296513B2 (en) * 2014-12-08 2019-05-21 Samsung Electronics Co., Ltd. Accessing messaging applications in search
CN105992171A (zh) * 2015-02-13 2016-10-05 阿里巴巴集团控股有限公司 一种文本信息的处理方法和装置
KR101665969B1 (ko) * 2015-03-25 2016-10-13 주식회사 카카오 인터랙션을 통해 키워드를 검색하는 단말, 서버 및 방법
CA2939395A1 (en) * 2016-08-15 2016-10-17 Richard S. Brown Method and device for invoking a search from a text message
CN111488504B (zh) * 2019-01-29 2024-06-11 广州金山移动科技有限公司 一种信息搜索的方法、装置、计算机存储介质及终端
KR102252393B1 (ko) * 2020-04-29 2021-05-14 에스케이플래닛 주식회사 메시징 서비스 기반의 대화 중 검색 기능 제공 방법, 및 이를 위한 단말

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1723458A (zh) * 2002-12-11 2006-01-18 皇家飞利浦电子股份有限公司 用于利用视频内容获得文本关键字或短语以提供至基于网络资源的内容相关链接的方法和系统
CN101243449A (zh) * 2005-06-16 2008-08-13 文字点击有限公司 用于从计算机显示的内容中自动启动搜索查询的方法和系统

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2710547B2 (ja) * 1994-02-15 1998-02-10 インターナショナル・ビジネス・マシーンズ・コーポレイション グラフィカル・ユーザ・インターフェース
JPH0854999A (ja) * 1994-08-11 1996-02-27 Mitsubishi Electric Corp 画像表示システム
US6009459A (en) * 1997-01-10 1999-12-28 Microsoft Corporation Intelligent automatic searching for resources in a distributed environment
GB9711022D0 (en) * 1997-05-28 1997-07-23 Rank Xerox Ltd Text/image selection from document images
US5982370A (en) * 1997-07-18 1999-11-09 International Business Machines Corporation Highlighting tool for search specification in a user interface of a computer system
US20030206759A1 (en) * 2002-05-02 2003-11-06 Emerson Harry E. Computer keyboard numeric keypad having calculator function keys
US7363295B2 (en) * 2004-04-19 2008-04-22 Yahoo! Inc. Techniques for inline searching in an instant messenger environment
US7590699B2 (en) * 2005-06-23 2009-09-15 Microsoft Corporation Instant messaging with built-in search
US7730081B2 (en) * 2005-10-18 2010-06-01 Microsoft Corporation Searching based on messages
US7925716B2 (en) * 2005-12-05 2011-04-12 Yahoo! Inc. Facilitating retrieval of information within a messaging environment
US20080201434A1 (en) * 2007-02-16 2008-08-21 Microsoft Corporation Context-Sensitive Searches and Functionality for Instant Messaging Applications
JP2009230472A (ja) * 2008-03-24 2009-10-08 Vle:Kk 情報検索方法および情報検索システム
CN101446969A (zh) * 2008-12-15 2009-06-03 腾讯科技(深圳)有限公司 拖拽搜索的方法及系统

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1723458A (zh) * 2002-12-11 2006-01-18 皇家飞利浦电子股份有限公司 用于利用视频内容获得文本关键字或短语以提供至基于网络资源的内容相关链接的方法和系统
CN101243449A (zh) * 2005-06-16 2008-08-13 文字点击有限公司 用于从计算机显示的内容中自动启动搜索查询的方法和系统

Also Published As

Publication number Publication date
JP5564614B2 (ja) 2014-07-30
KR20130003007A (ko) 2013-01-08
EP2608063A1 (en) 2013-06-26
EP2608063A4 (en) 2015-01-21
JP2013532317A (ja) 2013-08-15
CN102375841A (zh) 2012-03-14
US20130073661A1 (en) 2013-03-21
EP2608063B1 (en) 2019-01-09

Similar Documents

Publication Publication Date Title
WO2012022262A1 (zh) 一种即时通讯工具及其实现便捷搜索的方法
WO2015027789A1 (zh) 语言控制方法、装置及终端
CN101551744B (zh) 一种提供子任务向导信息的方法及装置
WO2016180260A1 (zh) 即时通讯窗口显示的方法,装置及计算机可读介质
CN111813912B (zh) 一种人机对话方法、装置、设备及存储介质
WO2013075575A1 (zh) 显示未读消息的方法和系统
CN104238904B (zh) 一种显示界面滑动的方法及移动终端
WO2009018772A1 (en) Method and system for managing dialog information in instant communication terminal
WO2016015438A1 (zh) 用于移动智能终端的操作方法、操作装置、移动智能终端和非易失性计算机存储介质
CN111627436A (zh) 一种语音控制的方法及装置
WO2013181935A1 (zh) 一种提示字符输入的方法和电子设备
WO2012130032A1 (zh) 一种融合通信的交互方法、装置和终端
CN111490927B (zh) 一种显示消息的方法、装置及设备
CN107357578B (zh) 一种基于移动终端的社交软件的快捷搜索方法及装置
CN109634501B (zh) 电子书批注添加方法、电子设备及计算机存储介质
CN117130524B (zh) 交互方法、装置、电子设备以及存储介质
CN114827068B (zh) 消息发送方法、装置、电子设备及可读存储介质
CN113094143A (zh) 跨应用消息发送方法、装置和电子设备、可读存储介质
WO2017012416A2 (zh) 快捷操作方法、快捷操作装置和终端
CN104111728A (zh) 基于操作手势的语音指令输入方法及电子设备
CN103176698B (zh) 在输入法面板上动态显示执行操作按钮的方法及系统
CN114422465A (zh) 消息处理方法、装置、设备和存储介质
CN103123566B (zh) 电子设备及其文字输入方法
CN107861706A (zh) 一种语音指令的响应方法及装置
US10291766B2 (en) Information processing method and apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11817789

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2011817789

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 20127026593

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2013508363

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE