CN102323881B - Method for obtaining screen focus of double lottery display screens - Google Patents

Method for obtaining screen focus of double lottery display screens Download PDF

Info

Publication number
CN102323881B
CN102323881B CN201110240670.7A CN201110240670A CN102323881B CN 102323881 B CN102323881 B CN 102323881B CN 201110240670 A CN201110240670 A CN 201110240670A CN 102323881 B CN102323881 B CN 102323881B
Authority
CN
China
Prior art keywords
screen
window
coordinate
mouse
focus
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.)
Active
Application number
CN201110240670.7A
Other languages
Chinese (zh)
Other versions
CN102323881A (en
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.)
CHINA SPORTS LETTWAY TECHNOLOGY DEVELOPMENT Co Ltd
Original Assignee
CHINA SPORTS LETTWAY TECHNOLOGY DEVELOPMENT 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 CHINA SPORTS LETTWAY TECHNOLOGY DEVELOPMENT Co Ltd filed Critical CHINA SPORTS LETTWAY TECHNOLOGY DEVELOPMENT Co Ltd
Priority to CN201110240670.7A priority Critical patent/CN102323881B/en
Publication of CN102323881A publication Critical patent/CN102323881A/en
Application granted granted Critical
Publication of CN102323881B publication Critical patent/CN102323881B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method for obtaining a screen focus of double lottery display screens, which comprises: presetting activation properties of a window to follow a mouse to obtain a focus; and setting a configuration file storing certain coordinates of a first screen and a second screen. When a lottery terminal is started, the screen focus is moved to behind the second screen, and the following steps are implemented: A, reading the configuration file storing the certain coordinates of the first screen and the second screen; B, controlling the coordinates of the mouse to finally move to the positions of the coordinates of the first screen in the configuration file; and C, activating the first screen into a selected state according to the activation properties of the window and the current position of the mouse; Therefore, the problem that a user cannot log on the ticketing interface of a main screen can be solved.

Description

