Equipment interactive communication method, device and storage medium

文档序号:1888555 发布日期:2021-11-26 浏览:7次 中文

阅读说明:本技术 设备交互通信方法、装置及存储介质 (Equipment interactive communication method, device and storage medium ) 是由 闫树彩 闫树楠 闫树雪 闫树灿 闫树晴 于 2021-11-01 设计创作,主要内容包括:本发明提供的一种设备交互通信方法、装置及存储介质,涉及交互技术,通过检测用户的编辑信息中是否含有预设字符;若有,实时检测用户在预设字符后方输入的字符,并将字符作为关键词;基于关键词,对用户端的正文信息进行检索处理,获取正文信息中的所有预测信息,预测信息包括关键词,以及关键词之前的多个字符;将所有预测信息发送给用户端展示,并接收用户对其中一个预测信息的选择操作,将光标定位至预测信息的关键词之后的技术方案,解决了用户不能准确地将光标移动到目标位置,不便于用户操作,用户体验较差的问题,提升了用户体验。(The invention provides a device interactive communication method, a device and a storage medium, which relate to the interactive technology and are characterized in that whether preset characters are contained in editing information of a user is detected; if yes, detecting characters input by a user behind the preset characters in real time, and taking the characters as keywords; based on the keywords, carrying out retrieval processing on the text information of the user side to obtain all prediction information in the text information, wherein the prediction information comprises the keywords and a plurality of characters in front of the keywords; the technical scheme that all the prediction information is sent to the user side for display, the selection operation of the user on one prediction information is received, and the cursor is positioned behind the keyword of the prediction information is achieved, so that the problems that the user cannot accurately move the cursor to the target position, the user operation is inconvenient, and the user experience is poor are solved, and the user experience is improved.)

1. A device interactive communication method, comprising:

detecting whether the editing information of the user contains preset characters;

if yes, detecting characters input by a user behind the preset characters in real time, and taking the characters as keywords;

based on the keywords, carrying out retrieval processing on the text information of the user side to obtain all prediction information in the text information, wherein the prediction information comprises the keywords and a plurality of characters in front of the keywords;

and sending all the prediction information to a user side for display, receiving the selection operation of the user on one prediction information, and positioning the cursor behind the keyword of the prediction information.

2. The method of claim 1, wherein sending the prediction information to a client presentation comprises:

and sending the prediction information to a user side, and displaying the prediction information by the user side based on a preset rule.

3. The method of claim 2, wherein the predetermined rule is to display different prediction information from top to bottom based on the sequence of the prediction information in the text information.

4. The method of claim 1, wherein the retrieving the text information of the user side based on the keyword to obtain all the prediction information in the text information comprises:

taking the keyword as a reference, and acquiring a plurality of characters in front of the keyword;

and splicing the characters and the keywords to obtain the prediction information.

5. The method of claim 4, wherein obtaining a plurality of characters preceding a keyword comprises:

at least 5 characters preceding the keyword are obtained.

6. The method of claim 5, wherein obtaining a plurality of characters preceding a keyword comprises:

the 10 characters preceding the keyword are obtained.

7. The method of claim 1, wherein detecting whether the editing information of the user contains the preset characters comprises:

and traversing the editing information of the user by using the preset characters, and judging whether the editing information contains the preset characters.

8. The method of claim 1, further comprising:

and receiving the clicking operation of the user on the preset characters in the editing information, and adding the preset characters into the editing information.

9. An apparatus for device-to-device communication, comprising:

the judging module is used for detecting whether the editing information of the user contains preset characters;

the detection module is used for detecting the character input by the user behind the preset character in real time if the character exists, and taking the character as a keyword;

the prediction module is used for retrieving and processing the text information of the user side based on the keywords and acquiring all prediction information in the text information, wherein the prediction information comprises the keywords and a plurality of characters in front of the keywords;

and the positioning module is used for sending all the prediction information to a user side for displaying, receiving the selection operation of the user on one prediction information, and positioning the cursor behind the keyword of the prediction information.

10. A storage medium, characterized in that the storage medium has stored thereon a computer program for implementing the method of any one of claims 1 to 8 when the computer program is executed by a processor.

