CN116880744A - Method, system, equipment and storage medium for realizing screen sliding based on virtual keys - Google Patents

Method, system, equipment and storage medium for realizing screen sliding based on virtual keys Download PDF

Info

Publication number
CN116880744A
CN116880744A CN202310767903.1A CN202310767903A CN116880744A CN 116880744 A CN116880744 A CN 116880744A CN 202310767903 A CN202310767903 A CN 202310767903A CN 116880744 A CN116880744 A CN 116880744A
Authority
CN
China
Prior art keywords
screen
sliding
virtual
virtual key
track
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.)
Pending
Application number
CN202310767903.1A
Other languages
Chinese (zh)
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.)
Shenzhen Chuangzhicheng Technology Co ltd
Original Assignee
Shenzhen Chuangzhicheng Technology 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 Shenzhen Chuangzhicheng Technology Co ltd filed Critical Shenzhen Chuangzhicheng Technology Co ltd
Priority to CN202310767903.1A priority Critical patent/CN116880744A/en
Publication of CN116880744A publication Critical patent/CN116880744A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Abstract

The application discloses a method, a system, equipment and a storage medium for realizing screen sliding based on virtual keys, wherein the method comprises the following steps: acquiring a click command based on a screen; determining a screen switching instruction type based on the click instruction; based on the screen switching instruction type, generating a corresponding virtual screen sliding track; based on the virtual screen sliding track, controlling screen page switching; according to the scheme, the click command is judged, when the click command corresponds to the screen switching command, the corresponding virtual screen sliding track is generated based on the screen switching command, screen switching is performed, the screen sliding track can be simulated based on the click command, screen sliding operation is realized, and meanwhile, physical keys are not required to be added, so that the use requirement of a user is met.

Description

Method, system, equipment and storage medium for realizing screen sliding based on virtual keys
Technical Field
The present application relates to the field of mobile terminal control, and in particular, to a method, system, device, and storage medium for implementing sliding screen based on virtual keys.
Background
Cell phones and tablets have become common terminals for people to read daily information at present. In the terminal browser and the information software, the user update and reading of the content are completed through gesture strokes. In general, in the process of dragging by a gesture, a user slides a piece of content at a time, and a page of content slides approximately 3-5 times to complete reading. In addition, at present, various APP (application) does not consider the use of physical keyboards, and generally cancels the response function of Page Up/Down, so even if the physical keyboard is connected and a PageUp, pageDown physical key is pressed, the APP still cannot respond to the corresponding action and only responds to the scratching event of fingers to update the content. In addition, in the screen-swiping of the finger frequently and long distance, the quality of reading is easily affected because grease and pollutants secreted by the finger are attached on the screen. In addition, when a large-sized screen or a rough surface touch screen (special screen) is scratched, the finger may feel serious tiredness and discomfort.
Therefore, how to realize virtual key switching and screen sliding, and improve screen sliding stability and effect are technical problems to be solved urgently.
Disclosure of Invention
The application aims to realize virtual key switching sliding screen.
The technical aim of the application is realized by the following technical scheme:
a method for realizing sliding screen based on virtual keys comprises the following steps:
acquiring a click command based on a screen;
determining a screen switching instruction type based on the click instruction;
based on the screen switching instruction type, generating a corresponding virtual screen sliding track;
and controlling screen page switching based on the virtual screen sliding track.
According to the scheme, the clicking instruction is judged, when the clicking instruction corresponds to the screen switching instruction, the corresponding virtual screen sliding track is generated based on the screen switching instruction, and the screen switching is performed, so that the screen sliding track can be simulated based on the clicking instruction, the screen sliding operation is realized, and meanwhile, the use requirement of a user is met without adding physical keys.
Optionally, the method for implementing sliding screen based on virtual key, wherein the step of determining the screen switching instruction type based on the click instruction includes:
acquiring area information of a trigger position of a click command on a screen;
and when the area where the trigger position is located is in the corresponding sliding screen virtual key area, determining the click command as the click command of the virtual key.
According to the scheme, whether the area triggered by the click command is located in the sliding screen virtual key area or not is judged, and when the area triggered by the command is located in the corresponding sliding screen virtual key area, the type of the click command is determined.
Optionally, in the method for implementing sliding screen based on virtual keys, the area information is coordinate information, and when the area where the trigger position is located is in the corresponding sliding screen virtual key area, the step of determining that the click command is the click command of the virtual key includes:
and determining the click command as the click command of the virtual key when the coordinate is within the coordinate range of the corresponding sliding screen virtual key region based on the coordinate information of the trigger position of the click command on the screen.
According to the scheme, whether the screen sliding operation is triggered or not and what screen sliding operation is triggered are determined by acquiring the coordinate information of the triggering position of the clicking instruction on the screen, so that the accuracy of instruction triggering is ensured.
Optionally, the method for implementing sliding screen based on virtual key, wherein the step of generating the corresponding virtual sliding screen track based on the screen switching instruction type includes:
acquiring the browsing area height at the triggering moment of the click command;
when the screen switching instruction is an upward page turning instruction, generating a sliding screen track in the range of the browsing area, wherein the longitudinal initial position is positioned below the end position, and the difference value of the longitudinal distances between the end position and the initial position reaches the value of the preset height proportion of the browsing area to the downward upward sliding screen track;
when the screen switching instruction is a page turning-down instruction, a vertical initial position in the range of the browsing area is generated and is positioned above a final position, and the difference value of the vertical distances between the final position and the initial position reaches the value of the preset height proportion of the browsing area, so that the screen sliding track is turned up and down.
According to the scheme, the screen sliding track corresponding to different instructions is determined by acquiring the height of the browsing area, so that the mobile terminal system can correspondingly recognize the simulated screen sliding track, and corresponding screen sliding control is realized.
Optionally, in the method for implementing sliding screen based on virtual key, the step of generating the corresponding virtual sliding screen track based on the screen switching instruction type further includes:
acquiring the width of a browsing area at the triggering moment of a click command;
when the screen switching instruction is page-up or page-down, the transverse position is kept unchanged in the browsing area range.
According to the scheme, the sliding screen control precision is ensured by setting the transverse position unchanged.
Optionally, the method for implementing sliding screen based on virtual key, wherein the step of obtaining the browsing area height at the triggering time of the click command includes:
acquiring a display image of a display screen;
based on the display image, obtaining the number of pixels with the same color in a continuous section;
determining whether the total height of pixels with the same continuous color is greater than 1/2 of the height of the display screen;
if so, determining the total height of the pixels with the same continuous color as the height of the browsing area;
if not, determining 1/2 of the display screen height as the browsing area height.
According to the scheme, the color of the pixel point of the screen is obtained, the pixel with the same color and the maximum height is judged with the screen height, and the height of the browsing area is determined, so that the screen sliding operation can be simulated based on the height of the browsing area.
Optionally, in the method for implementing sliding screen based on virtual keys, the value of the preset proportion is 1.
According to the scheme, the preset proportion is preferably 1, namely, the sliding screen track is simulated, and the longitudinal height difference is at the height of a browsing area.
In another aspect of the present application, a system for realizing sliding screen based on virtual keys is disclosed, wherein the system comprises:
the instruction acquisition module is used for acquiring a click instruction based on a screen;
the instruction determining module is used for determining the type of the screen switching instruction based on the click instruction;
the virtual track generation module is used for generating a corresponding virtual sliding screen track based on the screen switching instruction type;
and the switching control module is used for controlling screen page switching based on the virtual screen sliding track.
According to the scheme, the clicking instruction is judged, when the clicking instruction corresponds to the screen switching instruction, the corresponding virtual screen sliding track is generated based on the screen switching instruction, and the screen switching is performed, so that the screen sliding track can be simulated based on the clicking instruction, the screen sliding operation is realized, and meanwhile, the use requirement of a user is met without adding physical keys.
In another aspect of the application, an electronic device is disclosed that includes a memory and a processor, the memory storing a computer program that is capable of being loaded by the processor and executing the method of implementing a slide screen based on virtual keys as described above.
In another aspect of the present application, a storage medium is disclosed in which a computer program capable of being loaded by a processor and executing the method of implementing a sliding screen based on virtual keys as described above is stored.
In summary, the scheme of the application has at least one of the following beneficial effects:
1. judging the click command, when the click command corresponds to the screen switching command, generating a corresponding virtual screen sliding track based on the screen switching command, and switching the screen, so that the screen sliding track can be simulated based on the click command, the screen sliding operation can be realized, and meanwhile, the use requirement of a user is met without adding physical keys;
2. determining the type of the click command by judging whether the region triggered by the click command is positioned in the sliding screen virtual key region or not, and determining the type of the click command when the region triggered by the command is positioned in the corresponding sliding screen virtual key region;
3. and determining whether to trigger the screen sliding operation and what kind of screen sliding operation is triggered by acquiring the coordinate information of the triggering position of the clicking instruction on the screen, so as to ensure the accuracy of instruction triggering.
Drawings
FIG. 1 is a flow chart of the steps of a method for realizing a sliding screen based on virtual keys according to the present application.
Fig. 2 is a schematic diagram of a virtual key page of a terminal according to an embodiment of the present application.
FIG. 3 is a block diagram of a system for implementing a slide screen based on virtual keys according to the present application.
Detailed Description
The present application will be described in further detail with reference to the accompanying drawings.
The embodiment of the application discloses a method for realizing screen sliding based on virtual keys, which comprises the following steps:
s1, acquiring a click command based on a screen;
the mobile terminal screen is always in a state of accepting instructions, the clicking instructions comprise various types, including user screen sliding operation, clicking operation and the like, such as praise, typing input, page turning or the like in the APP, the mobile terminal can be frequently triggered by the clicking instructions in the using process, and the judgment and the identification of the instructions are facilitated by acquiring the clicking instructions based on the screen.
S2, determining a screen switching instruction type based on the click instruction;
after the click command is acquired, whether the virtual screen sliding is triggered is required to be judged, so that the click command comprises screen sliding and clicking, if the virtual screen sliding is performed, the screen sliding operation is performed correspondingly, if the virtual screen sliding is performed, the command for determining whether screen switching is performed is required, and therefore, whether the click command corresponds to the screen switching command is required to be determined, and sometimes, the type of the screen switching command is determined.
S3, generating a corresponding virtual screen sliding track based on the screen switching instruction type;
in the embodiment of the application, after the type triggered by the click command is determined, for example, page turning upwards is simulated, the virtual screen sliding track of page turning upwards is simulated, and the stranding is page turning downwards, and the virtual screen sliding track of page turning downwards is correspondingly simulated.
In the Android system, the touch screen driver in the kernel executes the X-axis coordinate and the Y-axis coordinate for generating the touch point. And the operations of gestures such as clicking, sliding, multi-touch and the like are to package continuous coordinate features of points reported by a driving layer through a Frame Work layer according to a certain time to generate functional events such as Down, move, up and the like. While the APP of the application layer generates various actions by listening to these function events. The sliding action submitted in this case actually generates a Down (X, Y) event when the finger touches the screen, a Move (X, Y) generated at the time of sliding, and finally a finger release is a Up (X, Y) generated. The APP can know the starting point, the track point and the ending point of touch sliding by listening to the events. Accordingly, the APP or upper layer software listens completely to the screen break event reported by the Frame Work layer to generate a corresponding action. Thus, modifying the Frame Work layer to generate various virtual screen-break events can cause the APP and upper software to generate screen-break events that are considered to be real to respond accordingly. When the user clicks on the virtual key Up or Down area, the Frame Work layer receives the X and Y coordinates of the touch point, but does not report the click event, but generates a virtual screen-drawing track of Up/Down.
S4, based on the virtual screen sliding track, screen page switching is controlled.
And finally, determining a screen switching instruction, correspondingly generating a virtual screen sliding track, and correspondingly controlling screen page switching by the system based on the virtual screen sliding track.
In some possible embodiments of the present application, the method for implementing a sliding screen based on virtual keys, wherein the step of determining the screen switching instruction type based on the click instruction includes:
acquiring area information of a trigger position of a click command on a screen;
and when the area where the trigger position is located is in the corresponding sliding screen virtual key area, determining the click command as the click command of the virtual key.
In order to more accurately determine the sliding screen simulation of the user, the embodiment of the application needs to determine whether the triggering position of the clicking instruction on the screen is in the area of the virtual key, and if so, the clicking instruction is determined to be the clicking instruction of the corresponding virtual key.
In some possible embodiments of the present application, the method for implementing sliding screen based on virtual keys, wherein the area information is coordinate information, and when the area where the trigger position is located is in the corresponding sliding screen virtual key area, the step of determining that the click command is the click command of the virtual key includes:
and determining the click command as the click command of the virtual key when the coordinate is within the coordinate range of the corresponding sliding screen virtual key region based on the coordinate information of the trigger position of the click command on the screen.
In the embodiment of the present application, it is considered that most users still get used to use virtual navigation keys, and the navigation keys are located at the lowest of the physical screen, typically three keys, HOME key, return key and menu key. Referring to fig. 2, in the design, a virtual key is added on each of the left and right sides, which are respectively PageUp and PageDown virtual keys, and technical transformation is performed in an Android system Frame Work, so that the length of various current software browsing areas is automatically adapted to simulate the generation of a user screen-dividing event. So that the user obtains comfortable use experience.
Currently, various information software or browser software have different layouts depending on the respective developers. However, the method is mainly divided into three parts, namely a plate head, a browsing area and a plate tail. The head and the tail are fixed in the same software, and the user swipes the screen during reading to change the content of the browsing area. Moreover, the browsing areas between different APPs are not of the same height due to the different software developers.
Based on the above-mentioned scheme, in some possible embodiments of the present application, the method for implementing a sliding screen based on a virtual key, wherein the step of generating a corresponding virtual sliding screen track based on a screen switching instruction type includes:
acquiring the browsing area height at the triggering moment of the click command;
when the screen switching instruction is an upward page turning instruction, generating a sliding screen track in the range of the browsing area, wherein the longitudinal initial position is positioned below the end position, and the difference value of the longitudinal distances between the end position and the initial position reaches the value of the preset height proportion of the browsing area to the downward upward sliding screen track;
when the screen switching instruction is a page turning-down instruction, a vertical initial position in the range of the browsing area is generated and is positioned above a final position, and the difference value of the vertical distances between the final position and the initial position reaches the value of the preset height proportion of the browsing area, so that the screen sliding track is turned up and down.
In the embodiment of the application, the height of the browsing area needs to be determined, because different APP's and corresponding browsing areas have different heights, some of the browsing areas can be covered with the whole screen, some of the browsing areas have navigation bars in the APP's, and the whole browsing areas have different heights, so when the sliding screen track is simulated, the sliding screen track needs to be correspondingly generated based on the heights of the browsing areas after the heights of the browsing areas are determined, and a certain proportion of the sliding screen track can be generated based on the heights of the browsing areas, for example, the sliding screen can be completed by half the heights of the browsing areas, and the general proportion is less than 1, preferably 1. I.e. it is preferable to simulate the swipe track as a swipe track sliding the height of one browsing area.
In some possible embodiments of the present application, the method for implementing a sliding screen based on a virtual key, wherein the step of generating a corresponding virtual sliding screen track based on a screen switching instruction type further includes:
acquiring the width of a browsing area at the triggering moment of a click command;
when the screen switching instruction is page-up or page-down, the transverse position is kept unchanged in the browsing area range.
In the embodiment of the application, in order to improve the accuracy of the system identification of the sliding screen track, the horizontal position is preferably unchanged, namely the simulated sliding screen track is vertical in the longitudinal direction, the horizontal distance is unchanged, the condition similar to oblique lines cannot be generated, the identification accuracy is improved, and the screen switching operation corresponding to the simulated sliding screen track is ensured.
In some possible embodiments of the present application, the method for implementing sliding screen based on virtual key, wherein the step of obtaining the browsing area height at the triggering time of the click command includes:
acquiring a display image of a display screen;
based on the display image, obtaining the number of pixels with the same color in a continuous section;
determining whether the total height of pixels with the same continuous color is greater than 1/2 of the height of the display screen;
if so, determining the total height of the pixels with the same continuous color as the height of the browsing area;
if not, determining 1/2 of the display screen height as the browsing area height.
The layout of various APP is analyzed, the method has the common characteristic that the background colors of various areas are different without text and pictures, and the method is a special differentiation treatment for various software developers to distinguish various areas more conveniently. In addition, the general information software leaves a gap with a certain width at both sides (leftmost side and rightmost side) of the browsing area due to typesetting requirement, so that the height of the gap of the browsing area is calculated, and the height of the browsing area can be obtained. By utilizing the characteristic, the first column of the pixel of the current display screen of the mobile phone can be taken, and the length of the browsing area can be measured by using the following algorithm.
The content displayed on the current screen is displayed in a Frame Buffer area of the display memory in the form of pixel expression, and the pixel data can be conveniently accessed through a kernel program, wherein the Frame Buffer corresponds to the rows and columns of the display content one by one. The first left-to-right column of the picture, i.e. the leftmost column, is taken, and the color of the browsing area in this column is the ground color of the browsing area according to the layout characteristics of the information APP. Several variables P1, P2, … Pn are defined for recording the number of pixels of the same color for a consecutive segment. Such that the first pixel of the column is red, then 29 consecutive pixels of the column are red, the 31 st pixel to the 50 th pixel are green, and the 51 st pixel is yellow. Then P1 counts to 30, P2 counts to 20, and P3 counts on counting the number of yellow pixels. Typically, all pixel ground colors of the first column of the viewing area are the same (regardless of which APP). Therefore, a value corresponding to Pn is recorded to the number of pixels of the first column base color of the browsing area. After all pixels in the first column are calculated, the largest value of 1/2 screen height is taken as the height of the browsing area. If the height of the continuous same pixels is not measured to be more than 1/2 (possibly because the user is in a non-information APP application or the advertisement picture runs to the first column to influence the calculation result), the default browsing area height is 1/2 screen height, so that the screen can be turned more conveniently.
Optionally, in the method for implementing sliding screen based on virtual keys, the value of the preset proportion is 1.
For convenience of description, after calculating the height Pn of the browsing area, the coordinate start position (x, y) of the generated virtual screen is set to be x=1/2 of the display width of the display screen, y=0, the end position is set to be x=1/2 of the display width of the display screen, y=pn, and then an Up screen-drawing event with the height Pn from bottom to top is simulated. The Down event is a screen-scribing event with y=pn as a starting point and y=0 as an end point. And modifying the Frame Work layer, and when a user touches the virtual key Up/Down area, encapsulating the event into Up/Down screen drawing actions by the Frame Work. When the APP detects an event, the APP responds to the corresponding page turning action, so that the function of conveniently and rapidly scribing the screen is realized.
In another embodiment of the present application, a system for realizing sliding screen based on virtual keys is disclosed, and referring to fig. 3, a block diagram of the system is shown. Wherein, include:
the instruction acquisition module 100 is used for acquiring a click instruction based on a screen;
the instruction determining module 200 is configured to determine a screen switching instruction type based on the click instruction;
the virtual track generation module 300 is configured to generate a corresponding virtual sliding screen track based on the screen switching instruction type;
the switching control module 400 is configured to control screen page switching based on the virtual screen sliding track.
In another embodiment of the application, an electronic device is disclosed, comprising a memory and a processor, the memory storing a computer program capable of being loaded by the processor and executing the method for realizing a sliding screen based on virtual keys as described above.
Another embodiment of the present application discloses a storage medium in which a computer program is stored which can be loaded by a processor and which performs the method for realizing a slide screen based on virtual keys as described above
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and additional implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order from that shown or discussed, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present application.
The present embodiment provides a computer readable storage medium, and since the stored computer program can implement the steps of the foregoing embodiment after being executed on a processor, the same technical effects as those of the foregoing embodiment can be achieved, and the principle analysis can be described with reference to the foregoing related steps, which are not repeated herein.
The embodiments of the present application are all preferred embodiments of the present application, and are not intended to limit the scope of the present application in this way, therefore: all equivalent changes according to the structure and principle of the present application should be covered in the protection scope of the present application.

Claims (10)

1. The method for realizing the sliding screen based on the virtual key is characterized by comprising the following steps:
acquiring a click command based on a screen;
determining a screen switching instruction type based on the click instruction;
based on the screen switching instruction type, generating a corresponding virtual screen sliding track;
and controlling screen page switching based on the virtual screen sliding track.
2. The method for realizing a sliding screen based on a virtual key according to claim 1, wherein the step of determining the screen switching instruction type based on the click instruction comprises:
acquiring area information of a trigger position of a click command on a screen;
and when the area where the trigger position is located is in the corresponding sliding screen virtual key area, determining the click command as the click command of the virtual key.
3. The method for realizing sliding screen based on virtual key according to claim 2, wherein the area information is coordinate information, and when the area where the trigger position is located is in the corresponding sliding screen virtual key area, the step of determining that the click command is the click command of the virtual key comprises:
and determining the click command as the click command of the virtual key when the coordinate is within the coordinate range of the corresponding sliding screen virtual key region based on the coordinate information of the trigger position of the click command on the screen.
4. The method for realizing a sliding screen based on a virtual key according to claim 1, wherein the step of generating the corresponding virtual sliding screen track based on the screen switching instruction type comprises:
acquiring the browsing area height at the triggering moment of the click command;
when the screen switching instruction is an upward page turning instruction, generating a sliding screen track in the range of the browsing area, wherein the longitudinal initial position is positioned below the end position, and the difference value of the longitudinal distances between the end position and the initial position reaches the value of the preset height proportion of the browsing area to the downward upward sliding screen track;
when the screen switching instruction is a page turning-down instruction, a vertical initial position in the range of the browsing area is generated and is positioned above a final position, and the difference value of the vertical distances between the final position and the initial position reaches the value of the preset height proportion of the browsing area, so that the screen sliding track is turned up and down.
5. The method for realizing sliding screen based on virtual key according to claim 4, wherein the step of generating the corresponding virtual sliding screen track based on the screen switching instruction type further comprises:
acquiring the width of a browsing area at the triggering moment of a click command;
when the screen switching instruction is page-up or page-down, the transverse position is kept unchanged in the browsing area range.
6. The method for realizing sliding screen based on virtual key according to claim 4, wherein the step of obtaining the browsing area height at the trigger time of the click command comprises:
acquiring a display image of a display screen;
based on the display image, obtaining the number of pixels with the same color in a continuous section;
determining whether the total height of pixels with the same continuous color is greater than 1/2 of the height of the display screen;
if so, determining the total height of the pixels with the same continuous color as the height of the browsing area;
if not, determining 1/2 of the display screen height as the browsing area height.
7. The method for realizing sliding screen based on virtual key according to claim 4, wherein the value of the preset ratio is 1.
8. A system for implementing a slide screen based on virtual keys, comprising:
the instruction acquisition module is used for acquiring a click instruction based on a screen;
the instruction determining module is used for determining the type of the screen switching instruction based on the click instruction;
the virtual track generation module is used for generating a corresponding virtual sliding screen track based on the screen switching instruction type;
and the switching control module is used for controlling screen page switching based on the virtual screen sliding track.
9. An electronic device comprising a memory and a processor, the memory storing a computer program capable of being loaded by the processor and executing the method of virtual key based screen sliding according to any of claims 1-7.
10. A storage medium storing a computer program loadable by a processor and performing the method of virtual key based slide screen implementation of any of claims 1-7.
CN202310767903.1A 2023-06-27 2023-06-27 Method, system, equipment and storage medium for realizing screen sliding based on virtual keys Pending CN116880744A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310767903.1A CN116880744A (en) 2023-06-27 2023-06-27 Method, system, equipment and storage medium for realizing screen sliding based on virtual keys

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310767903.1A CN116880744A (en) 2023-06-27 2023-06-27 Method, system, equipment and storage medium for realizing screen sliding based on virtual keys

Publications (1)

Publication Number Publication Date
CN116880744A true CN116880744A (en) 2023-10-13

Family

ID=88269049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310767903.1A Pending CN116880744A (en) 2023-06-27 2023-06-27 Method, system, equipment and storage medium for realizing screen sliding based on virtual keys

Country Status (1)

Country Link
CN (1) CN116880744A (en)

Similar Documents

Publication Publication Date Title
US9477653B2 (en) Character entry for an electronic device using a position sensing keyboard
US20150058776A1 (en) Providing keyboard shortcuts mapped to a keyboard
US20130002562A1 (en) Virtual keyboard layouts
US20110320978A1 (en) Method and apparatus for touchscreen gesture recognition overlay
CN102902480A (en) Control area for a touch screen
JP6313395B1 (en) Drawing processing method, drawing processing program, and drawing processing apparatus
CA3040356C (en) Screen display method and terminal
JP2008152441A (en) Character data input device
JPH0814822B2 (en) Command input device
JP5744644B2 (en) Content match advertisement distribution apparatus and method
CN111475097A (en) Handwriting selection method and device, computer equipment and storage medium
KR102464527B1 (en) Display Device and the Method for Touch Interface
CN104346072A (en) Display control apparatus and control method thereof
KR20100027329A (en) Method and apparatus for character input
US20140223328A1 (en) Apparatus and method for automatically controlling display screen density
JP6219100B2 (en) Image display device capable of displaying software keyboard and control method thereof
JP5866957B2 (en) Information processing apparatus, display control method, and program
JP2011165097A (en) Handwritten data processing apparatus
CN116880744A (en) Method, system, equipment and storage medium for realizing screen sliding based on virtual keys
KR20160069909A (en) Electronic board device and recording media for thereof
US20170351423A1 (en) Information processing apparatus, information processing method and computer-readable storage medium storing program
CN109976652B (en) Information processing method and electronic equipment
JP4951852B2 (en) Object selection device and program
US11435867B2 (en) Display method and electronic device using the same
KR100484143B1 (en) Editing apparatus in the terminal using touch screen and method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination