Method and device for determining picture where mouse is located, equipment and storage medium
By analyzing the screen configuration file of the distributed control system of the nuclear power plant and processing of candidate position coordinates, the convenience of determining the screen where the mouse is located is achieved, the problems of high failure rate and unstable performance caused by traditional hardware dependence are solved, and the reliability of the system is improved and convenience.
Patent Information
- Application Number
- CN202411402499.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-09
- Publication Date
- 2025-01-03
AI Technical Summary
In the distributed control system of nuclear power plants, the traditional mouse positioning method relies on a large number of specific hardware, resulting in high hardware failure rate, unstable performance, and inconvenient third-party equipment or system to read screen location information.
By analyzing the screen configuration file of the distributed control system, the candidate position coordinates of the target mouse are obtained, and the target screen data is determined based on the screen configuration data, and sent to the server to forward to the user side to determine the screen where the mouse is located.
No specific hardware equipment is required, which improves the convenience of third-party equipment or systems to read screen location information, and reduces the hardware failure rate and performance instability.
Smart Images

Figure CN119248374A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to the field of nuclear power plant data communication technology, and specifically to a method, device, equipment and storage medium for determining a screen where a mouse is located. Background Art
[0002] The full range simulator of nuclear power plants is used for operator training and license examination. During use, the instructor needs to grasp the trainee's operation process in real time to accurately evaluate the training and examination results. In the case of multiple screens of DCS (Distributed Control System), it is impossible to monitor all DCS screen operation steps at the same time. Since all screens need to be operated with a mouse, only monitoring the screen information where the mouse is located can achieve a good DCS multi-screen monitoring effect. This requires real-time acquisition of the screen where the mouse is located and accurate positioning of the mouse position of each workstation.
[0003] Traditional mouse positioning methods use a large number of hardware devices such as encoders, decoders and other specific devices. The mouse coordinates are obtained by capturing the information transmitted by the specific mouse, and the mouse movement position is calculated and determined. In the case of multiple screens, the indicator light prompts the screen where the mouse is located. Traditional technology relies on a large number of specific hardware and specific mice, and the hardware layout structure is complex. Due to the long-term operation of the equipment, the hardware failure rate is high, and there are problems such as unstable hardware performance, which brings inconvenience to third-party devices or systems to read the screen position information. Summary of the invention
[0004] The present application provides a method, device, equipment and storage medium for determining the screen where the mouse is located, so as to facilitate a third-party device or system to read the screen position information.
[0005] According to one aspect of the present application, a method for determining a screen where a mouse is located is provided, the method being applied to a client of a distributed control system in a full-range simulator of a nuclear power plant; the distributed control system further comprises a server and a user; the server is respectively connected to the client and the user in communication; the method comprises:
[0006] Parsing the screen configuration file of the distributed control system to obtain screen configuration data of candidate displays in the distributed control system, and acquiring candidate position coordinates of the target mouse in the distributed control system;
[0007] Determining target screen data of the target mouse according to the screen configuration data and the candidate position coordinates;
[0008] The target screen data is sent to the server, so that the server forwards the target screen data to the user.
[0009] According to another aspect of the present application, a device for determining a screen where a mouse is located is provided, the device being configured at a client of a distributed control system in a full-range simulator of a nuclear power plant; the distributed control system further comprising a server and a user end; the server end is respectively connected to the client and the user end in communication; the device comprises:
[0010] A data acquisition module, used to parse the screen configuration file of the distributed control system, obtain the screen configuration data of the candidate display in the distributed control system, and obtain the candidate position coordinates of the target mouse in the distributed control system;
[0011] A data determination module, used for determining target screen data of the target mouse according to the screen configuration data and the candidate position coordinates;
[0012] The data sending module is used to send the target screen data to the server end, so that the server end forwards the target screen data to the user end.
[0013] According to another aspect of the present application, an electronic device is provided, the electronic device comprising:
[0014] one or more processors;
[0015] A memory for storing one or more programs;
[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement any one of the methods for determining the screen where the mouse is located provided in the embodiments of the present application.
[0017] According to another aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, any one of the methods for determining the screen where the mouse is located provided in the embodiments of the present application is implemented.
[0018] This application parses the screen configuration file of the distributed control system to obtain the screen configuration data of the candidate display in the distributed control system, and obtains the candidate position coordinates of the target mouse in the distributed control system; determines the target screen data of the target mouse according to the screen configuration data and the candidate position coordinates; and sends the target screen data to the server so that the server forwards the target screen data to the user end. The above technical solution does not rely on specific hardware devices, which helps to improve the convenience of third-party devices or systems reading screen position information. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1is a flowchart of a method for determining a screen where a mouse is located according to Embodiment 1 of the present application;
[0020] Figure 2 is a flowchart of a method for determining a screen where a mouse is located according to Embodiment 2 of the present application;
[0021] Figure 3 It is a structural schematic diagram of a device for determining a screen where a mouse is located according to Embodiment 3 of the present application;
[0022] Figure 4 It is a structural schematic diagram of an electronic device that implements the method for determining the screen where the mouse is located according to an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0025] In addition, it should be noted that in the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of relevant data such as screen configuration files and screen configuration data involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0026] Embodiment 1
[0027] Figure 1This is a flowchart of a method for determining the screen where the mouse is located according to the first embodiment of the present application. This embodiment can be applied to the situation of determining the location information of the mouse in the client of the distributed control system in the full-scale simulator of a nuclear power plant. It can be executed by a device for determining the screen where the mouse is located. The device for determining the screen where the mouse is located can be implemented in the form of hardware and / or software. The device for determining the screen where the mouse is located can be configured in the client of the distributed control system in the full-scale simulator of a nuclear power plant. The distributed control system also includes a server and a user. The server is connected to the client and the user respectively. Figure 1 As shown, the method includes:
[0028] S110, parsing the screen configuration file of the distributed control system to obtain screen configuration data of the candidate display in the distributed control system, and acquiring the candidate position coordinates of the target mouse in the distributed control system.
[0029] Among them, a distributed control system refers to a control system used for industrial automation, which monitors and controls equipment or processes through multiple interconnected control units; it can realize distributed processing of data acquisition, monitoring and control; it should be noted that the distributed control system of the present application specifically refers to the distributed control system of the full-range simulator of a nuclear power plant. A screen configuration file refers to a file containing information such as the layout, resolution, content, etc. of each display and screen in the system; these configuration files are usually saved in a specific format for easy parsing and application. Candidate displays refer to currently available or selected displays that can display different screens of the system. The screen configuration data contains detailed configuration information of each candidate display, such as the size, position, content, etc. of each screen. The target mouse refers to the mouse operated by the user in the distributed control system, and its position needs to be determined in order to perform corresponding interface interaction. The candidate position coordinates refer to the absolute position coordinates of the target mouse in the distributed control system, which means that in a fixed coordinate system, the position of a point is represented by a set of specific values, which are measured relative to the origin of the coordinate system.
[0030] Optionally, the candidate position coordinates may be obtained by obtaining the candidate position coordinates of the target mouse at preset time intervals.
[0031] The preset time interval is artificially preset through a large number of experiments or experience values.
[0032] Optionally, the candidate position coordinates may be acquired by monitoring the current state of the target mouse in real time, and acquiring the candidate position coordinates of the target mouse when a change in the current state is detected.
[0033] Exemplarily, the client continuously tracks the state information of the target mouse, including its movement, clicking, scrolling and other operations; whenever the state is updated, the system obtains the candidate position coordinates of the mouse; alternatively, the client may periodically obtain and update the state and candidate position coordinates of the mouse according to a preset time interval.
[0034] S120 , determining target screen data of the target mouse according to the screen configuration data and the candidate position coordinates.
[0035] The target screen data refers to the specific screen content and related information where the target mouse is located; this is the screen where the mouse is located that the user needs to view; the target screen data may include the target display, target screen and target position coordinates.
[0036] Since there may be multiple candidate displays in a distributed control system, optionally, before determining the target screen data of the target mouse, the target display where the target mouse is currently located can be determined from the candidate displays based on the screen configuration data and the candidate position coordinates; and the target screen data of the target mouse can be determined based on the candidate position coordinates and the screen configuration data corresponding to the target display.
[0037] S130: Send the target screen data to the server, so that the server forwards the target screen data to the user.
[0038] The server is a server that receives, processes and forwards data. In this application, the server receives the target screen data and forwards it to the end user. The user end refers to the end user's device or interface, which receives the target screen data from the server for background display.
[0039] Exemplarily, the server may be in a standby state to receive target screen data sent by the client at any time; when the target screen data sent by the client is identified, the target screen data is sent to the user end.
[0040] In an optional implementation, after determining the target screen data of the target mouse, if there is historical screen data of the target mouse, the target screen data is compared with the historical screen data to determine the screen change data; the screen change data is sent to the server so that the server forwards the screen change data to the user end.
[0041] The historical screen data refers to the target screen data of the target mouse determined by the client last time. The screen change data refers to the difference or change part identified by comparing the target screen data with the historical screen data.
[0042] It is understandable that the software client will compare the data information obtained twice and only send the changed values to the server, which can effectively reduce the network load.
[0043] The embodiment of the present application parses the screen configuration file of the distributed control system to obtain the screen configuration data of the candidate display in the distributed control system, and obtains the candidate position coordinates of the target mouse in the distributed control system; determines the target screen data of the target mouse according to the screen configuration data and the candidate position coordinates; and sends the target screen data to the server so that the server forwards the target screen data to the user end. The above technical solution does not rely on specific hardware devices, which helps to improve the convenience of third-party devices or systems reading screen position information.
[0044] Embodiment 2
[0045] Figure 2 This is a flow chart of a method for determining the screen where the mouse is located according to the second embodiment of the present application. Based on the technical solutions of the above embodiments, this embodiment refines "determining the target screen data of the target mouse according to the screen configuration data and the candidate position coordinates" into "determining the target display where the target mouse is located from the candidate displays according to the screen configuration data and the candidate position coordinates; determining the target screen and target position coordinates of the mouse in the target display according to the candidate position coordinates and the screen configuration data of the target display". It should be noted that for the parts not described in detail in the embodiments of the present application, please refer to the relevant descriptions of other embodiments. Figure 2 As shown, the method includes:
[0046] S210, parsing the screen configuration file of the distributed control system to obtain screen configuration data of the candidate display in the distributed control system, and acquiring the candidate position coordinates of the target mouse in the distributed control system.
[0047] S220: Determine the target display where the target mouse is located from the candidate displays according to the screen configuration data and the candidate position coordinates.
[0048] In this embodiment, the screen configuration data may include screen resolution and display angular coordinates; wherein, screen resolution refers to the clarity and detail of the image on the display, usually expressed in the number of pixels, that is, the number of pixels in the horizontal and vertical directions; display angular coordinates refer to the position and angle information of the candidate display in a two-dimensional plane. These coordinates help the system determine the physical position of the display and its arrangement relative to other displays or interfaces, facilitating multi-display settings and content layout.
[0049] Optionally, based on the screen resolution and the display angular coordinates, determine the candidate display area of the candidate display in the distributed control system; compare the candidate position coordinates with the candidate display area, determine the target display area where the target mouse is located from the candidate display area, and determine the candidate display corresponding to the target display area as the target display.
[0050] The candidate display area refers to the display area occupied by the candidate display in the distributed control system, and the target display area refers to the display area occupied by the target display in the distributed control system.
[0051] Optionally, a candidate display boundary of the candidate display in the distributed control system is determined based on the picture resolution and the display angular coordinates; the candidate position coordinates are compared with the candidate display boundary to determine the target display from the candidate displays.
[0052] Exemplarily, comparing the candidate position coordinates with the candidate display boundary may be comparing the horizontal coordinates of the target mouse with the horizontal display boundary of the candidate display, and comparing the vertical coordinates of the target mouse with the vertical display boundary of the candidate display.
[0053] Furthermore, if the horizontal coordinate is greater than or equal to the left border of the candidate display and less than or equal to the right border of the candidate display, and the vertical coordinate is less than or equal to the upper border of the candidate display and greater than or equal to the lower border of the candidate display, it indicates that the target mouse is located at the candidate display, and the candidate display is determined as the target display.
[0054] S230: Determine the target screen and target position coordinates of the mouse in the target display according to the candidate position coordinates and the screen configuration data of the target display.
[0055] Optionally, coordinate conversion is performed on the candidate position coordinates and the display angular coordinates of the target display to obtain the relative position coordinates of the target mouse in the target display; coordinate mapping is performed on the relative position coordinates and the screen resolution of the target display to obtain the target screen and target position coordinates of the target mouse in the target display.
[0056] The relative position coordinates are used to represent the position of the mouse in the target display.
[0057] In an optional implementation, the overall screen layout of the distributed control system is determined based on the screen configuration data; the candidate position coordinates are compared with the overall screen layout to determine the specific screen corresponding to the current position of the target mouse, that is, determine the target screen data of the target mouse.
[0058] Furthermore, if the candidate position coordinates are located at the edge of a candidate display and are within a set dead zone pixel range, the candidate position coordinates are ignored.
[0059] It is understandable that in a multi-display environment, by comparing the mouse coordinates with the overall screen layout, the user can accurately identify and operate different screen contents.
[0060] S240: Send the target screen data to the server, so that the server forwards the target screen data to the user.
[0061] The embodiment of the present application parses the screen configuration file of the distributed control system to obtain the screen configuration data of the candidate display in the distributed control system, and obtains the candidate position coordinates of the target mouse in the distributed control system; determines the target display where the target mouse is located from the candidate displays according to the screen configuration data and the candidate position coordinates; determines the target screen and target position coordinates of the mouse in the target display according to the candidate position coordinates and the screen configuration data of the target display; sends the target screen data to the server, so that the server forwards the target screen data to the user. The above technical solution does not rely on specific hardware devices, and determines the display where the mouse is located, the specific screen and position of the mouse on the display step by step at the software level, which helps to improve the convenience of third-party devices or systems reading screen position information.
[0062] Embodiment 3
[0063] Figure 3 This is a structural diagram of a device for determining the screen where the mouse is located according to the third embodiment of the present application, which can be used to determine the location information of the mouse in the client of the distributed control system in the full-scale simulator of a nuclear power plant. The device for determining the screen where the mouse is located can be implemented in the form of hardware and / or software. The device for determining the screen where the mouse is located can be configured in the client of the distributed control system in the full-scale simulator of a nuclear power plant; the distributed control system also includes a server and a user; the server is connected to the client and the user respectively. Figure 3 As shown, the device comprises:
[0064] The data acquisition module 310 is used to parse the screen configuration file of the distributed control system, obtain the screen configuration data of the candidate display in the distributed control system, and obtain the candidate position coordinates of the target mouse in the distributed control system;
[0065] A data determination module 320, for determining target screen data of a target mouse according to the screen configuration data and the candidate position coordinates;
[0066] The data sending module 330 is used to send the target screen data to the server, so that the server forwards the target screen data to the user.
[0067] The embodiment of the present application parses the screen configuration file of the distributed control system to obtain the screen configuration data of the candidate display in the distributed control system, and obtains the candidate position coordinates of the target mouse in the distributed control system; determines the target screen data of the target mouse according to the screen configuration data and the candidate position coordinates; and sends the target screen data to the server so that the server forwards the target screen data to the user end. The above technical solution does not rely on specific hardware devices, which helps to improve the convenience of third-party devices or systems reading screen position information.
[0068] Optionally, the target screen data includes the target display, the target screen and the target position coordinates; the data determination module 320 includes:
[0069] A first data determination unit, configured to determine a target display where a target mouse is located from candidate displays according to the screen configuration data and the candidate position coordinates;
[0070] The second data determination unit is used to determine the target screen and target position coordinates of the mouse in the target display according to the candidate position coordinates and the screen configuration data of the target display.
[0071] Optionally, the screen configuration data includes screen resolution and display angular coordinates; accordingly, the first data determination unit is specifically configured to:
[0072] Determine a candidate display area of the candidate display in the distributed control system according to the picture resolution and the display angular coordinates;
[0073] The candidate position coordinates are compared with the candidate display areas, a target display area where the target mouse is located is determined from the candidate display areas, and the candidate display corresponding to the target display area is determined as the target display.
[0074] Optionally, the second data determination unit is specifically configured to:
[0075] Convert the candidate position coordinates and the display angle coordinates of the target display to obtain the relative position coordinates of the target mouse in the target display;
[0076] The relative position coordinates and the screen resolution of the target display are mapped to obtain the target screen and target position coordinates of the target mouse in the target display.
[0077] Optionally, the device further comprises a data comparison module, which is used to:
[0078] After determining the target screen data of the target mouse, if there is historical screen data of the target mouse, the target screen data is compared with the historical screen data to determine the screen change data;
[0079] Correspondingly, the data sending module 330 is further used to send the screen change data to the server, so that the server forwards the screen change data to the user.
[0080] The device for determining the screen where the mouse is located provided in the embodiment of the present application can execute the method for determining the screen where the mouse is located provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects for executing each method for determining the screen where the mouse is located.
[0081] Embodiment 4
[0082] Figure 4 It is a structural diagram of an electronic device 410 that implements a method for determining the mouse screen of an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0083] like Figure 4 As shown, the electronic device 410 includes at least one processor 411, and a memory connected to the at least one processor 411 in communication, such as a read-only memory (ROM) 412, a random access memory (RAM) 413, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 411 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 412 or the computer program loaded from the storage unit 418 to the random access memory (RAM) 413. In RAM413, various programs and data required for the operation of the electronic device 410 can also be stored. The processor 411, ROM412 and RAM413 are connected to each other via a bus 414. An input / output (I / O) interface 415 is also connected to the bus 414.
[0084] Multiple components in the electronic device 410 are connected to the I / O interface 415, including: an input unit 416, such as a keyboard, a mouse, etc.; an output unit 417, such as various types of displays, speakers, etc.; a storage unit 418, such as a disk, an optical disk, etc.; and a communication unit 419, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 419 allows the electronic device 410 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0085] The processor 411 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 411 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 411 performs the various methods and processes described above, such as a method for determining the screen where the mouse is located.
[0086] In some embodiments, the method for determining the screen where the mouse is located can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 418. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 410 via the ROM 412 and / or the communication unit 419. When the computer program is loaded into the RAM 413 and executed by the processor 411, one or more steps of the method for determining the screen where the mouse is located described above can be performed. Alternatively, in other embodiments, the processor 411 can be configured as the method for determining the screen where the mouse is located by any other appropriate means (for example, by means of firmware).
[0087] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0088] The computer programs for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable mouse location screen determination device, so that when the computer programs are executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer programs may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0089] In the context of the present application, a computer readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device or equipment. A computer readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer readable storage medium may be a machine readable signal medium. A more specific example of a machine readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0090] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0091] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0092] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0093] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution of this application can be achieved, and this document is not limited here.
[0094] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A method for determining a screen where a mouse is located, characterized in that: A client end of a distributed control system used in a full-range simulator of a nuclear power plant; the distributed control system also includes a server end and a user end; The server is connected to the client and the user respectively in communication; the method comprises: Parsing the screen configuration file of the distributed control system to obtain screen configuration data of candidate displays in the distributed control system, and acquiring candidate position coordinates of the target mouse in the distributed control system; Determining target screen data of the target mouse according to the screen configuration data and the candidate position coordinates; The target screen data is sent to the server, so that the server forwards the target screen data to the user.
2. The method according to claim 1, characterized in that: The target screen data includes a target display, a target screen and target position coordinates; accordingly, determining the target screen data of the target mouse according to the screen configuration data and the candidate position coordinates includes: Determine the target display where the target mouse is located from the candidate displays according to the screen configuration data and the candidate position coordinates; The target screen and target position coordinates of the mouse in the target display are determined according to the candidate position coordinates and the screen configuration data of the target display.
3. The method according to claim 2, characterized in that The screen configuration data includes screen resolution and display angular coordinates; accordingly, determining the target display where the target mouse is located from the candidate displays according to the screen configuration data and the candidate position coordinates, comprises: Determining a candidate display area of the candidate display in the distributed control system according to the picture resolution and the display angular coordinates; The candidate position coordinates are compared with the candidate display area, a target display area where the target mouse is located is determined from the candidate display area, and the candidate display corresponding to the target display area is determined as the target display.
4. The method according to claim 3, characterized in that Determining the target screen and target position coordinates of the mouse in the target display according to the candidate position coordinates and the screen configuration data of the target display includes: Performing coordinate conversion on the candidate position coordinates and the display angle coordinates of the target display to obtain the relative position coordinates of the target mouse in the target display; Coordinate mapping is performed on the relative position coordinates and the screen resolution of the target display to obtain the target screen and target position coordinates of the target mouse in the target display.
5. The method according to claim 1, characterized in that After determining the target screen data of the target mouse, the method further includes: If the historical screen data of the target mouse exists, the target screen data is compared with the historical screen data to determine the screen change data; The screen change data is sent to the server, so that the server forwards the screen change data to the user.
6. A device for determining a screen where a mouse is located, characterized in that: A client of a distributed control system configured in a full-range simulator of a nuclear power plant; the distributed control system also includes a server and a user; The server is connected to the client and the user respectively; the device comprises: A data acquisition module, used to parse the screen configuration file of the distributed control system, obtain the screen configuration data of the candidate display in the distributed control system, and obtain the candidate position coordinates of the target mouse in the distributed control system; A data determination module, used for determining target screen data of the target mouse according to the screen configuration data and the candidate position coordinates; The data sending module is used to send the target screen data to the server end, so that the server end forwards the target screen data to the user end.
7. The device according to claim 6, characterized in that The target screen data includes a target display, a target screen and target position coordinates; the data determination module includes: A first data determination unit, configured to determine a target display where the target mouse is located from the candidate displays according to the screen configuration data and the candidate position coordinates; The second data determination unit is used to determine the target screen and target position coordinates of the mouse in the target display according to the candidate position coordinates and the screen configuration data of the target display.
8. An electronic device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method for determining the screen where the mouse is located as described in any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for determining the screen where the mouse is located as described in any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for determining a mouse position according to any one of claims 1 to 6 is implemented.