Technical Field

The present invention relates to interactive technologies, and in particular, to a device interactive communication method, apparatus, and storage medium.

Background

Currently, users of communication devices are increasing, and large-screen, touch-controlled electronic devices for interactive communication are becoming popular.

Taking a mobile terminal as an example, a large-screen touch mobile terminal has been developed to enable a user to acquire more information more conveniently. However, as the number of hard keys of a large-screen touch mobile terminal is reduced, operations such as control of an operation prompt identifier of a cursor, invocation of a function of the mobile terminal, and the like become inconvenient.

For example, in an existing touch mobile terminal, when a user edits or operates a content, for example, delete, paste copy, etc., the user often needs to click a corresponding position on the touch mobile terminal with a finger to move a cursor to a designated position to implement the operation. However, when the content displayed by the touch mobile terminal is more and the text is smaller, the accuracy of the finger operation is poor, and the cursor cannot be accurately moved to the target position, so that the user operation is inconvenient and the user experience is poor.

Disclosure of Invention

The embodiment of the invention provides a device interactive communication method, a device and a storage medium, which solve the problems that a user cannot accurately move a cursor to a target position, the user operation is inconvenient, and the user experience is poor, and improve the user experience.

In a first aspect of embodiments of the present invention, a device interaction communication method is provided, including:

detecting whether the editing information of the user contains preset characters;

if yes, detecting characters input by a user behind the preset characters in real time, and taking the characters as keywords;

based on the keywords, carrying out retrieval processing on the text information of the user side to obtain all prediction information in the text information, wherein the prediction information comprises the keywords and a plurality of characters in front of the keywords;

and sending all the prediction information to a user side for display, receiving the selection operation of the user on one prediction information, and positioning the cursor behind the keyword of the prediction information.

Optionally, in a possible implementation manner of the first aspect, sending the prediction information to a user side for display includes:

and sending the prediction information to a user side, and displaying the prediction information by the user side based on a preset rule.

Optionally, in a possible implementation manner of the first aspect, the preset rule is that different pieces of prediction information are displayed in an up-to-down arrangement based on a front-to-back order of the prediction information in the text information.

Optionally, in a possible implementation manner of the first aspect, based on the keyword, the text information of the user side is retrieved, and all prediction information in the text information is obtained, including:

taking the keyword as a reference, and acquiring a plurality of characters in front of the keyword;

and splicing the characters and the keywords to obtain the prediction information.

Optionally, in a possible implementation manner of the first aspect, the obtaining a plurality of characters before the keyword includes:

at least 5 characters preceding the keyword are obtained.

Optionally, in a possible implementation manner of the first aspect, the obtaining a plurality of characters before the keyword includes:

the 10 characters preceding the keyword are obtained.

Optionally, in a possible implementation manner of the first aspect, detecting whether the editing information of the user contains a preset character includes:

and traversing the editing information of the user by using the preset characters, and judging whether the editing information contains the preset characters.

Optionally, in a possible implementation manner of the first aspect, the method further includes:

and receiving the clicking operation of the user on the preset characters in the editing information, and adding the preset characters into the editing information.

In a second aspect of the embodiments of the present invention, an apparatus for device-to-device communication is provided, including:

the judging module is used for detecting whether the editing information of the user contains preset characters;

the detection module is used for detecting the character input by the user behind the preset character in real time if the character exists, and taking the character as a keyword;

the prediction module is used for retrieving and processing the text information of the user side based on the keywords and acquiring all prediction information in the text information, wherein the prediction information comprises the keywords and a plurality of characters in front of the keywords;

and the positioning module is used for sending all the prediction information to a user side for displaying, receiving the selection operation of the user on one prediction information, and positioning the cursor behind the keyword of the prediction information.

In a third aspect of the embodiments of the present invention, an apparatus for device-to-device communication is provided, including: memory, a processor and a computer program, the computer program being stored in the memory, the processor running the computer program to perform the first aspect of the invention and the various possible methods involved in the first aspect of the invention.

In a fourth aspect of the embodiments of the present invention, a storage medium is provided, in which a computer program is stored, and the computer program is used for implementing the first aspect of the present invention and various methods that may be involved in the first aspect of the present invention when the computer program is executed by a processor.

The invention provides a device interactive communication method, a device and a storage medium, which detect whether the editing information of a user contains preset characters; if yes, detecting characters input by a user behind the preset characters in real time, and taking the characters as keywords; based on the keywords, carrying out retrieval processing on the text information of the user side to obtain all prediction information in the text information, wherein the prediction information comprises the keywords and a plurality of characters in front of the keywords; the technical scheme includes that all prediction information is sent to a user side for display, selection operation of a user on one prediction information is received, a cursor is positioned behind a keyword of the prediction information, follow-up operation of a server can be triggered by a preset character, the keyword is input behind the preset character to pre-position the cursor, the server inquires the keyword in text information, one or more prediction information is obtained based on the keyword, then the user selects the prediction information, and the cursor is moved to the rear side of the selection, so that the cursor is accurately positioned, the problems that the user cannot accurately move the cursor to a target position, operation is not convenient for the user, user experience is poor are solved, and user experience is improved.

Drawings

Fig. 1 is a schematic flow chart of device interactive communication provided by an embodiment of the present invention;

FIG. 2 is a schematic diagram of an interface provided by an embodiment of the present invention;

FIG. 3 is a schematic view of another interface provided by an embodiment of the present invention;

FIG. 4 is a schematic structural diagram of an apparatus for interactive communication according to an embodiment of the present invention;

fig. 5 is a schematic diagram of a hardware structure of a device-to-device communication device according to an embodiment of the present invention.

In the figure, 1, an editing information input area; 2. a text information input area; 40. a device interaction communication means; 41. a judgment module; 42. a detection module; 43. a prediction module; 44. a positioning module; 50. a device interaction communication device; 51. a processor; 52. a memory; 53. a bus.

Detailed Description

The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.

Referring to fig. 1, which is a flowchart illustrating a device interactive communication method according to an embodiment of the present invention, an execution main body of the method shown in fig. 1 may be a software and/or hardware device. The execution subject of the present application may include, but is not limited to, at least one of: user equipment, network equipment, etc. The user equipment may include, but is not limited to, a computer, a smart phone, a Personal Digital Assistant (PDA), the above mentioned electronic equipment, and the like. The network device may include, but is not limited to, a single network server, a server group of multiple network servers, or a cloud of numerous computers or network servers based on cloud computing, wherein cloud computing is one type of distributed computing, a super virtual computer consisting of a cluster of loosely coupled computers. The present embodiment does not limit this. The device interactive communication method comprises steps S101 to S103, and specifically comprises the following steps:

s101, detecting whether the editing information of a user contains preset characters;

if yes, detecting the character input by the user behind the preset character in real time, and taking the character as a keyword.

Firstly, the above words are contrasted and explained, referring to fig. 2, the information of the editing information input area 1 is the information being edited by the user, the information is not yet added to the text information, and the text information input area 2 is already located in the chat frame to be sent, and is already in a stable state compared with the editing information.

The server detects whether the editing information of the user contains the preset characters in real time, if so, the server triggers subsequent operation, namely, the server acquires the characters input by the user after the preset payment, and then the characters are used as keywords.

The preset character may be "L", for example, when L is input in the editing information input by the user, the server starts to perform detection of the character input after "L", for example, the information input by the user is "L terminal", and then "terminal" is a keyword.

Whether the editing information of the user contains the preset characters or not is detected, and the editing information of the user can be subjected to traversal processing by the preset characters, so that whether the editing information contains the preset characters or not is judged.

S102, based on the keywords, retrieving and processing the text information of the user side, and acquiring all prediction information in the text information, wherein the prediction information comprises the keywords and a plurality of characters in front of the keywords.

The method may include acquiring a plurality of characters before the keyword based on the keyword, and performing a stitching process on the plurality of characters and the keyword to acquire the prediction information, where at least 5 characters before the keyword is acquired may be acquired, and for example, 10 characters may be acquired.

Referring to fig. 3, the information input by the user is exemplified by "L terminal", and the text information is "to make the user more conveniently obtain more information, and a large-screen touch mobile terminal has been developed. However, as the large screen touch mobile terminal has fewer hard keys. . . "by way of example, the following is illustrated:

if the keywords are 'terminal', the server searches the text information based on the 'terminal' to find the prediction information, and if the characters are 10 characters, the prediction information is 'large screen touch mobile terminal is developed', and 'the mobile terminal is touched with the large screen'.

S103, all the prediction information is sent to a user side for displaying, the selection operation of the user on one prediction information is received, and the cursor is positioned behind the keyword of the prediction information.

Specifically, after the prediction information is found, the prediction information is displayed to the user, for example, the prediction information of "a large-screen touch mobile terminal is developed" and "the prediction information is displayed to the user along with the large-screen touch mobile terminal".

If a user wants to move the cursor to the rear of the 'large screen touch mobile terminal is developed', the user clicks the prediction information of the 'large screen touch mobile terminal is developed', and the method is convenient and quick.

Wherein, send prediction information to user's side and demonstrate, include:

and sending the prediction information to a user side, and displaying the prediction information by the user side based on a preset rule, wherein the preset rule is that different prediction information is displayed from top to bottom based on the front and back sequence of the prediction information in the text information.

It is understood that the user may observe a plurality of top and bottom prediction information, and the prediction information may be used for the user to perform the clicking operation.

According to the embodiment, the follow-up operation of the server can be triggered by the aid of the preset characters, the cursor is pre-positioned by inputting the keywords behind the preset characters, the server inquires the keywords in the text information and obtains one or more pieces of prediction information based on the keywords, then the user selects the prediction information and moves the cursor to the rear of the cursor, so that the cursor is accurately positioned, the problems that the user cannot accurately move the cursor to the target position, the user operation is inconvenient and the user experience is poor are solved, and the user experience is improved.

In practical application, the click operation of the user on the preset character in the editing information can be received, and the preset character is added to the editing information. It can be understood that if the user wants to input the preset character into the text information, the user can add the preset character into the text information by clicking the preset character, so that the requirement that the user normally needs to input the preset character is met.

Referring to fig. 4, which is a schematic structural diagram of an apparatus interactive communication device according to an embodiment of the present invention, the apparatus interactive communication device 40 includes:

the judging module 41 is configured to detect whether the editing information of the user contains preset characters;

the detection module 42 is used for detecting the characters input by the user behind the preset characters in real time if the characters exist, and taking the characters as keywords;

the prediction module 43 is configured to perform search processing on the text information of the user side based on the keyword, and obtain all prediction information in the text information, where the prediction information includes the keyword and a plurality of characters before the keyword;

and the positioning module 44 is configured to send all the prediction information to a user side for display, receive a selection operation of the user on one of the prediction information, and position the cursor behind a keyword of the prediction information.

The apparatus in the embodiment shown in fig. 4 can be correspondingly used to perform the steps in the method embodiment shown in fig. 1, and the implementation principle and technical effect are similar, which are not described herein again.

Referring to fig. 5, which is a schematic diagram of a hardware structure of an apparatus interactive communication apparatus according to an embodiment of the present invention, the apparatus interactive communication apparatus 50 includes: a processor 51, a memory 52 and computer programs; wherein

A memory 52 for storing a computer program, which may also be a flash memory (flash). The computer program is, for example, an application program, a functional module, or the like that realizes the above method.

A processor 51 for executing the computer program stored in the memory to implement the steps performed by the apparatus in the above method. Reference may be made in particular to the description relating to the preceding method embodiment.

Alternatively, the memory 52 may be separate or integrated with the processor 51.

When the memory 52 is a device separate from the processor 51, the apparatus may further include:

a bus 53 for connecting the memory 52 and the processor 51.

The present invention also provides a storage medium, in which a computer program is stored, and the computer program is used for implementing the methods provided by the above-mentioned various embodiments when being executed by a processor.

The present invention also provides a program product comprising execution instructions stored in a storage medium. The at least one processor of the device may read the execution instructions from the storage medium, and the execution of the execution instructions by the at least one processor causes the device to implement the methods provided by the various embodiments described above.

Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种输入操作方法以及输入系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类