User interface synchronous scrolling system and user interface synchronous scrolling method
AssigneeWistron Corporation
InventorsFang-Wen Liao, Yu-Ping Lin, Hsin Ting Ho, Ming Jen Chan, Li-Yu Yang
Life of this patent
Estimating the term…
Abstract
A user interface synchronous scrolling method includes: opening a plurality of user interfaces, obtaining a scrolling parameter through the input-output interface; and judging whether the application program corresponding to each user interface belongs to a software support mode. By determining whether the application program corresponding to each user interface belongs to the software support mode, and providing corresponding control steps, the effect of synchronous scrolling for multiple user interfaces is achieved.
Claims16
A user interface synchronous scrolling system, comprising:
- a processor;
- an input-output interface;
- and
- a storage device, wherein the processor accesses a synchronous scrolling program stored in the storage device to execute the synchronous scrolling program, wherein the processor executes the following steps:
- opening a plurality of user interfaces;
- obtaining a scrolling parameter through the input-output interface;
- and
- determining whether each application program corresponding to the user interface belongs to a software support mode, wherein the processor determining whether the application program belongs to the software support mode means determining whether the application program has a component belonging to an AutomationElement Class;
- wherein, in response to the processor determining that the application program belongs to the software support mode, the processor finds a window object belonging to the AutomationElement Class corresponding to the user interface according to a handle corresponding to the user interface, finds a control component according to the window object, sets the control component of the user interface as a synchronous scrolling value according to the scrolling parameter, wherein the AutomationElement Class is a function for representing a UI Automation item in a UI automation tree and containing values that are used as identifiers by UI Automation client applications;
- wherein, in response to the processor determining that the application program does not belong to the software support mode, the processor obtains scroll bar information of the user interface according to the handle corresponding to the user interface, and sets the scroll bar information as the synchronous scrolling value according to the scrolling parameter.
A user interface synchronous scrolling method, for accessing a synchronous scrolling program stored in a storage device to execute the synchronous scrolling program by a processor, wherein the user interface synchronous scrolling method comprises:
- opening a plurality of user interfaces;
- obtaining a scrolling parameter through an input-output interface;
- and
- determining whether each application program corresponding to the user interface belongs to a software support mode, wherein determining whether the application program belongs to the software support mode means determining whether the application program has a component belonging to an AutomationElement Class;
- wherein, in response to the processor determining that the application program belongs to the software support mode, the processor finds a window object belonging to the AutomationElement Class corresponding to the user interface according to a handle corresponding to the user interface, finds a control component according to the window object, and sets the control component of the user interface as a synchronous scrolling value according to the scrolling parameter, wherein the AutomationElement Class is a function for representing a UI Automation item in a UI automation tree and containing values that are used as identifiers by UI Automation client applications;
- wherein, in response to the processor determining that the application program does not belong to the software support mode, the processor obtains scroll bar information of the user interface according to the handle corresponding to the user interface, and sets the scroll bar information as the synchronous scrolling value according to the scrolling parameter.
Dependencies are inferred from the claim text.