CN109375983B - Method for automatically adjusting input method window in terminal - Google Patents

Method for automatically adjusting input method window in terminal Download PDF

Info

Publication number
CN109375983B
CN109375983B CN201811565240.0A CN201811565240A CN109375983B CN 109375983 B CN109375983 B CN 109375983B CN 201811565240 A CN201811565240 A CN 201811565240A CN 109375983 B CN109375983 B CN 109375983B
Authority
CN
China
Prior art keywords
window
input method
service
size
adjusted
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
CN201811565240.0A
Other languages
Chinese (zh)
Other versions
CN109375983A (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.)
Guangdong Kamfu Technology Co ltd
Original Assignee
Guangdong Kamfu 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 Guangdong Kamfu Technology Co ltd filed Critical Guangdong Kamfu Technology Co ltd
Priority to CN201811565240.0A priority Critical patent/CN109375983B/en
Publication of CN109375983A publication Critical patent/CN109375983A/en
Application granted granted Critical
Publication of CN109375983B publication Critical patent/CN109375983B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a method for automatically adjusting an input method window in a terminal, which comprises the following steps: s1, monitoring whether any service in a screen of the terminal starts an input method program; s2, when it is monitored that a certain service needs to start an input method program, acquiring cursor position information in a current service window, the size of the current service window and the size of an input method window to be displayed in the input method program; s3, judging whether the business window is shielded after the input method window is displayed according to the cursor position information and the size of the input method window; and S4, if the occlusion exists, adjusting the position/size of the input method window to be displayed or the position/size of the service window so that the input method window and the service window are not crossed in the screen under the condition of meeting the minimum resolution of the screen. The method can avoid dragging the input method window in real time when the user transacts the business, thereby improving the input efficiency of the user and improving the use experience of the user.

Description

Method for automatically adjusting input method window in terminal
Technical Field
The invention relates to a computer technology, in particular to a method for automatically adjusting an input method window in a terminal.
Background
With the development of society, the application of self-service terminals is becoming more and more extensive, and the application of self-service terminals in various industries such as social security bureaus, banks, tax authorities, business bureaus, public security bureaus, tax, administrative service centers and the like is also becoming more and more popular. The self-service terminal equipment not only can bring convenient service, but also is an indispensable product in the social and economic development.
The self-service terminal industry is gradually promoted to perfect and develop the industry chain at the rapid development speed and mode in recent years, the types of self-service terminal products are increased year by year, the self-service terminal industry is applied to various aspects of life, the self-service terminal industry mode is certainly changed along with the development of social requirements, and the self-service terminal industry is certainly an important direction for the future development of the self-service terminal.
Information input and interface interaction on the self-service terminal machine are important embodiments of user experience and usability. Currently, there are problems with these aspects in a large percentage of kiosks. If the input method is popped up, the service system interface is shielded; the input method is popped up and then the input box is covered.
In an actual application scene, after the input method window is manually dragged by a user in time, when the user inputs the next word, the input method window still pops up and shields part of service information, so that the user needs to continuously drag the input method window, the input efficiency of the user is influenced, and the use experience of the user is reduced.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides the method for automatically adjusting the input method window in the terminal, so that the input method window does not need to be dragged in real time when a user handles a service, the input efficiency of the user is improved, and the use experience of the user is improved.
In a first aspect, the present invention provides a method for automatically adjusting an input method window in a terminal, including:
s1, monitoring whether any service in a screen of the terminal starts an input method program;
s2, when it is monitored that a certain service needs to start an input method program, acquiring cursor position information in a current service window, the size of the current service window and the size of an input method window to be displayed in the input method program;
s3, judging whether the business window is shielded after the input method window is displayed according to the cursor position information and the size of the input method window;
and S4, if the occlusion exists, adjusting the position/size of the input method window to be displayed or the position/size of the service window so that the input method window and the service window are not crossed in the screen under the condition of meeting the minimum resolution of the screen.
Optionally, the step S4 includes:
and if the adjusted input method window to be displayed is crossed with the adjusted business window, adjusting the transparency of the input method window to enable the display content below the input method window to be visible through the input method window.
Optionally, the method further comprises:
s5, displaying the adjusted input method window;
or,
s5', displaying the adjusted input method window and displaying the adjusted service window.
Optionally, if the size of the service window is adjusted, the method further includes:
and S6, when the closing operation of the displayed input method window is monitored, restoring the size of the adjusted service window to the initial size.
Optionally, the step S4 includes:
if the size of the input method window to be displayed is adjusted, calculating the height or width which can be extruded by the input method window to be displayed according to the condition of meeting the minimum resolution of the screen;
adjusting an input method window to be displayed according to the calculated height or width capable of being extruded;
judging whether the adjusted input method window covers the business window or not after being displayed;
if not, go to step S5;
otherwise, calculating the height or width which can be extruded by the service window according to the condition of meeting the minimum resolution of the screen;
adjusting the service window according to the height or width which can be extruded by the service window;
judging whether the adjusted input method window shields the adjusted service window after being displayed;
if not, go to step S5';
otherwise, executing the step of adjusting the transparency of the input method window.
Optionally, when the transparency of the input method window is adjusted, the adjusted service window and the input method window are both restored to the initial state.
Optionally, the adjusting the position/size of the input method window to be displayed in step S4 includes:
calling an API of an operating system of the terminal to reposition the coordinates of the input method window recorded in the input method program;
or,
the size of the service window in step S4 includes:
and calling an API of an operating system of the terminal to reposition the coordinates of the service window corresponding to the cursor.
Optionally, before the step S4, the method further includes:
and determining the minimum resolution of the screen according to the size of the current screen, the brightness of the screen and the ambient brightness.
In a second aspect, the invention provides a terminal comprising a memory, a processor, a bus and a computer program stored on the memory and executable on the processor, the processor performing the steps of any one of the first aspect.
The invention has the following beneficial effects:
according to the method, when it is monitored whether any service in a screen of the terminal starts an input method program or not, whether an input method window is crossed with a service window or not is judged, if the price difference exists, the position or the size of the input method window is adjusted or the size of the service window is adjusted, so that the input method window and the service window are not shielded, and the accuracy of information input is ensured.
Drawings
Fig. 1 is a schematic diagram of a method for automatically adjusting an input method window in a terminal according to an embodiment of the present invention;
fig. 2A and fig. 2B are schematic diagrams of a method for automatically adjusting an input method window in a terminal according to another embodiment of the present invention;
fig. 3 is a schematic diagram of a terminal according to an embodiment of the present invention.
Detailed Description
For the purpose of better explaining the present invention and to facilitate understanding, the present invention will be described in detail by way of specific embodiments with reference to the accompanying drawings.
As shown in fig. 1, this embodiment provides a method for automatically adjusting an input method window in a terminal, where the method may include the following steps:
s1, monitoring whether any service in a screen of the terminal starts an input method program;
and S2, when it is monitored that a certain service needs to start the input method program, acquiring cursor position information in a current service window, the size of the current service window and the size of an input method window to be displayed in the input method program.
In this step, it is necessary to determine which service form needs to call the input method program currently, for example, the service form currently using the input method program is determined by the cursor position information. In addition, it is also necessary to determine whether the displayed input method window blocks the current service window (i.e., the service window using the input method program) after the input method program is called, and for this reason, in this embodiment, the size of the current service window, the size of the screen visual interface, and the size of the input method window to be displayed in the input method program need to be monitored, so that the content in the following step S3 can be obtained.
Typically, the visual interface is default, and for this reason, the present embodiment does not require retrieval.
And S3, judging whether the business window is shielded after the input method window is displayed according to the position information of the cursor and the size of the input method window.
That is, in a specific implementation, the content of the step S3 is also required to be executed based on the size of the visual interface of the current terminal.
And S4, if the occlusion exists, adjusting the position/size of the input method window to be displayed or the position/size of the service window so that the input method window and the service window are not crossed in the screen under the condition of meeting the minimum resolution of the screen.
For example, in this embodiment, an operating system API in the terminal may be called, to obtain the coordinate information of the input method window to be displayed in the input method program, and reposition the coordinate information (X, Y) of the input method window, such as moving, or reducing the width or height ratio.
In addition, after the input method window is adjusted, when a service window is occluded, the size of the service window is further adjusted, for example, an operating system API in the terminal is called to perform width or height scaling on the size of the service window.
It should be noted that, the adjustment of the size of the input method window or the service window to be displayed needs to satisfy the condition of the minimum resolution of the current screen.
In practical applications, before the step S4, the method may further include the following step S0 not shown in the figure:
and S0, determining the minimum resolution of the screen according to the size of the current screen, the brightness of the screen and the ambient brightness.
According to the method, when it is monitored whether any service in a screen of the terminal starts an input method program or not, whether an input method window is crossed with a service window or not is judged, if the price difference exists, the position or the size of the input method window is adjusted or the size of the service window is adjusted, so that the input method window and the service window are not shielded, and the accuracy of information input is ensured.
Referring to fig. 2A, another embodiment of the present invention provides a method for automatically adjusting an input method window in a terminal, which may include the following steps:
201. and monitoring whether any service in a screen of the terminal starts an input method program.
202. When it is monitored that an input method program needs to be started for a certain service, the position information of a cursor in the current service, the size of a current service window and the size of an input method window to be displayed in the input method program are obtained.
203. And judging whether the business window is shielded after the input method window is displayed according to the position information of the cursor and the size of the input method window.
204. And if the shielding exists, adjusting the size of the input method window to be displayed, and specifically, calculating the height or width which can be extruded by the input method window to be displayed according to the condition that the minimum resolution of the screen is met.
205. And adjusting the input method window to be displayed according to the calculated height or width capable of being extruded.
206. Judging whether the adjusted input method window covers the business window or not after being displayed;
207. and if not, displaying the adjusted input method window.
In practical applications, since the input method window usually displays the minimum window, the compression can be performed without adjustment, in this case, in this embodiment, step 204 to step 207 can be skipped, and the height or width that the service window can be compressed is calculated directly on the premise that the occlusion exists, that is, step 208 described below is performed, as shown in fig. 2B.
208, if there is any occlusion in step 206, calculating the height or width of the service window that can be squeezed according to the condition that the minimum resolution of the screen is satisfied.
209. And adjusting the service window according to the height or width which can be extruded by the service window.
210. And judging whether the adjusted input method window blocks the adjusted service window after being displayed.
211. And if not, displaying the adjusted input method window and displaying the adjusted business window.
212. If the step 210 has occlusion, the transparency of the input method window is adjusted, and the adjusted service window and the input method window are both restored to the initial state.
That is to say, when the adjusted input method window to be displayed and the adjusted service window are crossed, the transparency of the input method window is adjusted, so that the display content below the input method window can be seen through the input method window. I.e. the business system input box has been squeezed out of the screen, no squeezing is performed.
In this embodiment, the window transparency is mainly realized by using a window transparency technology of GDI +.
213. And displaying the input method window after the transparency is adjusted.
214. After step 211, when the closing operation of the displayed input method window is monitored, the size of the adjusted service window is restored to the initial size.
According to the method, when it is monitored whether any service in a screen of the terminal starts an input method program or not, whether an input method window is crossed with a service window or not is judged, if the price difference exists, the position or the size of the input method window is adjusted or the size of the service window is adjusted, so that the input method window and the service window are not shielded, and the accuracy of information input is ensured.
In a second aspect, an embodiment of the present invention further provides a terminal, as shown in fig. 3, which includes a memory, a processor, a bus, and a computer program stored in the memory and executable on the processor, where the processor executes the steps of the first embodiment or the second embodiment, see the method in the foregoing embodiments, and details are not described here.
The terminal applied by the method of the embodiment can be understood as a self-service tax terminal, which is convenient for the operation of tax service personnel of a user.
The above embodiments may be referred to each other, and the present embodiment does not limit the embodiments.
Finally, it should be noted that: the above-mentioned embodiments are only used for illustrating the technical solution of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (5)

1. A method for automatically adjusting an input method window in a terminal is characterized by comprising the following steps:
s1, monitoring whether any service in a screen of the terminal starts an input method program; the terminal is a self-service terminal;
s2, when it is monitored that a certain service needs to start an input method program, acquiring cursor position information in a current service window, the size of the current service window and the size of an input method window to be displayed in the input method program;
s3, judging whether the business window is shielded after the input method window is displayed according to the cursor position information and the size of the input method window;
s4, if the occlusion exists, adjusting the position/size of the input method window to be displayed or the position/size of the service window so that the input method window and the service window are not crossed in the screen under the condition of meeting the minimum resolution of the screen;
wherein S4 includes:
if the size of the input method window to be displayed is adjusted, calculating the height or width which can be extruded by the input method window to be displayed according to the condition of meeting the minimum resolution of the screen;
adjusting an input method window to be displayed according to the calculated height or width capable of being extruded; specifically, an input method window to be displayed is adjusted by means of an API (application program interface) of an operating system in the terminal;
judging whether the adjusted input method window covers the business window or not after being displayed;
if not, displaying the adjusted input method window;
otherwise, calculating the height or width which can be extruded by the service window according to the condition of meeting the minimum resolution of the screen;
adjusting the service window according to the height or width which can be extruded by the service window;
judging whether the adjusted input method window shields the adjusted service window after being displayed;
if not, displaying the adjusted input method window and displaying the adjusted business window;
otherwise, if the adjusted input method window to be displayed and the adjusted business window are crossed, the transparency of the input method window is adjusted, the adjusted business window and the adjusted input method window are both restored to the initial state, and the display content below the input method window is made to be visible through the input method window.
2. The method of claim 1, wherein if the size of the service window is adjusted, the method further comprises:
and S6, when the closing operation of the displayed input method window is monitored, restoring the size of the adjusted service window to the initial size.
3. The method according to claim 1, wherein the adjusting of the position/size of the input method window to be displayed in the step S4 comprises:
calling an API of an operating system of the terminal to reposition the coordinates of the input method window recorded in the input method program;
or,
the size of the service window in step S4 includes:
and calling an API of an operating system of the terminal to reposition the coordinates of the service window corresponding to the cursor.
4. The method according to claim 1, wherein before the step S4, the method further comprises:
and determining the minimum resolution of the screen according to the size of the current screen, the brightness of the screen and the ambient brightness.
5. A terminal, characterized in that it comprises a memory, a processor, a bus and a computer program stored on the memory and executable on the processor, the processor performing the steps of any of claims 1-4.
CN201811565240.0A 2018-12-20 2018-12-20 Method for automatically adjusting input method window in terminal Active CN109375983B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811565240.0A CN109375983B (en) 2018-12-20 2018-12-20 Method for automatically adjusting input method window in terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811565240.0A CN109375983B (en) 2018-12-20 2018-12-20 Method for automatically adjusting input method window in terminal

Publications (2)

Publication Number Publication Date
CN109375983A CN109375983A (en) 2019-02-22
CN109375983B true CN109375983B (en) 2022-01-07

Family

ID=65371015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811565240.0A Active CN109375983B (en) 2018-12-20 2018-12-20 Method for automatically adjusting input method window in terminal

Country Status (1)

Country Link
CN (1) CN109375983B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110083429B (en) * 2019-04-29 2024-03-22 努比亚技术有限公司 Wearable device, input method panel display control method thereof and storage medium
CN110262718B (en) * 2019-06-20 2021-08-03 北京字节跳动网络技术有限公司 Input method window setting method and device, mobile terminal and storage medium
CN110362373A (en) 2019-06-29 2019-10-22 华为技术有限公司 A kind of method and relevant device controlling screen wicket
CN110515510B (en) 2019-08-20 2021-03-02 北京小米移动软件有限公司 Data processing method, device, equipment and storage medium
CN110795196A (en) * 2019-10-31 2020-02-14 北京字节跳动网络技术有限公司 Window display method, device, terminal and storage medium
CN111638818B (en) * 2020-04-29 2022-05-10 维沃移动通信有限公司 Window position adjusting method and device and electronic equipment
CN112675535B (en) * 2020-12-24 2023-08-01 咪咕互动娱乐有限公司 Display interface adjusting method, device, network equipment and storage medium
CN117492609B (en) * 2023-12-29 2024-05-17 荣耀终端有限公司 Display method, readable storage medium, program product and electronic device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493749A (en) * 2008-01-21 2009-07-29 联想(北京)有限公司 Windows display status regulation method and apparatus
CN102541411A (en) * 2010-12-26 2012-07-04 上海量明科技发展有限公司 Input method interface adjusting method and system
CN104793923A (en) * 2014-01-20 2015-07-22 中兴通讯股份有限公司 Suspension input implementing method and device
CN105677166A (en) * 2014-11-19 2016-06-15 阿里巴巴集团控股有限公司 Adjusting method and device for input method window
CN106598448A (en) * 2016-10-29 2017-04-26 深圳市金立通信设备有限公司 Input method management method and terminal
CN107102806A (en) * 2017-01-25 2017-08-29 维沃移动通信有限公司 A kind of split screen input method and mobile terminal
CN107450843A (en) * 2017-08-21 2017-12-08 山东浪潮通软信息科技有限公司 A kind of input frame method of adjustment and a kind of mobile terminal
CN107526494A (en) * 2017-09-06 2017-12-29 北京小米移动软件有限公司 Keyboard display method, device, terminal and storage medium
CN108920083A (en) * 2018-07-02 2018-11-30 珠海市魅族科技有限公司 A kind of input method application method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108475096A (en) * 2016-12-23 2018-08-31 北京金山安全软件有限公司 Information display method and device and terminal equipment
CN107566632A (en) * 2017-08-29 2018-01-09 广东欧珀移动通信有限公司 Interface of input method display methods, device and terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493749A (en) * 2008-01-21 2009-07-29 联想(北京)有限公司 Windows display status regulation method and apparatus
CN102541411A (en) * 2010-12-26 2012-07-04 上海量明科技发展有限公司 Input method interface adjusting method and system
CN104793923A (en) * 2014-01-20 2015-07-22 中兴通讯股份有限公司 Suspension input implementing method and device
CN105677166A (en) * 2014-11-19 2016-06-15 阿里巴巴集团控股有限公司 Adjusting method and device for input method window
CN106598448A (en) * 2016-10-29 2017-04-26 深圳市金立通信设备有限公司 Input method management method and terminal
CN107102806A (en) * 2017-01-25 2017-08-29 维沃移动通信有限公司 A kind of split screen input method and mobile terminal
CN107450843A (en) * 2017-08-21 2017-12-08 山东浪潮通软信息科技有限公司 A kind of input frame method of adjustment and a kind of mobile terminal
CN107526494A (en) * 2017-09-06 2017-12-29 北京小米移动软件有限公司 Keyboard display method, device, terminal and storage medium
CN108920083A (en) * 2018-07-02 2018-11-30 珠海市魅族科技有限公司 A kind of input method application method and device

Also Published As

Publication number Publication date
CN109375983A (en) 2019-02-22

Similar Documents

Publication Publication Date Title
CN109375983B (en) Method for automatically adjusting input method window in terminal
EP2871560B1 (en) Image processing method and apparatus
CN109388317B (en) Picture loading method, terminal device and storage medium
CN111813308B (en) Interface processing method and device, electronic equipment and storage medium
CN107870795B (en) Method and device for displaying electronic map
CN112965650B (en) Thermodynamic diagram visualization method, thermodynamic diagram visualization system and thermodynamic diagram visualization computer equipment
CN113655975B (en) Image display method, image display device, electronic apparatus, and medium
CN113657518B (en) Training method, target image detection method, device, electronic device, and medium
CN108989872B (en) Android television background fast switching method, framework, server and storage medium
CN108008876B (en) Display method, device and equipment of floating window and storage medium
CN110442499B (en) Method and device for testing and improving page response performance and terminal equipment
CN104516696A (en) Information processing method and electronic device
CN113839998A (en) Image data transmission method, device, equipment, storage medium and program product
CN109739403B (en) Method and apparatus for processing information
CN118172229A (en) Image rendering method, device, electronic equipment and readable storage medium
CN113645484B (en) Data visualization accelerated rendering method based on graphic processor
CN111078785A (en) Method and device for visually displaying data, electronic equipment and storage medium
CN113112472B (en) Image processing method and device
CN114549303A (en) Image display method, image processing method, image display device, image processing equipment and storage medium
CN113836455A (en) Special effect rendering method, device, equipment, storage medium and computer program product
CN112363787A (en) Image processing method and device and electronic equipment
US20230078041A1 (en) Method of displaying animation, electronic device and storage medium
CN113744414B (en) Image processing method, device, equipment and storage medium
CN114510187B (en) Image display method and device, electronic equipment and medium
CN117539567A (en) Window dragging method and device, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Method of Automatic Adjustment of Input Method Window in Terminal

Effective date of registration: 20230518

Granted publication date: 20220107

Pledgee: Guangdong Nanhai rural commercial bank Limited by Share Ltd. Guicheng branch

Pledgor: GUANGDONG KAMFU TECHNOLOGY Co.,Ltd.

Registration number: Y2023980040910

PE01 Entry into force of the registration of the contract for pledge of patent right