The method of obtaining screen focus of double lottery display screens
Technical field
The present invention relates to a kind of method of obtaining screen focus of double lottery display screens.
Background technology
In recent years, along with sports lottery ticket industry is flourish, the increase of sports lottery ticket playing method, has attracted more lottery fan to add.Only 2010, Chinese sports lottery ticket sales volume just broke through hundred billion.
Sports lottery ticket terminating machine adopts linux system.Display end comprises two screens (main screen and secondary screen), and main screen is for display terminal ticketing interface (being lottery ticket sales program), and secondary screen is used for showing animation lottery information picture (being animation program).The resolution of main screen and secondary screen is 800*600.After the start of sports lottery ticket terminating machine, main screen and secondary screen start simultaneously.Due to service needed, the necessary full screen display of animation lottery information picture that secondary screen is shown, by Adobe flash player player program.Thus, the speed that secondary screen starts is slower than main screen, after the animation program of secondary screen is full frame, can automatically capture the focus of the lottery ticket sales program of main screen.Wherein, screen focus is for determining to be received by which screen or control user's input message.Therefore, secondary screen is captured the focus that causes main screen, causes main screen ticketing program interface to log in, and causes the lottery ticket cannot normal sale.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of method of obtaining screen focus of double lottery display screens, the problem that cannot log in to solve the ticketing interface of main screen.
The method of obtaining screen focus of double lottery display screens of the present invention, comprising:
The activation attribute that sets in advance window obtains focus for following mouse; One configuration file that stores the first screen and the second screen coordinate is set;
The start of sports lottery ticket terminating machine, screen focus move on to the second screen, carry out following step:
A, store the configuration file of the first screen and the second screen coordinate described in reading;
B, mouse beacon coordinate finally move to the position of the described coordinate of the first screen in described configuration file;
C, according to the activation attribute of window, according to mouse current location, activating the first screen is selected state.
By upper, by focus is finally moved to main screen, the problem that the ticketing interface of realization solution main screen cannot log in.
Preferably, described step B also comprises step:
B1, mouse beacon are moved to the position of the described coordinate of the first screen by the present position of starting shooting;
B2, mouse beacon are moved to the position of the described coordinate of the second screen by the position of the described coordinate of the first screen;
B3, mouse beacon are moved to the position of the described coordinate of the first screen by the position of the described coordinate of the second screen.
By upper, by the movement of mouse, drive the movement of screen focus.
Optionally, the method for obtaining screen focus of double lottery display screens of the present invention also comprises:
The setup of attribute of the window on described the first screen is acquiescence state of activation;
After step C, also comprise: controlling described window is state of activation.
By upper, by the state of activation of window is set, realizes mouse position and be activated.
Wherein, described window is for logging in window.
Wherein, described the first screen is the main screen that shows user's login interface; The second screen is the secondary window of display business information.
By upper, user's login interface of realizing main screen logs in smoothly.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of obtaining screen focus of double lottery display screens;
Fig. 2 is obtaining screen focus of double lottery display screens schematic diagram.
Embodiment
Introduce in detail by reference to the accompanying drawings the method for obtaining screen focus of double lottery display screens provided by the invention below.
As shown in Figure 1, the method for obtaining screen focus of double lottery display screens provided by the present invention comprises the following steps:
Step 10: adjust window attribute.
Window attribute comprises window display properties, window transparency attribute, and the window's position attribute and window activate attribute, by the configuration file of revising window manager, change above-mentioned window attribute.Comprise:
Step 101: revise desktop number.
In linux system, giving tacit consent to desktop number is four, and screen in the present embodiment is two, i.e. therefore the main screen at display terminal ticketing interface and show the secondary screen of animation lottery information is revised and desktop number need be modified.
Step 102: window is set and activates attribute.
Window activates attribute and comprises: click and obtain focus (Click To Focus) and follow mouse and obtain focus (Focus Follow Mouse).
Focus is obtained in click, and the window that mouse is clicked obtains focus.The window of being clicked by mouse can activate, and is placed in the foremost of all windows, and receives input.
Follow mouse and obtain focus, when mouse moves on in the scope of a window that can obtain focus, what user did not need window just can activate this window somewhere, receives and inputs.This window not necessarily can be placed in the foremost of all windows.When mouse shifts out the scope of this window, this window also can lose focus thereupon.
By revising window manager configuration file, window is activated to attribute changes for the mobile focus mode that obtains.
Step 20: mouse coordinates configuration file is set, for storing the coordinate position that mouse will move, comprise be positioned at window (window of main screen and the window of secondary screen), in the present embodiment, this coordinate position is certain coordinate position of main screen window and certain coordinate position of secondary screen window.
When after the start of sports lottery ticket terminating machine, as background technology, to describe, main screen and secondary screen start simultaneously, and the speed that secondary screen starts is slower than main screen.After the animation program of secondary screen is full frame, can automatically capture the focus of the lottery ticket sales program of main screen, now focus is positioned at secondary screen, and mouse is still positioned at a certain coordinate points of main screen.The present invention increases a process, after judging that sports lottery ticket terminating machine has been started shooting, carries out following newly-increased step:
Step 30: set mouse coordinates configuration file in read step 20.
Here adopt configuration file to record separately the screen of appointment and the position of appointment, when thering is more than two screen later, or at screen, change (while changing as screen size), directly change this configuration file and can adapt to new screen.
Step 40: mouse beacon coordinate moves to the assigned address of main screen set in configuration file.
Wherein, can adopt and call a script, by this script, can call MouseMove function, coordinate is moved and arranging the position of recording in file.Wherein, above-mentioned MouseMove function can be the MouseMove function that the operating systems such as Linux, Windows carry.
In the present embodiment, what in configuration file, record is (800, the 600) position of main screen and (800,600) position of secondary screen, by calling MouseMove function, mouse is finally moved to (800,600) position of main screen.As shown in Figure 2, its concrete mobile step comprises:
Step 401: (800, the 600) position that mouse residing coordinate position that is positioned at main screen from starting shooting is moved to main screen.
Step 402: (800, the 600) position that mouse is moved to secondary screen from (800,600) position of main screen.
Step 403: (800, the 600) position that mouse is moved to main screen from (800,600) position of secondary screen.
Step 50: activate attribute by the window arranging in step 20, when mouse is moved into after main screen, activate accordingly main screen, now, the input frame in this screen, as landing frame can input state in accordingly.
Preferably, when there is multiple input frame, can also specify an input frame, be state of activation by its attribute definition, thereby after main screen is activated, the input frame of this appointment on main screen is also in state of activation, and user can be to this input frame input message.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (4)

