Method, apparatus, device, medium and product for triggering shortcut operation

By capturing and matching user swipe actions in real time through a trajectory monitoring application, the problem of keyboard-free quick operations in 2-in-1 touch tablets is solved, enabling the quick triggering of quick operations.

CN122261461APending Publication Date: 2026-06-23NEW H3C INTELLIGENCE TERMINAL CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610347080.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-03-19
Publication Date
2026-06-23

AI Technical Summary

Technical Problem

In 2-in-1 touch tablets, existing shortcut operation methods cannot meet the usage scenarios of no keyboard dependence and touch priority, and cannot quickly bring up application functions and have poor operation continuity.

Method used

The application captures the user's swipe movement trajectory in real time through trajectory monitoring, automatically starts and monitors the swipe trajectory using system permissions, and matches the preset trigger trajectory to trigger the corresponding shortcut operation, such as quickly opening the annotation application.

Benefits of technology

It enables quick triggering of shortcut operations on 2-in-1 tablets via pure touch interaction, without relying on a keyboard and without interrupting the current operation, thus improving operational efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122261461A_ABST
    Figure CN122261461A_ABST
Patent Text Reader

Abstract

The application relates to the computer technical field and discloses a method, device, equipment, medium and product for triggering a shortcut operation, the method comprising: starting a trajectory monitoring application; in response to a sliding operation input by a user, determining a sliding trajectory corresponding to the sliding operation based on the trajectory monitoring application; matching the sliding trajectory with at least one preset trigger trajectory; and in the case where the sliding trajectory matches a preset target trigger trajectory, triggering a shortcut operation corresponding to the target trigger trajectory. The application can provide a shortcut operation such as a comment whiteboard by screen sliding specified trajectory, and a user can realize quick starting of a target application such as a comment application through pure touch interaction, without relying on a keyboard and without destroying a current operation picture, so that the user does not need to interrupt current operation, and the application can be applied to an interactive scene involving a two-in-one tablet computer and other touch devices, thereby helping to improve operation efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, specifically to methods, apparatus, devices, media, and products for triggering shortcut operations. Background Technology

[0002] With the popularization of mobile office and online learning scenarios, 2-in-1 touch tablets have become an important tool for users' daily office work and study due to their core advantages of "portability + touch interaction". Against this backdrop, users' demand for quick operations such as writing documents, annotating the screen, taking screenshots instantly, and quickly opening applications on the tablet with a stylus is increasing, and the core demand is focused on "not interrupting the current operation and quickly activating application functions".

[0003] While many shortcut methods rely on keyboard shortcuts, external keyboards are not commonly used in the actual usage scenarios of 2-in-1 tablets. Furthermore, this requires the shortcut app to support shortcut launch; if the shortcut app does not support it, it cannot be implemented. Summary of the Invention

[0004] In view of this, this application provides a method, apparatus, device, medium and product for triggering shortcut operations to solve problems such as the inability to quickly trigger shortcut operations or the need to use a keyboard.

[0005] Firstly, this application provides a method for triggering a shortcut operation, the method comprising:

[0006] Start the trajectory monitoring application; the trajectory monitoring application is automatically started based on the system service after the system service with system privileges is reduced to the user privileges corresponding to the session of the currently active user; In response to a user-input swipe gesture, the trajectory monitoring application determines the swipe trajectory corresponding to the swipe gesture. The sliding trajectory is matched with at least one preset trigger trajectory; If the sliding trajectory matches the preset target trigger trajectory, the shortcut operation corresponding to the target trigger trajectory is triggered.

[0007] Secondly, this application provides a device for triggering a shortcut operation, the device comprising: A startup module is used to start the trajectory monitoring application; the trajectory monitoring application is automatically started based on the system service after the system service with system privileges is reduced to the user privileges corresponding to the session of the currently active user. The monitoring module is used to respond to the user's input swipe operation and determine the swipe trajectory corresponding to the swipe operation based on the trajectory monitoring application; A matching module is used to match the sliding trajectory with at least one preset trigger trajectory; The processing module is used to trigger the shortcut operation corresponding to the target trigger trajectory when the sliding trajectory matches the preset target trigger trajectory.

[0008] Thirdly, this application provides an electronic device, including: a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the method of triggering a shortcut operation as described in the first aspect or any corresponding embodiment.

[0009] Fourthly, this application provides a computer-readable storage medium storing computer instructions for causing a computer to perform a method for triggering a shortcut operation as described in the first aspect or any corresponding embodiment.

[0010] Fifthly, this application provides a computer program product, including computer instructions for causing a computer to perform a method for triggering a shortcut operation as described in the first aspect or any corresponding embodiment.

[0011] The method for triggering shortcut operations provided in this application utilizes a background application that monitors the trajectory of a user's swipe input. If this trajectory matches a preset target trigger trajectory, the corresponding shortcut operation can be automatically triggered, such as quickly opening the target application. This method provides an entry point for invoking shortcut operations like an annotation whiteboard by swiping a specified trajectory on the screen. Users can quickly launch target applications such as annotation applications and trigger related shortcut operations through pure touch interaction, without relying on a keyboard or disrupting the current screen. Users do not need to interrupt their current operation, making it applicable to interaction scenarios involving touch devices such as 2-in-1 tablets, thus improving operational efficiency. Attached Figure Description

[0012] To more clearly illustrate the technical solutions in the specific embodiments of this application or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0013] Figure 1 This is a schematic diagram illustrating an application scenario according to an embodiment of this application; Figure 2 This is a schematic flowchart of a first method for triggering a shortcut operation according to an embodiment of this application; Figure 3 This is a second flowchart illustrating a method for triggering shortcut operations according to an embodiment of this application; Figure 4 This is a flowchart illustrating a self-starting trajectory monitoring application according to an embodiment of this application; Figure 5 This is a schematic diagram illustrating a process of listening to a sliding trajectory using a trajectory monitoring application according to an embodiment of this application; Figure 6 This is a schematic diagram of trajectory matching according to an embodiment of this application; Figure 7 This is a schematic diagram of a trajectory matching process based on multiple matching methods according to an embodiment of this application; Figure 8 This is a flowchart illustrating a slide-triggered shortcut operation according to an embodiment of this application; Figure 9 This is a structural block diagram of a device for triggering quick operations according to an embodiment of this application; Figure 10 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application. Detailed Implementation

[0014] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0015] It is understood that before using the technical solutions disclosed in the various embodiments of this application, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this application in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0016] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.

[0017] Before providing a detailed description of the embodiments of this application, some of the terms and concepts involved in the embodiments of this application will be explained. These explanations are intended to make the embodiments of this application easier to understand and should not be considered as limiting the scope of protection claimed in this application.

[0018] (1) Track monitoring: refers to the process of registering an input device through the system API (Application Programming Interface) to capture data such as point coordinates and events generated by stylus or touch operation in real time, and then parsing and processing the data.

[0019] (2) Stylus trajectory: refers to the trajectory data set generated when a user performs operations such as pressing, sliding, and lifting on the touch screen using a dedicated stylus such as an electromagnetic pen or capacitive pen. It includes continuous coordinate points (x, y) and timestamps (t).

[0020] (3) Touch trajectory: refers to the trajectory data set generated when the user performs operations such as pressing, sliding, and lifting on the touch screen with their finger, which includes continuous coordinate points (x, y) and timestamps (t).

[0021] (4) IPC (Inter-Process Communication): refers to the technology for data exchange and instruction transmission between different processes. In this embodiment, it can be used by the trajectory monitoring application to send a wake-up instruction to the target application.

[0022] (5) UIAccess: Windows application manifest configuration item. When enabled, it can elevate the application window level and allow the application to interact with high-privilege windows. It needs to be installed in conjunction with the system trusted directory and digital signature.

[0023] (6) RawInput: Windows system API suite, used by applications to directly receive raw data from input devices such as touch, stylus, and keyboard without system preprocessing.

[0024] (7) UAC (User Account Control): The permission management mechanism of Windows system, used to verify the running permissions of applications and prevent unauthorized programs from performing high-privilege operations.

[0025] (8) Hid.dll (Human Interface Device Dynamic Link Library): It is a core system library built into the Windows system. It provides a set of standardized API interfaces for communicating with input devices (such as styluses, touch screens, mice, keyboards, etc.) that conform to the HID (Human Interface Device) protocol. Its core functions include parsing the raw input data of HID devices, identifying device types, and extracting key information such as coordinates / pressure / timing of device input.

[0026] With the popularization of mobile office and online learning scenarios, 2-in-1 touch tablets have become an important tool for users' daily office work and study due to their core advantages of "portability + touch interaction". Against this backdrop, users' demand for quick operations such as writing documents, annotating the screen, taking screenshots instantly, and quickly opening applications on the tablet with a stylus is increasing, and the core demand is focused on "not interrupting the current operation and quickly activating application functions".

[0027] However, there are significant shortcomings in related quick operations (such as quickly launching annotation applications), which fail to meet the "no keyboard dependency, touch-first" usage scenario of 2-in-1 tablets. Taking quickly launching annotation applications as an example, the specific issues are the lack of compatibility with the three related launch methods: 1. Return to the desktop and click the annotation application icon: This method will forcibly leave the current operation interface, disrupt the user's operation continuity, and fail to achieve the core requirement of annotating directly on the current interface; 2. Find and launch the annotation application from the Start Menu: The operation steps are cumbersome, requiring multiple navigation searches, which cannot meet the user's need for instant access; 3. External keyboard, wake up via shortcut key: The main use case of 2-in-1 tablets is the portable mode without keyboard, and this method is limited by whether the annotation application supports shortcut key configuration. If the application does not support it, it cannot be implemented, and its versatility is poor.

[0028] As one optional application scenario in the embodiments of this application, such as Figure 1 As shown, application 101 is installed in terminal device 110, and user 130 can interact with application 101 through terminal device 110 and / or access device of terminal device 110.

[0029] For example, application 101 can be arbitrary, supporting trajectory input via stylus or finger. For instance, application 101 could be an educational application, a drawing application, etc. Figure 1 In the application scenario shown, if application 101 is active, the terminal device 110 can display the interface 102 of application 101. The interface 102 may include various pages that application 101 can provide, such as interactive pages, settings pages, query pages, etc.

[0030] In some embodiments, terminal device 110 is communicatively connected to server 120 to provide services to application 101. Terminal device 110 may be a mobile terminal, fixed terminal, or portable terminal, including but not limited to mobile phones, desktop computers, laptop computers, multimedia tablets, e-book devices, gaming devices, or any combination thereof, including accessories and peripherals of these devices or any combination thereof. In some embodiments, terminal device 110 may also support any type of interface, and server 120 may be various types of computing systems or servers capable of providing computing power, including but not limited to mainframes, edge computing nodes, and computing devices in cloud environments.

[0031] It should be noted that, Figure 1 This is merely an example of an application scenario and does not limit the scope of protection of this application.

[0032] Compared to shortcut keys and other quick launch solutions, waking up quick applications (such as annotation applications) via stylus and touch can enhance the interactive experience and is more in line with the portable usage scenarios of 2-in-1 devices.

[0033] The method for triggering shortcut operations provided in this embodiment can provide shortcut access such as an annotation whiteboard by swiping a specified trajectory on the screen. Users can quickly launch applications such as annotation and quickly trigger related shortcut operations through pure touch interaction, without relying on the keyboard and without interrupting the current operation. It can be applied to touch devices such as 2-in-1 tablets to improve operating efficiency.

[0034] According to an embodiment of this application, a method embodiment for triggering a shortcut operation is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0035] This embodiment provides a method for triggering quick operations, which can be used in the aforementioned terminal devices, such as mobile terminals, computers, and other devices that support touch input; specifically, the terminal device can be a 2-in-1 tablet computer. Figure 2 This is a flowchart of a method for triggering shortcut operations according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps.

[0036] Step S201: Start the trajectory monitoring application; the trajectory monitoring application is automatically started based on the system service after the system service with system privileges is reduced to the user privileges corresponding to the session of the currently active user.

[0037] In this embodiment, the terminal device has an application installed that can monitor a trajectory, i.e., a trajectory monitoring application. By monitoring the trajectory input by the user, it triggers corresponding shortcut operations. Specifically, the trajectory monitoring application needs to be launched when the functions provided in this embodiment are needed.

[0038] The trajectory monitoring application can also be set to start automatically on boot, automatically launching after the terminal device is started. This trajectory monitoring application is a background application; after it is launched, it will not be displayed in the terminal device's graphical user interface, thus allowing the user to operate other applications displayed on the terminal device (such as drawing applications).

[0039] Specifically, the trajectory monitoring application is automatically started based on the system service after the system service with system privileges is downgraded to the user privileges corresponding to the session of the currently active user. This ensures that the trajectory monitoring application can automatically start even after a user switch. This will be explained in more detail later.

[0040] Step S202: In response to the user's input swipe operation, determine the swipe trajectory corresponding to the swipe operation based on the trajectory monitoring application.

[0041] In this embodiment, when a user needs to trigger a corresponding shortcut operation, they can input the corresponding swipe operation into the terminal device; the trajectory monitoring application can respond to the swipe operation input by the user, thereby determining the swipe trajectory corresponding to the swipe operation.

[0042] Specifically, the trajectory monitoring application can obtain the coordinates of each position corresponding to the sliding operation, and the sliding trajectory corresponding to the sliding operation can be determined based on the coordinates of each position.

[0043] Step S203: Match the sliding trajectory with at least one preset trigger trajectory.

[0044] The trajectory monitoring application has at least one preset trajectory, i.e., a trigger trajectory. This preset trigger trajectory can be a system default trajectory or a trajectory set by the user. Furthermore, each preset trigger trajectory corresponds to a specific shortcut action, meaning there is a one-to-one correspondence between shortcut actions and preset trigger trajectories.

[0045] After obtaining the sliding trajectory, the trajectory monitoring application can match the sliding trajectory with each preset trigger trajectory to determine whether there is a trajectory among the preset trigger trajectories that matches the sliding trajectory.

[0046] Step S204: If the sliding trajectory matches the preset target trigger trajectory, trigger the shortcut operation corresponding to the target trigger trajectory.

[0047] In this embodiment, if the sliding trajectory does not match any of the preset trigger trajectories, it means that the sliding trajectory input by the user does not meet the triggering conditions for the shortcut operation. For example, if the user is performing a normal sliding operation, such as drawing lines in a drawing application, then no shortcut operation needs to be executed. Conversely, if the sliding trajectory matches a preset trigger trajectory, then the corresponding shortcut operation needs to be executed.

[0048] For ease of description, the preset trigger trajectory that matches the sliding trajectory is called the target trigger trajectory. The trajectory monitoring application can then trigger the shortcut operation corresponding to the target trigger trajectory.

[0049] For example, multiple trigger tracks can be pre-set, with trigger track A corresponding to the shortcut operation "Save current annotation content"; trigger track B corresponding to the shortcut operation "Open annotation application"; and trigger track C corresponding to the shortcut operation "Capture current screen and import annotation whiteboard". If the sliding track matches trigger track B, then trigger track B is the target trigger track, and the triggered shortcut operation is "Open annotation application". For example, the track monitoring application can send a wake-up command to the annotation application via inter-process communication (IPC) to open the annotation application for user use.

[0050] The method for triggering shortcut operations provided in this embodiment utilizes a background application that monitors the trajectory. It can acquire the swiping trajectory input by the user through a swipe operation. If the swipe trajectory matches a preset target trigger trajectory, it can automatically trigger the shortcut operation corresponding to that target trigger trajectory, such as quickly opening the corresponding target application. This method provides an entry point for invoking shortcut operations such as annotating a whiteboard by swiping a specified trajectory on the screen. Users can quickly launch target applications such as annotation applications and quickly trigger related shortcut operations through pure touch interaction, without relying on a keyboard or disrupting the current operation screen. Users do not need to interrupt their current operation, and this method can be applied to interactive scenarios involving touch devices such as 2-in-1 tablets, helping to improve operational efficiency.

[0051] This embodiment provides a method for triggering quick operations, which can be used in the aforementioned terminal devices, such as mobile terminals, computers, and other devices that support touch input; specifically, the terminal device can be a 2-in-1 tablet computer. Figure 3 This is a flowchart of a method for triggering shortcut operations according to an embodiment of this application, such as... Figure 3 As shown, the process includes the following steps.

[0052] Step S301: Start the trajectory monitoring application. This trajectory monitoring application is automatically started based on the system service after the system service with system privileges is downgraded to the user privileges corresponding to the session of the currently active user.

[0053] Since users typically need to use the trajectory monitoring application while using other applications (such as drawing applications), manually launching the trajectory monitoring application could disrupt their current screen, requiring them to exit the other application before opening the trajectory monitoring application; or, conversely, requiring them to launch the trajectory monitoring application beforehand. Therefore, this embodiment sets the trajectory monitoring application to start automatically on boot.

[0054] In most cases, the automatic startup solution only applies to a single user. When the logged-in user on the terminal device is switched from user A to user B (for example, switching from one account to another in Windows), user B will not be able to start the trajectory monitoring application automatically and will still need to manually start the trajectory monitoring application.

[0055] In this embodiment, a system service with system privileges is used to enable the trajectory monitoring application to start automatically upon system boot, so that the trajectory monitoring application can also start automatically after a user switch. Specifically, step S301, "starting the trajectory monitoring application," may include steps S3011 to S3012.

[0056] Step S3011: In response to an operating system startup command or a user switching command, start a system service with system privileges.

[0057] Step S3012: Reduce the system service to the user privileges corresponding to the currently active user, and start the trajectory monitoring application in the currently active user.

[0058] In this embodiment, the user can trigger a startup command for the terminal device's operating system by pressing the power button; alternatively, the user can log out of the current account and switch to another account, thereby triggering a user switching command. Upon receiving the operating system startup command or the user switching command, the system will automatically start the corresponding system service, which has the highest system privileges.

[0059] In Windows operating systems, system services such as Windows Services run by default under the System user (who has the highest system privileges). However, trajectory monitoring applications are user applications and require ordinary user privileges to run in accordance with operating system security specifications. Therefore, system services cannot directly launch trajectory monitoring applications, and even if they could, the currently active user would be unable to use the application.

[0060] In this embodiment, the system service is first downgraded to the user permissions corresponding to the currently active user. Then, the trajectory monitoring application is started for the currently active user, allowing the current active user to use the trajectory monitoring application. When a user switch occurs, since the system service is also started after the user switch, the system service can re-execute step S3012. That is, after the current active user changes, the trajectory monitoring application can be automatically started for the latest current active user.

[0061] Optionally, step S3012 "reducing the system service to the user privileges corresponding to the currently active user and starting the trajectory monitoring application in the currently active user" includes the following steps a1 to a4.

[0062] Step a1: Obtain the session identifier of the currently active user based on system services.

[0063] In this embodiment, after the System service starts, it can obtain the session identifier (session ID) of the currently active user. For example, the System service calls the WTSGetActiveConsoleSessionId interface to obtain the current session information, thereby querying the session ID (SessionId) of the currently active user in the console. For example, after a user logs into the operating system, their active session is Session 1.

[0064] The System service runs in session 0 (i.e., Session 0). By obtaining the session identifier of the currently active user, the entry point of the user session can be located, which can solve the problem of session isolation between the System service session (Session 0) and user sessions (e.g., Session 1, Session 2, etc.).

[0065] Step a2: Based on system services, query the access token of the current active user corresponding to the session identifier of the current active user.

[0066] After obtaining the session identifier of the currently active user, the access token of the currently active user can be determined based on the session identifier. For example, WTSQueryUserToken(sessionId, outuserToken) can be called to obtain the access token (userToken) of the session user, which is the basis for subsequent permission operations.

[0067] Step a3: Based on system services, convert the access token into a master token for the currently active user; the master token has the permission to start a process as the currently active user.

[0068] This access token is merely a mock token, only capable of temporarily simulating simple operations and cannot be used to launch a process. Therefore, in this embodiment, the token is copied and converted, that is, the access token is converted into a primary token. Specifically, the DuplicateTokenEx method can be used to copy and convert the token, generating a primary token. This primary token has the permission to launch a process as the currently active user, so new processes can be created based on the primary token subsequently.

[0069] Furthermore, since ordinary user applications rely on a user-specific environment to run—for example, a trajectory monitoring application needs to read user directory configurations and write logs to the user directory—and the System service's environment is a system-level environment, the user environment corresponding to the trajectory monitoring application can be created first. Specifically, the CreateEnvironmentBlock method can be called to create an environment variable block (such as the user's desktop path, AppData directory, user-level system variables, etc.) that matches the user session, ensuring that the new process corresponding to the trajectory monitoring application has the correct environment settings.

[0070] Step a4: Based on system services, start the trajectory monitoring application in the user session corresponding to the master token.

[0071] In this embodiment, the system service can use the incoming user master token to start the process corresponding to the trajectory monitoring application within the user session bound to the master token, using the permissions and user environment of the currently active user. Specifically, the System service can actively call the CreateProcessAsUser API, passing in the aforementioned master token, user environment block, etc., to initiate a request to create a new process. After receiving the request, the Windows kernel creates the process corresponding to the trajectory monitoring application based on the incoming master token of the currently active user. The running user, permission level, and session of this process all follow the relevant configuration of the master token. For example, the running user of this process is the currently active user, the permission level is ordinary user permissions, and the session is Session 1, etc., so that the permissions and sessions of the trajectory monitoring application and the System service are completely isolated.

[0072] One specific process for implementing the auto-start of a trajectory monitoring application based on system services can be found in [reference needed]. Figure 4 As shown, it will not be elaborated further here.

[0073] In this embodiment, due to the automatic startup feature of the Service service, it is automatically loaded during the system startup phase without user intervention, thus achieving automatic startup of the trajectory monitoring application. Furthermore, when a user logs out or switches users (e.g., user A logs out and user B logs in), the System service remains running in Session 0. After a new user logs in, the System service can re-execute the above steps to obtain the new user's (e.g., user B's) session ID, token, etc., thereby automatically starting the trajectory monitoring application with normal permissions in the new user's session. This ensures that the trajectory monitoring application can automatically start regardless of whether any user logs in or switches.

[0074] In some alternative implementations, the method further includes steps b1 to b2 before step S301 “start track monitoring application”.

[0075] Step b1: In the application manifest file of the trajectory monitoring application, enable user interface access permissions for the trajectory monitoring application; user interface access permissions are used to allow the trajectory monitoring application to interact with other applications with higher permissions.

[0076] Step b2: Install the trajectory monitoring application into the system's trusted directory.

[0077] For Windows operating systems, due to Windows security mechanisms, ordinary privileged applications cannot listen to administrator programs and UWP (Universal Windows Platform) applications in Windows operating systems; this is mainly because: (1) UIPI (User Interface Privilege Isolation): prevents low integrity level processes from interacting with high integrity level processes; (2) AppContainer sandbox: provides an independent isolation environment for UWP applications and restricts access by external processes.

[0078] To ensure security and stable operation, the trajectory monitoring application runs with normal permissions. This means that a trajectory monitoring application with normal permissions cannot monitor trajectories on administrator programs and UWP applications. Therefore, this embodiment grants user interface access permissions (UIAccess) to the trajectory monitoring application.

[0079] UIAccess (User Interface Access Permission) is a special permission designed by Windows for accessibility applications (such as screen readers and stylus assistants). When enabled, it can elevate the application window level, thereby allowing ordinary permission applications to break through the process integrity level restriction and access or capture user interface input data of windows at all levels (including administrators and UWP). This enables trajectory monitoring applications to listen to trajectories triggered by other applications with various permissions.

[0080] Specifically, the trajectory monitoring application has an application manifest file; the application manifest file (app.manifest) is a configuration file that declares the application's runtime configuration information to the operating system (such as Windows). It can be an XML configuration file that declares the application's identity, dependencies, and permission requirements to the operating system. User interface access permissions can be enabled for the trajectory monitoring application in this application manifest file; for example, UIAccess="true". After enabling user interface access permissions, the trajectory monitoring application can interact with other applications with higher permissions (such as administrator applications). When the user uses the terminal device, even if the currently active window is the administrator application, the trajectory monitoring application can still obtain the swiping trajectory triggered by that administrator application.

[0081] Because the Windows operating system has certain prerequisites for UIAccess, it requires the application to be installed in a system trusted directory such as %ProgramFiles% or %ProgramFiles(x86)% to be effective. Therefore, the track monitoring application also needs to be installed in a system trusted directory, and cannot be an invalid directory such as the desktop or My Documents.

[0082] In addition, the tracking application typically needs to be digitally signed. This digital signature is then used to pass Windows UAC (User Account Control) security verification, demonstrating that the tracking application has not been tampered with and is of a trustworthy origin, thus allowing UIAccess permissions. For tracking applications installed in the system's trusted directory and possessing a valid digital signature recognized by the operating system, UIAccess permissions can be normally enabled, allowing the tracking application to bypass permission barriers and record the swipe trajectories of other applications.

[0083] Optionally, after step S301 "start track monitoring application", the method may further include step b3.

[0084] Step b3: Set the window level of the trajectory monitoring application to the highest level and set it to a hidden window.

[0085] In this embodiment, to ensure that the trajectory monitoring application can monitor all other applications (including administrator applications, UWP applications, etc.), in addition to granting them user interface access permissions, its window layer can also be set to the highest layer. Specifically, the SetWindowPos function can be used to set its window layer to HWND_TOPMOST, ensuring that the trajectory monitoring application's window is on top of all other applications and is not obscured by any other windows.

[0086] Furthermore, by setting the trajectory monitoring application's window to a hidden window (no interface, not displayed, and not occupying screen space), the trajectory monitoring application has no input focus throughout the process and will not become the active window for user operations, enabling quick wake-up in a focusless state. Moreover, the trajectory monitoring application's lack of focus allows other applications in the underlying layer (such as drawing applications) to still receive input focus and normally obtain the user's input trajectory, achieving input penetration.

[0087] In this embodiment, by setting UIAccess="true" and configuring the window hierarchy, it is possible to globally monitor the touch trajectories of all applications from a trajectory monitoring application with ordinary permissions. Furthermore, the trajectory monitoring application can further monitor system lock screen events, automatically closing the pinned position when the screen is locked, thus stopping monitoring; and restoring it to the top position after unlocking. This avoids invalid trajectory monitoring behavior on the lock screen, fulfilling the core requirement of global trajectory monitoring while complying with Windows security mechanisms.

[0088] Step S302: In response to the user's input sliding operation, determine the sliding trajectory corresponding to the sliding operation based on the trajectory monitoring application.

[0089] Please see details Figure 2 Step S202 of the illustrated embodiment will not be described again here.

[0090] In some optional implementations, step S302, "in response to a user-input sliding operation, determining the sliding trajectory corresponding to the sliding operation based on a trajectory monitoring application," may specifically include steps c1 to c2.

[0091] Step c1: In response to the user's input swipe operation, the trajectory monitoring application calls the operating system's raw input interface to obtain the raw input data corresponding to the swipe operation.

[0092] Step c2: parse the original input data to determine the sliding trajectory corresponding to the sliding operation.

[0093] In this embodiment, the trajectory monitoring application can call the Windows system's RawInputAPI. When the user inputs a swipe operation, the application can directly obtain the raw input data corresponding to that swipe operation based on this API. This raw input data is unprocessed. Once the trajectory monitoring application obtains the raw input data, it can parse it into data that characterizes the specific details of the user's operation, thereby determining the corresponding swipe trajectory.

[0094] Optionally, the method further includes: registering at least one raw input device for the trajectory monitoring application.

[0095] Furthermore, the aforementioned step c2, "parse the original input data and determine the sliding trajectory corresponding to the sliding operation," can specifically include steps c21 to c22.

[0096] Step c21: Obtain the device type of the current input device; the current input device is one of the original input devices.

[0097] Step c22: Parse the original input data according to the device type to determine the sliding trajectory corresponding to the sliding operation.

[0098] In this embodiment, by registering the original input device, Biyougao combines the system's built-in Hid.dll (Human Machine Interface Device Dynamic Link Library) to parse input data that conforms to the HID protocol, thereby enabling the tracking of various types of input devices such as pens, touch screens, and touchpads.

[0099] Figure 5 This diagram illustrates a process for a trajectory monitoring application to monitor a sliding trajectory. Figure 5 As shown, after starting the trajectory monitoring application, it can inherit the NativeWindow class and override the WndProc(WindowProcedure) method. NativeWindow is the core class on the Windows platform used to encapsulate native window handles and message handling logic. Its core function is to associate with the underlying operating system window object and take over the window's message loop and processing flow. Overriding WndProc is the entry point for window messages, used to intercept raw input messages (touch / stylus trajectory data) sent by the system, such as adding WM_INPUT message checks.

[0100] RegisterRawInputDevices is a Windows API function used to register raw input devices (such as touch, stylus, keyboard, mouse, etc.). This function is used to register touch / stylus devices for track monitoring applications so that the applications can directly receive input data from these devices.

[0101] When a user presses, moves, or lifts their finger on the touchscreen, or writes on the screen with a stylus, the system immediately sends a WM_INPUT message to the trajectory monitoring application, triggering the rewritten WndProc event callback.

[0102] After the trajectory monitoring application triggers a callback event (e.g., after receiving a WM_INPUT message), it can obtain the raw input data through the GetRawInputData interface on the callback event. This data can represent the trajectory start point, trajectory movement, trajectory release, trajectory coordinates, etc. Furthermore, it can obtain relevant information about the raw input device through the GetRawInputDeviceInfo interface, including the input device type and device name. This allows it to determine the current input device type and perform differentiated parsing for different input device types (stylus / touchscreen / touchpad).

[0103] like Figure 5 As shown, for different types of input devices, the relevant coordinate data can be obtained by parsing based on the relevant interfaces of Hid.dll. Specifically, the screen rotation angle (0° / 90° / 180° / 270°) can be obtained, and the coordinate axis correspondence (_isAxisCorresponds) and axis direction (_xAxisDirection / _yAxisDirection) can be set. Then, based on this information, the physical coordinates (physicalX / physicalY) are converted into screen pixel coordinates.

[0104] Based on the parsed coordinate data, it can be converted into corresponding trajectory events. Specifically, after final parsing, three events can be triggered: the trajectory capture start event (CaptureStarted), the trajectory capture process event (PointCaptured), and the capture end event (CaptureEnded). For example... Figure 5 As shown, the trajectory monitoring application can perform corresponding processing for different events. And after triggering the CaptureEnded event, complete coordinate data can be obtained, thus yielding the sliding trajectory.

[0105] In this embodiment, WndProc is rewritten to intercept the original message. After the system obtains the original input data, it can send it to a registered application, namely the trajectory monitoring application. This allows the trajectory monitoring application to receive and parse the data even when it is in a focusless state, ultimately obtaining the sliding trajectory. Furthermore, the system can also send relevant data to the currently active window in parallel, enabling the corresponding application (such as a drawing application) to also obtain the data corresponding to the sliding trajectory normally, without any conflict between the two.

[0106] Furthermore, the system proactively triggers WndProc upon touch input, eliminating the need for the trajectory monitoring application to periodically acquire data. Consequently, the CPU resources required for touch data monitoring are extremely low, with CPU utilization below 1% during the monitoring process and almost 0% when idle. Using Hid.dll as the core library for Windows system processing HID devices results in extremely short parsing times, less than 1ms, ensuring high parsing efficiency.

[0107] Step S303: Match the sliding trajectory with at least one preset trigger trajectory.

[0108] Please see details Figure 2 Step S203 of the illustrated embodiment will not be described again here.

[0109] In some optional implementations, the above step S303 "matching the sliding trajectory with at least one preset trigger trajectory" may include: matching the sliding trajectory with at least one preset trigger trajectory according to the trajectory boundary matching method or the trajectory similarity matching method.

[0110] The trajectory boundary matching method can specifically include steps d1 to d4.

[0111] Step d1: For the preset first trigger trajectory, determine whether the starting point of the sliding trajectory is located in the starting area corresponding to the first trigger trajectory.

[0112] Step d2: Determine whether there is at least one point in the sliding trajectory that exceeds the boundary point corresponding to the first trigger trajectory.

[0113] Step d3: Determine whether the sliding duration of the sliding trajectory exceeds the duration threshold corresponding to the first triggered trajectory.

[0114] Step d4: If the starting point of the sliding trajectory is located in the starting area corresponding to the first trigger trajectory, at least one point in the sliding trajectory exceeds the boundary point corresponding to the first trigger trajectory, and the sliding duration of the sliding trajectory exceeds the duration corresponding to the first trigger trajectory, then the sliding trajectory is determined to match the first trigger trajectory, and the first trigger trajectory is taken as the target trigger trajectory.

[0115] In this embodiment, for a preset trigger trajectory, corresponding matching parameters such as a starting area, boundary points, and time threshold are pre-set. After obtaining the sliding trajectory, it is determined whether it matches the sliding trajectory. For ease of description, a preset trigger trajectory is referred to as the first trigger trajectory, and the explanation is based on the first trigger trajectory.

[0116] Specifically, the sliding trajectory contains the coordinates of multiple points, which specifically include the starting point StartPoint(px, py, pt), the ending point (i.e., the point corresponding to the lift of the trajectory) EndPoint(ex, ey, et), and multiple points Point1(x1, y1, t1), Point2(x2, y2, t2), Point3(x3, y3, t3), Point4(x4, y4, t4), etc. located between them. Among them, x and y represent the point coordinates, and t is the time when the point is pressed.

[0117] For the first trigger trajectory, it is preset with a starting area Rect(rx, ry, rw, rh), a boundary point ShowPoint(sx, sy), and a time threshold TimeSpan. Among them, rx and ry represent the starting coordinates of the starting area (usually the coordinates of the upper left corner of the starting area), and rw and rh represent the width and height of the starting area respectively.

[0118] First, determine whether the starting point StartPoint (px, py, pt) is within the starting area Rect(rx, ry, rw, rh), that is, determine whether rx ≤ px ≤ rx + rw and ry ≤ py ≤ ry + rh are satisfied. If not, it can be directly determined that they do not match, and the sliding trajectory needs to be matched with the next preset trigger trajectory or the matching is terminated.

[0119] Then, determine whether it exceeds the boundary point, that is, determine whether a certain point in the moving points Pointn(nx, ny, nt) of the sliding trajectory exceeds the boundary point. For example, if the first trigger trajectory is a trajectory that slides from the upper right corner to the lower left corner of the screen, it is necessary to determine whether nx < sx and / or ny > sy are satisfied. If the boundary is not broken through, the matching is terminated. Of course, it is also possible to only determine whether the ending point of the sliding trajectory exceeds the boundary point to improve the matching efficiency.

[0120] Finally, determine whether the sliding duration meets the requirements. Among them, the sliding duration of the sliding trajectory is et - pt, that is, determine whether nt - pt ≤ TimeSpan is satisfied.

[0121] If all the above three conditions are satisfied, that is, rx ≤ px ≤ rx + rw and ry ≤ py ≤ ry + rh, nx < sx or ny > sy, and nt - pt ≤ TimeSpan, it can be determined that the matching is successful. At this time, the first trigger trajectory can be used as the target trigger trajectory to execute the subsequent process of triggering the quick operation.

[0122] Figure 6 Shows a schematic diagram of trajectory matching. As Figure 6As shown, the sliding trajectory is a trajectory that slides from the upper right to the lower left. If the starting area Rect(rx, ry, rw, rh) of the first trigger trajectory is as Figure 6 shown by the dashed box, and its boundary point ShowPoint(sx, sy), it can be known from Figure 6 that ex < sx and ey > sy, and it can be determined that the points of this sliding trajectory meet the requirements of the first trigger trajectory. If its sliding duration is also sufficient, it can be determined that the sliding trajectory matches the first trigger trajectory.

[0123] In this embodiment, the above trajectory similarity matching method can specifically include steps d5 to step d7.

[0124] Step d5, normalize the coordinates of each point in the sliding trajectory to a preset interval.

[0125] Step d6, for the preset second trigger trajectory, determine the similarity between the normalized sliding trajectory and the second trigger trajectory; the coordinates of each point in the second trigger trajectory are the coordinates determined by normalizing to the preset interval shown.

[0126] Step d7, if the similarity is greater than the preset threshold, determine that the sliding trajectory matches the second trigger trajectory, and use the second trigger trajectory as the target trigger trajectory.

[0127] In this embodiment, the preset trigger trajectory has a certain shape, such as "tick", "circle", "C shape", etc. The sliding trajectory input by the user can be shape-matched with the preset trigger trajectory to determine the similarity between the two, and then determine that the sliding trajectory input by the user can trigger a quick operation. In this embodiment, the scale normalization can be used to eliminate the scaling effect, and based on similarity algorithms such as dynamic time warping (DTW), the problems of trajectory length and timing offset can be solved, and high-precision trajectory matching under different scaling ratios can be achieved.

[0128] Among them, both the sliding trajectory drawn by the user and the trigger trajectory of the preset template are uniformly scaled to a preset interval, generally a standardized interval of [0,1], to achieve scale normalization and completely eliminate the influence of trajectory magnification or reduction on the matching result. Using dynamic time warping (DTW), the limitations of the traditional Euclidean distance on the number of trajectory points and strict timing alignment can be broken through, and the optimal matching path of the two trajectories can be found through dynamic programming to adapt to the number of trajectory points and timing offset caused by different drawing speeds of the user.

[0129] Specifically, for the coordinate set of the sliding trajectory, noise reduction can be performed first, for example, by using a moving average method to filter out abnormal points caused by stylus jitter. Then, it can be downsampled, for example, by retaining trajectory points at a fixed step size (e.g., retaining 1 out of every 2 points), reducing the amount of subsequent computation without losing the trajectory shape features. Finally, scale normalization is performed to scale the sliding trajectory to the [0,1] interval to eliminate the scaling effect.

[0130] The specific logic of scale normalization can be summarized as follows: Calculate the trajectory bounding box: minX = min(UserPoints.X), maxX = max(UserPoints.X), minY = min(UserPoints.Y) and maxY = max(UserPoints.Y); where minX, maxX, minY, and maxY are the minimum and maximum values ​​in the X and Y directions, respectively, and UserPoints.X and UserPoints.Y represent the sets of coordinates in the X and Y directions of the sliding trajectory.

[0131] Normalize the coordinates (Px, Py) of each point in the sliding trajectory: NormX = (Px - minX) / (maxX - minX), NormY = (Py - minY) / (maxY - minY); where, if maxX-minX or maxY-minY is 0, the normalized coordinates are set to 1 accordingly; after normalization, the coordinates (Px, Py) can be normalized to (NormX, NormY).

[0132] The preset second trigger trajectory will also perform the same normalization operation in advance, that is, the coordinates of each point in the second trigger trajectory are all within the preset interval [0,1].

[0133] After scaling the sliding trajectory, the similarity between it and the second trigger trajectory can be calculated based on the Dynamic Time Warping (DTW) algorithm. This embodiment will not be described in detail.

[0134] When the user's sliding trajectory is compared with the preset second trigger trajectory, if the calculated similarity is greater than or equal to the preset threshold (e.g., 85%), it is determined that the user's sliding trajectory matches the template trajectory successfully. The second trigger trajectory can then be used as the target trigger trajectory and trigger the corresponding configuration command.

[0135] In addition, users can add and expand the matching methods they need, and achieve matching effects based on other trajectory matching algorithms after obtaining relevant touch data. For example, users can add algorithms such as "trajectory curvature matching" and "trajectory direction matching" to adapt to personalized wake-up needs such as children's doodles and precise annotations.

[0136] Optionally, the above step "matching the sliding trajectory with at least one preset trigger trajectory" may further include: in the case of multiple matching methods, matching the sliding trajectory with at least one preset trigger trajectory in sequence according to the priority of each matching method, until a target trigger trajectory matching the sliding trajectory is determined, or no preset trigger trajectory matching the sliding trajectory exists.

[0137] In this embodiment, multiple matching methods can be set, such as the trajectory boundary matching method, trajectory similarity matching method, and user-defined matching method mentioned above. At this time, one of the matching methods can be selected, or if multiple matching methods are required, corresponding priorities can be set for each matching method, and the highest priority instruction is executed according to the priority. If no match is found, the process is terminated and the listening state is returned.

[0138] Figure 7 This diagram illustrates a process for trajectory matching based on multiple matching methods. For example... Figure 7 As shown, the priority of trajectory boundary matching is set as follows: priority of trajectory similarity matching > priority of user-defined matching. Matching will then proceed in that order. For details, please refer to [link to relevant documentation]. Figure 7 The above-mentioned descriptions will not be repeated here.

[0139] If a match is successful, the corresponding shortcut operation can be triggered, such as sending a wake-up command to the annotation application via inter-process communication (IPC). Furthermore, relevant parameters can be passed for activation, such as "shortcut entry type (annotation whiteboard / brush settings)" and "trigger trajectory type," to ensure accurate activation. If a match fails, no shortcut operation is required; the cache corresponding to the sliding trajectory can be cleared to process the next user input sliding operation.

[0140] It is understood that the first trigger trajectory and the second trigger trajectory can be the same or different. For a preset trigger trajectory, one matching method or multiple matching methods can be set. For multiple preset trigger trajectories, the same matching method or different matching methods can be set for different trigger trajectories; this embodiment does not limit this.

[0141] Step S304: If the sliding trajectory matches the preset target trigger trajectory, trigger the shortcut operation corresponding to the target trigger trajectory.

[0142] Please see details Figure 2 Step S204 of the illustrated embodiment will not be described again here.

[0143] Optionally, the method may further include steps e1 to e2.

[0144] Step e1: In response to the user's input trajectory recording operation, the user's input preset sliding trajectory is used as a preset trigger trajectory.

[0145] Step e2: In response to the trajectory configuration operation for the preset sliding trajectory, set the matching parameters corresponding to the preset sliding trajectory; the matching parameters are used to determine whether the sliding trajectory detected by the trajectory monitoring application matches the preset sliding trajectory.

[0146] In this embodiment, a custom system is set up to cater to different users' operating habits (such as left-hand / right-hand writing, preference for different wake-up trajectories) and different application scenarios that require gesture wake-up, such as opening annotations, taking quick screenshots, opening whiteboards, opening AI, and other personalized needs. This allows users to define the wake-up shortcut trajectory and configure trigger rules, as well as configure what shortcut operation to perform after a successful match.

[0147] Specifically, users can directly draw wake-up trajectories (such as "C-shape", "diagonal line", "checkmark", "O-shape", etc.) on the configuration interface using a stylus / touch. The wake-up trajectory drawn by the user is the preset sliding trajectory. Alternatively, users can manually record the trajectory, and the configuration tool can automatically collect the raw trajectory data (coordinates + timestamp), perform preprocessing such as noise reduction and downsampling, and finally generate the preset sliding trajectory (including core features such as shape, length, and direction), and preview the trajectory outline in real time on the interface.

[0148] Among its features, it supports multiple recordings and averaging, meaning users can repeatedly draw the same trajectory. The system automatically calculates the feature average of multiple trajectories and uses the average result as the final preset sliding trajectory to adapt to the slight jitter of stylus operation and generate a more suitable reference trajectory.

[0149] In addition, the configuration interface provides visual parameter adjustment options, allowing users to customize relevant matching parameters and thus define the core rules for trajectory matching. These matching parameters can specifically include the starting area of ​​the preset trigger trajectory, boundary points, time thresholds, similarity thresholds, etc.

[0150] For example, the similarity threshold can be adjusted from 0% to 100% (default 85%). The lower the threshold, the higher the error tolerance (suitable for novice users), and the higher the threshold, the more accurate the matching.

[0151] Starting area: The starting area of ​​the trajectory can be customized (e.g., only the left 1 / 3 of the screen area is allowed to trigger). When there are no restrictions, it can be set to "full screen" with one click.

[0152] Time threshold: Customizable trajectory runtime threshold (default 500ms) to adapt to different operation speeds.

[0153] All the above-mentioned visualization trajectory configuration information (such as user-configured trajectory features, trajectory coordinates, parameter thresholds, etc.) can be stored in the user's directory in encrypted XML / JSON format. When adding / modifying a custom trajectory, the system can automatically compare the feature similarity between the new trajectory and existing trajectories. If they are similar, the system will prompt the user to adjust the parameters and instruct them to redraw the trajectory.

[0154] In this embodiment, users can also configure the mapping relationship between each preset trigger trajectory (or wake-up trajectory, reference trajectory) and shortcut operation. For example, users can configure the target application to be launched after the trajectory is successfully matched (they can choose the built-in annotation tool, whiteboard, screenshot, drawing software, etc.), and support configuring application startup parameters (such as the default values ​​of brush color, thickness, and transparency).

[0155] For example, the mapping relationship between preset trigger trajectories and shortcut operations can be as follows: "Checkmark trajectory" is bound to "Save current annotation content"; "Circular trajectory" is bound to "Open annotation whiteboard and switch to red brush"; "Diagonal trajectory" is bound to "Capture current screen and import annotation whiteboard", etc.

[0156] Figure 8 A flowchart illustrating a shortcut operation based on a swipe trigger is shown. For example... Figure 8 As shown, after the terminal device starts, the Windows Service starts automatically on boot; the System service is demoted to user privileges and automatically starts the background trajectory monitoring application; the trajectory monitoring background application has UIAccess permission and is placed on top, thus capturing touch data with global administrator privileges. Subsequent user actions can then be triggered, such as inputting stylus / touch swipe trajectories. The trajectory monitoring application performs global monitoring, collecting the coordinates of touch presses.

[0157] If a specified starting point is detected, such as if the starting point is within the starting area, the trajectory coordinates (i.e., the coordinates of the swipe trajectory) are collected. After the touch is released, the complete swipe trajectory can be determined and then matched with a preset / custom trajectory. If no starting point is detected, or if the starting point is not within the starting area, global monitoring continues. If the trajectory matches, a corresponding shortcut action is triggered based on the matching result. If the trajectory does not match, global monitoring also continues.

[0158] like Figure 8As shown, if the swipe trajectory matches a system-preset trigger trajectory, a preset instruction is triggered, such as launching an annotation application. The user can then begin annotating desktop content. After annotation is complete, the foreground annotation application exits, and the background trajectory monitoring application can continue monitoring. If the swipe trajectory matches a user-defined trajectory, a custom instruction is triggered, which in turn launches the relevant custom application. After the custom application finishes running, background monitoring continues.

[0159] The method for triggering shortcut operations provided in this embodiment improves the interactive experience of 2-in-1 touch tablets when using a stylus and touch to launch applications, and enhances the experience of launching applications without a keyboard. Based on system services, the trajectory monitoring application starts automatically on boot, and can still start automatically when the user switches devices. Enabling UIAccess permission for the trajectory monitoring application enables a global trajectory monitoring mechanism for stylus / touch, solving the problem that trajectory monitoring applications with ordinary permissions cannot monitor the trajectories of applications with administrator permissions due to system permission protection. Based on trajectory boundary matching or trajectory similarity matching, efficient matching of touch trajectories can be achieved, and users can customize wake-up trajectories and related shortcut operations, improving the interactive experience of the touch tablet.

[0160] This embodiment also provides a device for triggering shortcut operations, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0161] This embodiment provides a device for triggering quick operations, such as... Figure 9 As shown, the device includes: The startup module 901 is used to start the trajectory monitoring application; the trajectory monitoring application is automatically started based on the system service after the system service with system privileges is reduced to the user privileges corresponding to the session of the currently active user. The listening module 902 is used to respond to the sliding operation input by the user and determine the sliding trajectory corresponding to the sliding operation based on the trajectory listening application; The matching module 903 is used to match the sliding trajectory with at least one preset trigger trajectory; The processing module 904 is used to trigger the shortcut operation corresponding to the target trigger trajectory when the sliding trajectory matches the preset target trigger trajectory.

[0162] In some optional implementations, the launch trajectory monitoring application includes: In response to operating system startup commands or user switching commands, start system services with system privileges; Obtain the session identifier of the currently active user based on the system service; Based on the system service, query the access token of the currently active user corresponding to the session identifier of the currently active user; Based on the system service, the access token is converted into a master token for the currently active user; the master token has the permission to start a process as the currently active user. Based on the system service, a trajectory monitoring application is launched in the user session corresponding to the master token.

[0163] In some optional implementations, the processing module 904 is further configured to: In the application manifest file of the trajectory monitoring application, enable user interface access permissions for the trajectory monitoring application; the user interface access permissions are used to allow the trajectory monitoring application to interact with other applications with higher permissions; Install the trajectory monitoring application into the system's trusted directory; After launching the trajectory monitoring application, set the window level of the trajectory monitoring application to the highest level and set it to a hidden window.

[0164] The trajectory monitoring application in processing module 904 registers at least one original input device; the step of determining the sliding trajectory corresponding to the sliding operation based on the trajectory monitoring application in response to a user input sliding operation includes: In response to a user-input sliding operation, the trajectory monitoring application calls the operating system's raw input interface to obtain the raw input data corresponding to the sliding operation. Obtain the device type of the current input device; the current input device is one of the original input devices. The original input data is parsed according to the device type to determine the sliding trajectory corresponding to the sliding operation.

[0165] The processing module 904's method of matching the sliding trajectory with at least one preset trigger trajectory includes: The sliding trajectory is matched with at least one preset trigger trajectory based on either the trajectory boundary matching method or the trajectory similarity matching method. The trajectory boundary matching method includes: For a preset first trigger trajectory, determine whether the starting point of the sliding trajectory is located in the starting area corresponding to the first trigger trajectory; determine whether there is at least one point in the sliding trajectory that exceeds the boundary point corresponding to the first trigger trajectory; determine whether the sliding duration of the sliding trajectory exceeds the duration threshold corresponding to the first trigger trajectory. If the starting point of the sliding trajectory is located in the starting area corresponding to the first trigger trajectory, at least one point in the sliding trajectory exceeds the boundary point corresponding to the first trigger trajectory, and the sliding duration of the sliding trajectory exceeds the duration corresponding to the first trigger trajectory, then the sliding trajectory is determined to match the first trigger trajectory, and the first trigger trajectory is taken as the target trigger trajectory. The trajectory similarity matching method includes: The coordinates of each point in the sliding trajectory are normalized to a preset range; For the preset second trigger trajectory, determine the similarity between the normalized sliding trajectory and the second trigger trajectory; the coordinates of each point in the second trigger trajectory are the coordinates determined by normalizing to the preset interval shown. If the similarity is greater than a preset threshold, then the sliding trajectory is determined to match the second trigger trajectory, and the second trigger trajectory is taken as the target trigger trajectory.

[0166] The processing module 904's method of matching the sliding trajectory with at least one preset trigger trajectory includes: In the presence of multiple matching methods, based on the priority of each matching method, the sliding trajectory is matched with at least one preset trigger trajectory in turn, until a target trigger trajectory that matches the sliding trajectory is determined, or no preset trigger trajectory that matches the sliding trajectory is found.

[0167] The apparatus for triggering shortcut operations provided in this disclosure can execute the method for triggering shortcut operations provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects for executing the method. Further functional descriptions of the various modules and units described above are the same as in the corresponding embodiments described above, and will not be repeated here.

[0168] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0169] The following is a detailed reference. Figure 10The diagram illustrates a structural schematic suitable for implementing the electronic device described in the embodiments of this application. The electronic device may include a processor (e.g., a central processing unit, graphics processor, etc.) 1001, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 1002 or a program loaded from memory 1008 into random access memory (RAM) 1003. The RAM 1003 also stores various programs and data required for the operation of the electronic device. The processor 1001, ROM 1002, and RAM 1003 are interconnected via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0170] Typically, the following devices can be connected to the I / O interface 1005: input devices 1006 including, for example, a touchscreen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 1007 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; memory devices 1008 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. Communication device 1009 allows electronic devices to exchange data via wireless or wired communication with other devices. Although Figure 10 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown, and more or fewer devices may be implemented or have instead.

[0171] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 1009, or installed from memory 1008, or installed from ROM 1002. When the computer program is executed by processor 1001, it performs the functions defined in the method for triggering shortcut operations according to embodiments of this application.

[0172] Figure 10 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0173] This application also provides a computer-readable storage medium. The methods described in this application can be implemented in hardware or firmware, or implemented as recordable on a storage medium, or implemented as computer code downloaded over a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and subsequently stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the method for triggering shortcut operations shown in the above embodiments is implemented.

[0174] A portion of this application can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to this application through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

[0175] Although embodiments of this application have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of this application, and all such modifications and variations fall within the scope defined by the appended claims.

Claims

1. A method for triggering a shortcut operation, characterized in that, The method includes: Start the trajectory monitoring application; the trajectory monitoring application is automatically started based on the system service after the system service with system privileges is reduced to the user privileges corresponding to the session of the currently active user; In response to a user-input swipe gesture, the trajectory monitoring application determines the swipe trajectory corresponding to the swipe gesture. The sliding trajectory is matched with at least one preset trigger trajectory; If the sliding trajectory matches the preset target trigger trajectory, the shortcut operation corresponding to the target trigger trajectory is triggered.

2. The method according to claim 1, characterized in that, The startup trajectory monitoring application includes: In response to operating system startup commands or user switching commands, start system services with system privileges; Obtain the session identifier of the currently active user based on the system service; Based on the system service, query the access token of the currently active user corresponding to the session identifier of the currently active user; Based on the system service, the access token is converted into a master token for the currently active user; the master token has the permission to start a process as the currently active user. Based on the system service, a trajectory monitoring application is launched in the user session corresponding to the master token.

3. The method according to claim 1, characterized in that, The method further includes: In the application manifest file of the trajectory monitoring application, enable user interface access permissions for the trajectory monitoring application; the user interface access permissions are used to allow the trajectory monitoring application to interact with other applications with higher permissions; Install the trajectory monitoring application into the system's trusted directory; After launching the trajectory monitoring application, set the window level of the trajectory monitoring application to the highest level and set it to a hidden window.

4. The method according to claim 1, characterized in that, The trajectory monitoring application registers at least one original input device; The process of responding to a user input swipe operation and determining the swipe trajectory corresponding to the swipe operation based on the trajectory monitoring application includes: In response to a user-input sliding operation, the trajectory monitoring application calls the operating system's raw input interface to obtain the raw input data corresponding to the sliding operation. Obtain the device type of the current input device; the current input device is one of the original input devices. The original input data is parsed according to the device type to determine the sliding trajectory corresponding to the sliding operation.

5. The method according to claim 1, characterized in that, The step of matching the sliding trajectory with at least one preset trigger trajectory includes: The sliding trajectory is matched with at least one preset trigger trajectory based on either the trajectory boundary matching method or the trajectory similarity matching method. The trajectory boundary matching method includes: For a preset first trigger trajectory, determine whether the starting point of the sliding trajectory is located in the starting area corresponding to the first trigger trajectory; determine whether there is at least one point in the sliding trajectory that exceeds the boundary point corresponding to the first trigger trajectory; determine whether the sliding duration of the sliding trajectory exceeds the duration threshold corresponding to the first trigger trajectory. If the starting point of the sliding trajectory is located in the starting area corresponding to the first trigger trajectory, at least one point in the sliding trajectory exceeds the boundary point corresponding to the first trigger trajectory, and the sliding duration of the sliding trajectory exceeds the duration corresponding to the first trigger trajectory, then the sliding trajectory is determined to match the first trigger trajectory, and the first trigger trajectory is taken as the target trigger trajectory. The trajectory similarity matching method includes: The coordinates of each point in the sliding trajectory are normalized to a preset range; For the preset second trigger trajectory, determine the similarity between the normalized sliding trajectory and the second trigger trajectory; the coordinates of each point in the second trigger trajectory are the coordinates determined by normalizing to the preset interval shown. If the similarity is greater than a preset threshold, then the sliding trajectory is determined to match the second trigger trajectory, and the second trigger trajectory is taken as the target trigger trajectory.

6. The method according to claim 1 or 5, characterized in that, The step of matching the sliding trajectory with at least one preset trigger trajectory includes: In the presence of multiple matching methods, based on the priority of each matching method, the sliding trajectory is matched with at least one preset trigger trajectory in turn, until a target trigger trajectory that matches the sliding trajectory is determined, or no preset trigger trajectory that matches the sliding trajectory is found.

7. A device for triggering a quick operation, characterized in that, The device includes: A startup module is used to start the trajectory monitoring application; the trajectory monitoring application is automatically started based on the system service after the system service with system privileges is reduced to the user privileges corresponding to the session of the currently active user. The monitoring module is used to respond to the user's input swipe operation and determine the swipe trajectory corresponding to the swipe operation based on the trajectory monitoring application; A matching module is used to match the sliding trajectory with at least one preset trigger trajectory; The processing module is used to trigger the shortcut operation corresponding to the target trigger trajectory when the sliding trajectory matches the preset target trigger trajectory.

8. An electronic device, characterized in that, include: A memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, the processor executing the computer instructions to perform the method for triggering a shortcut operation as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform the method of triggering a shortcut operation as described in any one of claims 1 to 6.

10. A computer program product, characterized in that, Includes computer instructions for causing a computer to perform the method of triggering a shortcut operation as described in any one of claims 1 to 6.