1. a method for obtaining screen focus of double lottery display screens, is characterized in that, comprising:
The activation attribute that sets in advance window obtains focus for following mouse; One configuration file that stores the first screen and the second screen coordinate is set;
The start of sports lottery ticket terminating machine, screen focus move on to the second screen, carry out following step:
A, store the configuration file of the first screen and the second screen coordinate described in reading;
B, call a script, by this script, call MouseMove function, coordinate is moved to the position of the described coordinate that finally moves to the first screen in described configuration file, comprise step:
B1, mouse beacon are moved to the position of the described coordinate of the first screen by the present position of starting shooting;
B2, mouse beacon are moved to the position of the described coordinate of the second screen by the position of the described coordinate of the first screen;
B3, mouse beacon are moved to the position of the described coordinate of the first screen by the position of the described coordinate of the second screen;
Above-mentioned coordinate position all refers to that resolution is (800,600) position of the screen of 800*600;
C, according to the activation attribute of window, according to mouse current location, activating the first screen is selected state.
2. method according to claim 1, is characterized in that, also comprises:
The setup of attribute of the window on described the first screen is acquiescence state of activation;
After step C, also comprise: controlling described window is state of activation.
3. method according to claim 2, is characterized in that, described window is for logging in window.
4. method according to claim 1, is characterized in that, described the first screen is the main screen that shows user's login interface; The second screen is the secondary window of display business information.
CN201110240670.7A 2011-08-19 2011-08-19 Method for obtaining screen focus of double lottery display screens Active CN102323881B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110240670.7A CN102323881B (en) 2011-08-19 2011-08-19 Method for obtaining screen focus of double lottery display screens

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110240670.7A CN102323881B (en) 2011-08-19 2011-08-19 Method for obtaining screen focus of double lottery display screens

Publications (2)

Publication Number Publication Date
CN102323881A CN102323881A (en) 2012-01-18
CN102323881B true CN102323881B (en) 2014-05-07

Family

ID=45451626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110240670.7A Active CN102323881B (en) 2011-08-19 2011-08-19 Method for obtaining screen focus of double lottery display screens

Country Status (1)

Country Link
CN (1) CN102323881B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112799526B (en) * 2021-01-29 2022-11-18 瑞芯微电子股份有限公司 Method and system for simultaneously displaying and operating multiple mice in single system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101067787A (en) * 2007-06-26 2007-11-07 腾讯科技(深圳)有限公司 Application program trigging method and apparatus
CN101097497A (en) * 2006-06-30 2008-01-02 佛山市顺德区顺达电脑厂有限公司 Method for quick moving cursor on screen
CN101739137A (en) * 2008-11-05 2010-06-16 北京广利核系统工程有限公司 KVM device for realizing quick switching

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7376911B2 (en) * 2004-05-20 2008-05-20 International Business Machines Corporation Method and system for controlling screen focus for files and applications during presentations

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101097497A (en) * 2006-06-30 2008-01-02 佛山市顺德区顺达电脑厂有限公司 Method for quick moving cursor on screen
CN101067787A (en) * 2007-06-26 2007-11-07 腾讯科技(深圳)有限公司 Application program trigging method and apparatus
CN101739137A (en) * 2008-11-05 2010-06-16 北京广利核系统工程有限公司 KVM device for realizing quick switching

Also Published As

Publication number Publication date
CN102323881A (en) 2012-01-18

Similar Documents

Publication Publication Date Title
CN104898952B (en) A kind of terminal split screen implementation method and terminal
WO2020147665A1 (en) File processing method and device, terminal, and storage medium
US10140014B2 (en) Method and terminal for activating application based on handwriting input
WO2021035884A1 (en) Screen mirroring method and apparatus, terminal, and storage medium
KR102385757B1 (en) Quick navigation of message conversation history
US10498698B2 (en) System for remotely controlling electronic device and method of operating the same
CN108628652A (en) User interface rendering intent, device and terminal
US9990109B2 (en) Information display terminal
CN108415753A (en) Method for displaying user interface, device and terminal
WO2020156199A1 (en) Application login method and device, terminal and storage medium
US20100321323A1 (en) Method and apparatus for reducing multi-touch input error in portable communication system
CN103455275A (en) Method and apparatus for moving object in terminal having touch screen
CN108496198B (en) Image processing method and device
CN103455234A (en) Method and device for displaying application program interfaces
CN103729110A (en) Popup window information display method, device and terminal
WO2017113551A1 (en) System and method for operating system of mobile device
CN113268212A (en) Screen projection method and device, storage medium and electronic equipment
CN113434065A (en) Information processing method and terminal
CN113837939A (en) Image processing method and device
CN112764891B (en) Electronic terminal and method for controlling application
CN106302932A (en) The method and apparatus checking log in communication terminal
US11243679B2 (en) Remote data input framework
CN102520964B (en) Method and device for management of application icon on client interface
CN102323881B (en) Method for obtaining screen focus of double lottery display screens
CN102736901A (en) Implementation method for WinCE platform self-defining desktop

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant