WO2014067274A1 - 执行程序的方法及装置 - Google Patents

执行程序的方法及装置 Download PDF

Info

Publication number
WO2014067274A1
WO2014067274A1 PCT/CN2013/075098 CN2013075098W WO2014067274A1 WO 2014067274 A1 WO2014067274 A1 WO 2014067274A1 CN 2013075098 W CN2013075098 W CN 2013075098W WO 2014067274 A1 WO2014067274 A1 WO 2014067274A1
Authority
WO
WIPO (PCT)
Prior art keywords
operated
operation icon
icon
user
display
Prior art date
Application number
PCT/CN2013/075098
Other languages
English (en)
French (fr)
Inventor
谢耿生
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP13753405.3A priority Critical patent/EP2775396B1/en
Priority to ES13753405.3T priority patent/ES2610778T3/es
Priority to US14/023,984 priority patent/US9910583B2/en
Publication of WO2014067274A1 publication Critical patent/WO2014067274A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • 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/445Program loading or initiating
    • 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

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a method and apparatus for executing a program.
  • FIG. 1 it is a schematic diagram of a pop-up context menu interaction method in the prior art, as follows: S11 , an object (ie, an installation package of the application Google App Engine) is not selected by the user; S12, an object is selected by the user;
  • a context menu pops up; the menu displays operations associated with the object, including installing menu items and deleting menu items;
  • the delete menu item is selected by the user
  • a confirmation dialog box pops up, prompting the user to confirm whether to delete the file
  • the pop-up context menu interaction method described above has the following disadvantages: the user and the system need to cross-respond and interact, the operation steps are complicated, not intuitive enough, and the continuity of the user operation is interrupted.
  • aspects of embodiments of the present invention provide a method of executing a program and an apparatus for executing the program, which can simplify the execution steps of the computer program, and the operation is intuitive and natural.
  • an embodiment of the present invention provides a method for executing a program, including: acquiring an operation item related to an object to be operated, and displaying an operation icon corresponding to the related operation item on a display screen;
  • the object to be operated is a computer program on the display screen that can be operated by the user; the direction in which the original display coordinate of the object to be operated points to the display coordinate of the operation icon is the operation icon direction; according to the original display coordinate of the object to be operated And obtaining a moving direction of the object to be operated after being dragged by the user; when detecting that the moving direction of the object to be operated is the same as the direction of the operation icon, starting to perform the function corresponding to the operation icon operating.
  • the acquiring an operation item to be operated, displaying an operation icon corresponding to the related operation item on a display screen including: analyzing a type and a state of the object to be operated, and acquiring the to-be-operated operation a related operation item of the object; generating, according to the related operation item, an operation icon corresponding to the related operation item and display coordinates of the operation icon; displaying the operation icon on a display screen according to display coordinates of the operation icon
  • the operation icon direction corresponding to the operation icon is unique.
  • the method further includes: if it is detected that the object to be operated continuously moves along the direction of the operation icon, proceeding to perform The function operation corresponding to the operation icon.
  • the function operation corresponding to the operation icon is continued to be performed until Finished.
  • the method further includes: if it is detected that the display coordinates of the object to be operated are unchanged and are not translated by the user, The function operation corresponding to the operation icon is suspended.
  • the execution is stopped.
  • the function operation corresponding to the operation icon and roll back the function operation that has been performed.
  • the first aspect or the first implementation of the first aspect or the second implementation of the first aspect or the third implementation of the first aspect or the fourth implementation of the first aspect or the first aspect In the sixth implementation manner, when it is detected that the moving direction of the object to be operated is the same as the direction of the operation icon, an indication arrow corresponding to the direction of the operation icon is displayed on the display screen; After the function operation corresponding to the operation icon is started, the length of the indication arrow is extended according to the processing progress of the function operation; in the process of rolling back the function operation corresponding to the operation icon that has been executed, according to the The roll schedule shortens the length of the indicator arrow.
  • an embodiment of the present invention provides an apparatus for executing a program, including: an operation icon generating unit, configured to acquire an operation item related to an object to be operated, and display an operation icon corresponding to the related operation item on a display screen.
  • the object to be operated is a computer program on the display screen that can be operated by the user; the original display coordinate of the object to be operated points to the direction of the display coordinate of the operation icon as the operation icon direction; the movement direction calculation unit is used for Calculating a moving direction of the object to be operated according to the original display coordinate of the object to be operated and the display coordinate dragged by the user; and starting an execution unit, configured to detect a moving direction and a position of the object to be operated When the operation icons are in the same direction, the function operation corresponding to the operation icons is started.
  • the operation icon generating unit specifically includes: an analysis subunit, configured to analyze a type and a state of the object to be operated, and acquire a related operation item of the object to be operated; a unit, configured to generate, according to the related operation item, an operation icon corresponding to the related operation item and display coordinates of the operation icon; a display subunit, configured to display on a display screen according to display coordinates of the operation icon The operation icon; the operation icon direction corresponding to the operation icon is unique.
  • the apparatus further includes: a continuation execution unit, configured to: if the object to be operated is detected to be continuous along the operation icon direction After moving, the function operation corresponding to the operation icon is continued.
  • the device further includes: an execution confirmation unit, configured to: if it is detected, moving the object to be operated along the operation icon direction to an area of the operation icon, Then, the function operation corresponding to the operation icon is continued until the completion.
  • the device further includes: a pause execution unit, configured to detect that the display coordinates of the object to be operated are unchanged When being interpreted by the user, the function operation corresponding to the operation icon is suspended.
  • the apparatus further includes: a stop execution unit, configured to: if the object to be operated is detected to be translated by the user but not moved To the area of the operation icon, the function operation corresponding to the operation icon is stopped, and the executed function operation is rolled back.
  • a stop execution unit configured to: if the object to be operated is detected to be translated by the user but not moved To the area of the operation icon, the function operation corresponding to the operation icon is stopped, and the executed function operation is rolled back.
  • the device further includes: an arrow indicating unit, When it is detected that the moving direction of the object to be operated is the same as the direction of the operation icon, an indication arrow corresponding to the direction of the operation icon is displayed on the display screen; an arrow synchronization unit is configured to start performing the operation After the function operation corresponding to the icon, the length of the indication arrow is extended according to the processing progress of the function operation; in the process of rolling back the function operation corresponding to the operation icon that has been executed, the indication is shortened according to the rollback progress The length of the sexual arrow.
  • the operation icon related to the object to be operated is displayed in the vicinity of the operation object; the function and action processing corresponding to the operation icon are realized by detecting the direction in which the object to be operated is dragged by the user and the operation icon area that is reached.
  • the user can perform the related functions and action processing of the computer program by dragging the object, thereby simplifying the execution steps of the computer program, and interacting with the user as the center, ensuring the continuity of the user's thinking and operation, and the operation is intuitive and natural. .
  • FIG. 1 is a schematic diagram of a pop-up context menu interaction method in the prior art
  • FIG. 2 is a schematic flow chart of a method for executing a program in an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a drag interaction of a method for executing a program according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of an application scenario of a method for executing a program according to an embodiment of the present invention
  • Schematic diagram of a device for executing a program
  • Figure 6 is a block diagram showing an embodiment of an operation icon generating unit of the apparatus for executing a program shown in Figure 5;
  • FIG. 7 is a schematic structural diagram of another apparatus for executing a program according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of another apparatus for executing a program according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of another apparatus for executing a program according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a computer system according to an embodiment of the present invention.
  • this embodiment provides a method for executing a program, including the following steps:
  • the object to be operated is a computer program on the display screen that can be operated by the user;
  • the direction in which the original display coordinates point to the display coordinates of the operation icon is the operation icon direction.
  • the user can perform the related functions and action processing of the computer program by dragging the object, thereby simplifying the execution steps of the computer program, and interacting with the user as the center, ensuring the continuity of the user's thinking and operation, and the operation is intuitive and natural. .
  • step S21 may specifically include:
  • Analyzing the type and state of the object to be operated acquiring the related operation item of the object to be operated; generating an operation icon corresponding to the operation item and a display coordinate of the operation icon; displaying according to the display coordinate of the operation icon
  • the operation icon is displayed on the screen; the operation icon direction corresponding to the operation icon is unique.
  • the method further includes: if it is detected that the object to be operated continuously moves along the direction of the operation icon, continuing to perform the function corresponding to the operation icon operating.
  • the method further includes:
  • the function operation corresponding to the operation icon is continued to be performed until completion.
  • the method further includes: suspending execution of the operation icon if it is detected that the display coordinates of the object to be operated are unchanged and are not translated by the user Corresponding functional operation.
  • the method further includes: if detecting that the object to be operated is translated by the user but not moved to the area of the operation icon, The function operation corresponding to the operation icon is stopped, and the function operation that has been performed is rolled back. In a fourth optional implementation manner, the method further includes:
  • an indication arrow that is consistent with the direction of the operation icon is displayed on the display screen; after the function operation corresponding to the operation icon is started, The length of the indication arrow is extended according to the processing progress of the function operation; during the function operation corresponding to the operation icon that has been executed, the length of the indication arrow is shortened according to the rollback progress.
  • the length of the indication arrow is synchronously extended according to the processing progress of the function operation; and the function operation corresponding to the operation icon that has been executed is rolled back.
  • the length of the indicative arrow is shortened synchronously in accordance with the rollback schedule.
  • the method further includes:
  • an indicative text for prompting the user to operate is displayed on the display screen.
  • the foregoing embodiment is described by taking only one of the operation icons related to the object to be operated as an example.
  • There may be multiple related operation items of the object to be operated that is, by analyzing the type and state of the object to be operated, the related operation set of the object to be operated can be obtained, and the related operation set includes at least one related operation item.
  • an operation icon and a display coordinate corresponding to each related operation item are generated, and each operation icon is displayed on the display according to the generated display coordinates.
  • the operation icons are distributed in the vicinity of the object to be operated, and the operation icon direction corresponding to each operation icon is unique.
  • the plurality of operation icons are distributed on a circumference centered on the object to be operated.
  • the method when there are multiple related operation items of the object to be operated, the method further includes: when detecting a moving direction of the object to be operated and a direction of the operation icon At the same time, other operation icons than the operation icons are hidden.
  • the user can perform the related functions and action processing of the computer program by dragging the object, thereby simplifying the execution steps of the computer program, and interacting with the user as the center, ensuring the continuity of the user's thinking and operation, and the operation is intuitive and natural.
  • this embodiment detects that it is waiting to be operated.
  • the moving direction of the object is the same as the direction of an operation icon, and other operation icons can be hidden, so that other operation icons are not displayed on the display screen, so that the operation icon being executed is more intuitive, and the user can understand the current operation situation.
  • the method for executing a program provided by the embodiment of the present invention can be applied to a computer system having a display screen such as a computer or a mobile terminal, and the above steps S21 to S23 can be executed by a computer system.
  • FIG. 3 it is a schematic diagram of a drag interaction of a method for executing a program in an embodiment of the present invention.
  • the user selects an object in the system, and the object is an object to be operated.
  • the system analyzes the type and state of the object, and acquires a related operation set of the object.
  • the system generates an operation icon set and display coordinates corresponding to the related operation set, where the operation icon set includes at least one operation icon.
  • an original display coordinate of the object points to a direction of display coordinates of the first operation icon, which is an operation icon direction of the first operation icon.
  • the operation icon direction of each operation icon is unique.
  • the system displays each operation icon on the display screen according to display coordinates of each operation icon in the operation icon set.
  • the system analyzes a coordinate change after the object is dragged, calculates an original display coordinate of the object, and a direction formed by the display coordinate dragged by the user, to obtain a moving direction of the object.
  • the system determines whether the moving direction of the object is the same as the operation icon direction of an operation icon; if the same, performs S323 ⁇ S324; if the moving direction of the object and the operation icon direction of any one of the operation icons are different , then no processing.
  • the moving direction of the object is the same as the operation icon direction of the first operation icon, that is, the user requests to perform the function operation corresponding to the first operation icon.
  • the system hides other operation icons except the first operation icon. S33. The user continues to drag the object in the direction of the indicative arrow.
  • the system analyzes a coordinate change after the object is dragged, calculates an original display coordinate of the object, and a direction formed by the display coordinate dragged by the user, to obtain a moving direction of the object.
  • the system determines whether the moving direction of the object is the same as the operation icon direction of the current first operation icon. If they are the same, executing S333 to S334; if not, the processing is not performed.
  • the system starts to perform the function operation corresponding to the first operation icon, and performs corresponding function or action processing.
  • the system synchronously extends the length of the indicator arrow according to a processing progress of the function operation corresponding to the first operation icon.
  • the user pauses dragging the object before the object reaches the area of the first operation icon.
  • the system After the function operation corresponding to the first operation icon is started, the system detects that the display coordinates of the object are unchanged and is not translated by the user.
  • the system suspends the function operation corresponding to the first operation icon.
  • the user releases the object before the object reaches the area of the first operation icon.
  • the system hides the indication arrow when the system detects that the object moves to an area of the first operation icon.
  • the system detects that the object moves to an area of the first operation icon and is released by a user, and the object is hidden. 5372.
  • the system adjusts an appearance of the first operation icon (eg, changing a color or a shape, etc.) to indicate whether the function operation corresponding to the first operation icon is successful.
  • FIG. 4 it is a schematic diagram of an application scenario of a method for executing a program in an embodiment of the present invention. This embodiment is described by taking the installation package icon of the application Google App Engine in the system as an example.
  • the user interface a shown in Figure 4 is the user interface of the application Google App Engine installation package icon that is not selected by the user.
  • the user interface b shown in Figure 4 is the user interface of the application package icon of the application Google App Engine. When this installation package icon is selected, the "Delete” operation icon and the “Install” operation icon appear below or around the installation package icon. The operation icons of these two operation icons are not the same.
  • the user interface c shown in Figure 4 is the user interface for the user to start dragging the installation package icon for the application Google App Engine.
  • an initializing size indicating arrow and indicative text appear on the user interface, the indicative text is: moving in the direction of the arrow Complete the deletion. Also, the system hides the "Install" action icon.
  • the user interface d shown in Figure 4 is the user interface for the user to continue dragging the application package icon of the application Google App Engine in the direction of the "delete" action icon. During this dragging process, the system performs the operation of deleting the installation package of the application Google App Engine, and simultaneously lengthens the length of the indication arrow according to the progress of the deletion operation.
  • the user interface e shown in FIG. 4 is a user interface in which the user drags the installation package icon of the application Google App Engine to the area of the "delete” operation icon. At this time, the length of the indicator arrow is also extended to the area of the "delete” operation icon, which indicates that the system has completed the operation of deleting the installation package of the application Google App Engine, and enters the user interface f.
  • the user interface f shown in FIG. 4 is a user interface after the user releases the installation package icon of the application Google App Engine. At this point, the system hides the installation package icon and the indicative arrow for the application Google App Engine. Moreover, the system changes the appearance of the "delete” operation icon (such as discoloration), indicating that the installation package of the application Google App Engine is successfully deleted, and then enters the user interface g;
  • the user interface g shown in FIG. 4 is a user interface after the function operation of the "delete" operation icon succeeds. At this point, the system hides the "delete” action icon.
  • the user can pause or stop the corresponding function operation while dragging the installation package icon of the application Google App Engine. details as follows:
  • the system detects that the display coordinates of the installation package icon of the application Google App Engine are unchanged and are not released by the user. Pause the removal of the installation package for the app Google App Engine.
  • user interface d if the user's application package icon of Google App Engine is dragged to the area of the "delete" action icon, the installation package icon of the application Google App Engine is released. At this time, the system detects that the installation package icon of the application Google App Engine is translated by the user and is not moved to the area of the "delete” operation icon, then the operation of deleting the installation package of the application Google App Engine is stopped, and the rollback has been performed. The delete operation is performed while the length of the indicator arrow is shortened synchronously according to the progress of the delete operation. After rolling back the deleted operation, return to user interface a as shown in Figure 4.
  • the user can perform related functions and action processing of the computer program by dragging the object.
  • the system graphically expresses the execution process of the computer program, including the progress of processing, pause, rollback, and processing, according to the state of the user dragging the object, and the indicative arrow can replace the pop-up menu in the prior art, Progress bar, wait icon, etc.
  • the system can visually express the success or failure of the operation by changing the appearance of the operation icon.
  • the above embodiments are applicable to the interactive operation of a computer program, and are particularly suitable for an interactive operation with an interaction time of less than 5 seconds.
  • the system starts to perform the function operation corresponding to the operation icon; when the user continues to drag the computer program icon to the area of the operation icon continuously, the operation icon corresponds to The functional operation is generally completed.
  • the method for dragging and executing the program provided by the above embodiment simplifies the execution steps of the computer program, and interacts with the user as the center, thereby ensuring the continuity of the user's thinking and operation, and the operation is intuitive and natural.
  • the method for executing the program provided by the embodiment of the present invention may further acquire the interaction of the operation icon when detecting that the moving direction of the object to be operated is the same as the operation icon direction of an operation icon in the step S23.
  • the duration of the operation is compared with the set duration duration. If the interaction operation duration is less than the duration threshold, when the movement of the object to be operated is detected When the direction is the same as the direction of an operation icon, the function operation corresponding to the operation icon is started. If the duration of the interaction operation is greater than or equal to the duration threshold, when the object to be operated is detected to move to the area of the operation icon, the function operation corresponding to the operation icon is started, and the progress bar is provided to prompt the operation progress. .
  • the present invention also provides an apparatus for executing a program, which is capable of implementing all the processes of the method of dragging and executing a program in the above embodiment.
  • an embodiment of the present invention provides an apparatus for executing a program, including an operation icon generating unit 51, a moving direction calculating unit 52, and an executing unit 53, as follows:
  • the operation icon generating unit 51 is configured to acquire an operation item related to the object to be operated, and display an operation icon corresponding to the related operation item on the display screen;
  • the object to be operated is a computer program on the display screen that can be operated by the user
  • the direction in which the original display coordinate of the object to be operated points to the display coordinate of the operation icon is the operation icon direction.
  • the moving direction calculating unit 52 is configured to calculate a moving direction of the object to be operated according to the original display coordinates of the object to be operated and the display coordinates dragged by the user.
  • the start execution unit 53 is configured to start performing a function operation corresponding to the operation icon when detecting that the moving direction of the object to be operated is the same as the operation icon direction.
  • the user can perform the related functions and action processing of the computer program by dragging the object, thereby simplifying the execution steps of the computer program, and interacting with the user as the center, ensuring the continuity of the user's thinking and operation, and the operation is intuitive and natural. .
  • an embodiment of the present invention provides an operation icon generating unit 51, which includes an analysis subunit 61, a generation subunit 62, and a display subunit 63, as follows:
  • the analyzing subunit 61 is configured to analyze the type and state of the object to be operated, and acquire the related operation item of the object to be operated.
  • the generating sub-unit 62 is configured to generate an operation icon corresponding to the related operation item and display coordinates of the operation icon.
  • the display subunit 63 is configured to display the operation icon on the display screen according to the display coordinates of the operation icon; the operation icon direction corresponding to the operation icon is unique.
  • an embodiment of the present invention provides another apparatus for executing a program, in addition to the operation icon generating unit 51, the moving direction calculating unit 52, and the executing unit 53 in the above embodiment.
  • a continuation execution unit 71 configured to: after detecting the step of performing the function operation corresponding to the operation icon when the moving direction of the object to be operated is the same as the direction of the operation icon The operation object continuously moves in the direction of the operation icon, and the function operation corresponding to the operation icon is continued.
  • the device may further include:
  • the execution confirmation unit 72 is configured to continue to execute the function operation corresponding to the operation icon until the completion of the operation of the operation icon in the direction of the operation icon.
  • the embodiment of the present invention further provides an apparatus for executing a program.
  • the present invention further includes:
  • a suspension execution unit 81 configured to: after detecting the step of performing the function operation corresponding to the operation icon when the moving direction of the object to be operated is the same as the direction of the operation icon If the display coordinates of the operation object are unchanged and are not interpreted by the user, the function operation corresponding to the operation icon is suspended.
  • an embodiment of the present invention provides an apparatus for executing a program.
  • the present invention further includes:
  • a stop execution unit 91 configured to: after detecting the step of performing the function operation corresponding to the operation icon when the moving direction of the object to be operated is the same as the direction of the operation icon, When the operation object is translated by the user without moving to the area of the operation icon, the function operation corresponding to the operation icon is stopped, and the executed function operation is rolled back.
  • the embodiment of the present invention further provides an apparatus for executing a program, which may include the continuation execution unit 71 in the above embodiment, in addition to the operation icon generating unit 51, the moving direction calculating unit 52, and the executing unit 53 in the above embodiment. At least two of the execution confirmation unit 72, the suspension execution unit 81, and the stop execution unit 91.
  • the apparatus for executing a program provided by the above embodiment may further include at least one of an arrow indication unit, an arrow synchronization unit, a text indication unit, and an icon hiding unit. details as follows:
  • An arrow indicating unit configured to detect a moving direction of the object to be operated and the operation icon When the directions are the same, an indicating arrow that coincides with the direction of the operation icon is displayed on the display.
  • An arrow synchronization unit configured to synchronously extend the length of the indication arrow according to a processing progress of the function operation after starting to perform a function operation corresponding to the operation icon; and corresponding to the operation icon that has been executed in the rollback During the functional operation, the length of the indicative arrow is shortened synchronously in accordance with the rollback schedule.
  • a text indicating unit configured to display an indication text for prompting the user to operate on the display screen when detecting that the moving direction of the object to be operated is the same as the direction of the operation icon.
  • an icon hiding unit configured to hide other operation icons other than the operation icon when detecting that the moving direction of the object to be operated is the same as the operation icon direction.
  • an embodiment of the present invention provides a computer system, including an input device 101, an output device 102, a memory 103, and a processor 104.
  • the processor 104 can perform the following steps: acquiring related operation items of an object to be operated, and displaying An operation icon corresponding to the related operation item is displayed on the screen;
  • the object to be operated is a computer program on the display screen that can be operated by a user; and an original display coordinate of the object to be operated is pointed to a display coordinate of the operation icon
  • the direction is an operation icon direction; the moving direction of the object to be operated is calculated according to the original display coordinate of the object to be operated and the display coordinate dragged by the user; when the moving direction of the object to be operated is detected When the operation icons are in the same direction, the function operation corresponding to the operation icons is started.
  • a further detailed technical solution of the processor 104 executing the program may be, but is not limited to, the detailed description of the embodiments as shown in Figures 2, 3 and 4.
  • the memory 103 is used to store a program that the processor 104 needs to execute. Further, the memory 103 can also store the result generated by the processor 104 in the calculation process.
  • input device 101, output device 102, memory 103, and processor 104 may also be coupled by a bus.
  • the bus may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus.
  • the bus may be one or more physical lines, and when it is a plurality of physical lines, it may be divided into an address bus, a data bus, a control bus, and the like.
  • a computer storage medium is further provided, where the computer storage medium is stored
  • a computer program is stored which can perform the steps in the embodiment as shown in FIG. 2.
  • the operation icon related to the object to be operated is displayed in the vicinity of the object to be operated; the function and action processing corresponding to the operation icon are realized by detecting the direction in which the object to be operated is dragged by the user and the operation icon area that is reached.
  • the user can perform the related functions and action processing of the computer program by dragging the object, thereby simplifying the execution steps of the computer program, and interacting with the user as the center, ensuring the continuity of the user's thinking and operation, and the operation is intuitive and natural. .
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as the cells may or may not be physical. Units can be located in one place, or they can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objectives of the embodiments of the present invention. Further, in the drawings of the apparatus embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection therebetween, and specifically, one or more communication buses or signal lines can be realized. Those of ordinary skill in the art can understand and implement without any creative effort.
  • the present invention can be implemented by means of software plus necessary general hardware, and of course, through dedicated hardware, including an application specific integrated circuit, a dedicated CPU, a dedicated memory, Special components and so on.
  • functions performed by computer programs can be easily implemented with the corresponding hardware.
  • the specific hardware structure used to implement the same function can be various, such as analog circuits, digital circuits, or dedicated circuits. Circuits, etc.
  • software program implementation is a better implementation in more cases.
  • a computer device which may be a personal computer, server, or network device, etc. performs the methods described in various embodiments of the present invention.

Abstract

本发明公开了一种执行程序的方法及执行程序的装置,所述方法包括:获取待操作对象的相关操作项,在显示屏上显示与所述相关操作项对应的操作图标;所述待操作对象是显示屏上的可被用户操作的计算机程序;所述待操作对象的原始显示坐标指向所述操作图标的显示坐标的方向为操作图标方向;根据所述待操作对象的原始显示坐标和被用户拖动后的显示坐标,计算获得所述待操作对象的移动方向;当检测到所述待操作对象的移动方向与所述操作图标方向相同时,开始执行所述操作图标对应的功能操作。本发明实施例能够简化计算机程序的执行步骤,且操作直观自然。

Description

执行程序的方法及装置
本申请要求于 2012 年 10 月 29 日提交中国专利局、 申请号为 201210419361.0、 发明名称为 "执行程序的方法及装置" 的中国专利申请的优 先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明涉及计算机技术领域, 尤其涉及一种执行程序的方法及装置。
背景技术
在计算机应用程序用户界面, 当用户选中某一对象(如应用程序 Google App Engine的安装包 )时,与该对象相关的操作一般是以弹出式上下文菜单展 示给用户。 当某一菜单项被选中时, 开始执行与该菜单项对应的功能或动作, 执行完毕后, 以视觉变化的用户界面反馈执行结果。 如图 1所示, 是现有技术的弹出式上下文菜单交互方法的示意图, 如下: S11 , 一个对象(即应用程序 Google App Engine的安装包 )未被用户选中; S12, 一个对象被用户选中;
513 , 对象被用户通过鼠标右键单击后, 弹出一个上下文菜单; 菜单显示 了此对象关联的操作, 包括安装菜单项和删除菜单项;
514, 删除菜单项被用户选中;
515 , 弹出操作确认对话框, 提示用户确认是否要删除文件;
S16, "是" 确认按钮被用户选中后, 开始执行删除对象的操作;
S17, 删除对象的操作完毕后, 对象消失。
上述的弹出式上下文菜单交互方法存在以下缺点:用户和系统需要交叉响 应和交互, 操作步骤复杂, 不够直观, 而且打断了用户操作的连续性。
发明内容
本发明实施例的多个方面提供了一种执行程序的方法及执行程序的装置, 能够简化计算机程序的执行步骤, 且操作直观自然。
第一方面, 本发明实施例提供了一种执行程序的方法, 包括: 获取待操作 对象的相关操作项,在显示屏上显示与所述相关操作项对应的操作图标; 所述 待操作对象是显示屏上的可被用户操作的计算机程序;所述待操作对象的原始 显示坐标指向所述操作图标的显示坐标的方向为操作图标方向;根据所述待操 作对象的原始显示坐标和被用户拖动后的显示坐标,计算获得所述待操作对象 的移动方向; 当检测到所述待操作对象的移动方向与所述操作图标方向相同 时, 开始执行所述操作图标对应的功能操作。
在第一种实现方式, 所述获取待操作对象的相关操作项,在显示屏上显示 与所述相关操作项对应的操作图标, 包括: 分析待操作对象的类型和状态, 获 取所述待操作对象的相关操作项;根据所述相关操作项生成与所述相关操作项 对应的操作图标和所述操作图标的显示坐标; 根据所述操作图标的显示坐标, 在显示屏上显示所述操作图标; 所述操作图标对应的操作图标方向具有唯一 性。
结合第一方面或第一方面的第一种实现方式,在第二种实现方式下, 所述 方法还包括: 若检测到所述待操作对象沿所述操作图标方向连续移动, 则继续 执行所述操作图标对应的功能操作。
结合第二种实现方式,在第三种实现方式下, 若检测到所述待操作对象沿 所述操作图标方向移动到所述操作图标的区域,则继续执行所述操作图标对应 的功能操作直到完成为止。
结合第一方面或第一方面的第一种实现方式,在第四种实现方式下, 所述 方法还包括: 若检测到所述待操作对象的显示坐标不变且未被用户译放, 则暂 停执行所述操作图标对应的功能操作。
结合第一方面或第一方面的第一种实现方式,在第五种实现方式下, 若检 测到所述待操作对象被用户译放而未移动到所述操作图标的区域,则停止执行 所述操作图标对应的功能操作, 并回滚已执行的功能操作。
结合第一方面或第一方面的第一种实现方式或第一方面的第二种实现方 式或第一方面的第三种实现方式或第一方面的第四种实现方式或第一方面的 第五种实现方式,在第六种实现方式下, 当检测到所述待操作对象的移动方向 与所述操作图标方向相同时,在显示屏上显示与所述操作图标方向一致的指示 性箭头; 在开始执行所述操作图标对应的功能操作之后,按照所述功能操作的 处理进度延长所述指示性箭头的长度;在回滚已执行的所述操作图标对应的功 能操作的过程中, 按照回滚进度缩短所述指示性箭头的长度。 第二方面, 本发明实施例提供了一种执行程序的装置, 包括: 操作图标生 成单元, 用于获取待操作对象的相关操作项,在显示屏上显示与所述相关操作 项对应的操作图标; 所述待操作对象是显示屏上的可被用户操作的计算机程 序;所述待操作对象的原始显示坐标指向所述操作图标的显示坐标的方向为操 作图标方向; 移动方向计算单元, 用于根据所述待操作对象的原始显示坐标和 被用户拖动后的显示坐标,计算获得所述待操作对象的移动方向; 开始执行单 元, 用于当检测到所述待操作对象的移动方向与所述操作图标方向相同时, 开 始执行所述操作图标对应的功能操作。
结合第二方面, 在第一种实现方式下, 所述操作图标生成单元具体包括: 分析子单元, 用于分析待操作对象的类型和状态, 获取所述待操作对象的相关 操作项; 生成子单元, 用于根据所述相关操作项生成与所述相关操作项对应的 操作图标和所述操作图标的显示坐标; 显示子单元, 用于根据所述操作图标的 显示坐标,在显示屏上显示所述操作图标; 所述操作图标对应的操作图标方向 具有唯一性。
结合第二方面或第二方面的第一种实现方式,在第二种实现方式下, 所述 装置还包括: 继续执行单元, 用于若检测到所述待操作对象沿所述操作图标方 向连续移动, 则继续执行所述操作图标对应的功能操作。
结合第二种实现方式, 在第三种实现方式下, 所述装置还包括: 执行确认 单元,用于若检测到所述待操作对象沿所述操作图标方向移动到所述操作图标 的区域, 则继续执行所述操作图标对应的功能操作直到完成为止。
结合第二方面或第二方面的第一种实现方式,在第四种实现方式下, 所述 装置还包括: 暂停执行单元, 用于若检测到所述待操作对象的显示坐标不变且 未被用户译放, 则暂停执行所述操作图标对应的功能操作。
结合第二方面或第二方面的第一种实现方式,在第五种实现方式下, 所述 装置还包括: 停止执行单元, 用于若检测到所述待操作对象被用户译放而未移 动到所述操作图标的区域, 则停止执行所述操作图标对应的功能操作, 并回滚 已执行的功能操作。
结合第二方面或第二方面的第一种实现方式或第二方面的第二种实现方 式或第二方面的第三种实现方式或第二方面的第四种实现方式或第二方面的 第五种实现方式, 在第六种实现方式下, 所述装置还包括: 箭头指示单元, 用 于当检测到所述待操作对象的移动方向与所述操作图标方向相同时,在显示屏 上显示与所述操作图标方向一致的指示性箭头; 箭头同步单元, 用于在开始执 行所述操作图标对应的功能操作之后,按照所述功能操作的处理进度延长所述 指示性箭头的长度; 在回滚已执行的所述操作图标对应的功能操作的过程中, 按照回滚进度缩短所述指示性箭头的长度。 操作对象的附近,显示所述待操作对象相关的操作图标; 通过检测所述待操作 对象被用户拖动的方向以及所到达的操作图标区域,实现操作图标对应的功能 和动作处理。采用本发明实施例, 用户通过拖动对象执行计算机程序的相关功 能和动作处理,能够简化计算机程序的执行步骤,而且以用户为中心进行交互, 保证了用户思维和操作的连续性, 操作直观自然。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施 例中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是 本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的 前提下, 还可以根据这些附图获得其他的附图。
图 1是现有技术的弹出式上下文菜单交互方法的示意图;
图 2是本发明实施例中一种执行程序的方法的流程示意图;
图 3是本发明实施例中一种执行程序的方法的拖动交互的示意图; 图 4是本发明实施例中一种执行程序的方法的应用场景的示意图; 图 5是本发明实施例中一种执行程序的装置的结构示意图;
图 6是图 5所示的执行程序的装置的操作图标生成单元的一个实施例的结 构示意图;
图 7是本发明实施例中另一种执行程序的装置的结构示意图;
图 8是本发明实施例中又一种执行程序的装置的结构示意图;
图 9是本发明实施例中再一种执行程序的装置的结构示意图;
图 10是本发明实施例中一种计算机系统的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
参见图 2, 本实施例提供一种执行程序的方法, 包括以下步骤:
521、 获取待操作对象的相关操作项, 在显示屏上显示与所述相关操作项 对应的操作图标; 所述待操作对象是显示屏上的可被用户操作的计算机程序; 所述待操作对象的原始显示坐标指向所述操作图标的显示坐标的方向为操作 图标方向。
522、 根据所述待操作对象的原始显示坐标和被用户拖动后的显示坐标, 计算获得所述待操作对象的移动方向。
S23、 当检测到所述待操作对象的移动方向与所述操作图标方向相同时, 开始执行所述操作图标对应的功能操作。
采用本发明实施例,用户通过拖动对象执行计算机程序的相关功能和动作 处理, 能够简化计算机程序的执行步骤, 而且以用户为中心进行交互, 保证了 用户思维和操作的连续性, 操作直观自然。
进一步的, 上述步骤 S21可以具体包括:
分析待操作对象的类型和状态, 获取所述待操作对象的相关操作项; 生成所述相关操作项对应的操作图标和所述操作图标的显示坐标; 根据所述操作图标的显示坐标,在显示屏上显示所述操作图标; 所述操作 图标对应的操作图标方向具有唯一性。
在第一个可选的实施方式中, 在上述步骤 S23之后, 所述方法还包括: 若检测到所述待操作对象沿所述操作图标方向连续移动,则继续执行所述 操作图标对应的功能操作。
进一步的, 所述方法还包括:
若检测到所述待操作对象沿所述操作图标方向移动到所述操作图标的区 域, 则继续执行所述操作图标对应的功能操作直到完成为止。
在第二个可选的实施方式中, 在上述步骤 S23之后, 所述方法还包括: 若检测到所述待操作对象的显示坐标不变且未被用户译放,则暂停执行所 述操作图标对应的功能操作。
在第三个可选的实施方式中, 在上述步骤 S23之后, 所述方法还包括: 若检测到所述待操作对象被用户译放而未移动到所述操作图标的区域,则 停止执行所述操作图标对应的功能操作, 并回滚已执行的功能操作。 在第四个可选的实施方式中, 所述方法还包括:
当检测到所述待操作对象的移动方向与所述操作图标方向相同时,在显示 屏上显示与所述操作图标方向一致的指示性箭头;在开始执行所述操作图标对 应的功能操作之后 , 按照所述功能操作的处理进度延长所述指示性箭头的长 度; 在回滚已执行的所述操作图标对应的功能操作的过程中,按照回滚进度缩 短所述指示性箭头的长度。
具体地,在开始执行所述操作图标对应的功能操作之后,按照所述功能操 作的处理进度同步地延长所述指示性箭头的长度;而且在回滚已执行的所述操 作图标对应的功能操作的过程中 ,按照回滚进度同步地缩短所述指示性箭头的 长度。
需说明的是, 上述 "同步地" 意思是功能操作继续处理, 则箭头则进行延 长, 该过程并不一定 "完全同步", 例如有可能功能操作处理 1%之后, 箭头再 延长全长的 1%。
在第五个可选的实施方式中, 所述方法还包括:
当检测到所述待操作对象的移动方向与所述操作图标方向相同时,在显示 屏上显示用于提示用户操作的指示性文字。
需要说明的是,上述实施例仅以待操作对象相关的其中一个操作图标为例 进行描述。 所述待操作对象的相关操作项可以有多个, 即通过分析待操作对象 的类型和状态, 能够获得所述待操作对象的相关操作集, 所述相关操作集包括 至少一个相关操作项。 然后, 生成每一个相关操作项对应的操作图标和显示坐 标, 根据生成的显示坐标在显示屏上显示每一个操作图标。 其中, 操作图标分 布在待操作对象的附近, 且每一个操作图标对应的操作图标方向具有唯一性, 例如, 多个操作图标分布在以待操作对象为圓心的圓周上。
在第六个可选的实施方式中, 当所述待操作对象的相关操作项有多个时, 所述方法还包括:当检测到所述待操作对象的移动方向与所述操作图标方向相 同时, 隐藏除所述操作图标之外的其他操作图标。
采用本发明实施例,用户通过拖动对象执行计算机程序的相关功能和动作 处理, 能够简化计算机程序的执行步骤, 而且以用户为中心进行交互, 保证了 用户思维和操作的连续性, 操作直观自然。 进一步的, 本实施例在检测到待操 作对象的移动方向与某一操作图标方向相同,还可以隐藏其他操作图标,使其 他操作图标不显示在显示屏上,从而使正在执行的操作图标更加直观, 方便用 户了解当前的操作情况。
本发明实施例提供的执行程序的方法, 可应用到计算机、移动终端等具有 显示屏的计算机系统中, 上述步骤 S21〜S23可由计算机系统来执行。
参见图 3 , 是本发明实施例中一种执行程序的方法的拖动交互的示意图。 用户与计算机系统(以下简称 "系统") 间进行交互, 执行计算机程序的步骤
^口下:
531、 用户选中系统中的一个对象, 所述对象就是待操作对象。
S311、 系统分析所述对象的类型和状态, 获取所述对象的相关操作集。
5312、 系统生成所述相关操作集对应的操作图标集和显示坐标; 其中, 所 述操作图标集包括至少一个操作图标;
假设所述操作图标集包括第一操作图标,则所述对象的原始显示坐标指向 所述第一操作图标的显示坐标的方向, 为所述第一操作图标的操作图标方向。 每一个操作图标的操作图标方向具有唯一性。
5313、 系统根据所述操作图标集中的每一个操作图标的显示坐标,在显示 屏上显示每一个操作图标。
532、 用户开始拖动所述对象。
S321、 系统分析所述对象被拖动后的坐标变化,计算所述对象的原始显示 坐标和被用户拖动后的显示坐标所形成的方向, 获得所述对象的移动方向。
5322、系统判断所述对象的移动方向是否和某一操作图标的操作图标方向 相同; 若相同, 则执行 S323〜S324; 若所述对象的移动方向和任意一个操作图 标的操作图标方向都不相同, 则不进行处理。
为方便描述,下面假设所述对象的移动方向和第一操作图标的操作图标方 向相同, 即用户请求执行第一操作图标对应的功能操作。
5323、生成与所述操作图标方向一致的指示性箭头, 以及用于提示用户操 作的指示性文字; 在显示屏上显示所述指示性箭头和指示性文字。
5324、 系统隐藏除所述第一操作图标之外的其他操作图标。 S33、 用户继续沿着指示性箭头的方向拖动所述对象。
5331、 系统分析所述对象被拖动后的坐标变化,计算所述对象的原始显示 坐标和被用户拖动后的显示坐标所形成的方向, 获得所述对象的移动方向。
5332、系统判断所述对象的移动方向是否和当前的第一操作图标的操作图 标方向相同; 若相同, 则执行 S333〜S334; 若不相同, 则不进行处理。
5333、 系统开始执行第一操作图标对应的功能操作,进行相应的功能或动 作处理。
5334、 系统按照所述第一操作图标对应的功能操作的处理进度, 同步地延 长所述指示性箭头的长度。
534、 在对象到达第一操作图标的区域之前, 用户暂停拖动对象。
5341、 系统在开始执行第一操作图标对应的功能操作之后,检测到所述对 象的显示坐标不变且未被用户译放。
5342、 系统暂停执行第一操作图标对应的功能操作。
535、 在所述对象到达第一操作图标的区域之前, 用户译放对象。
S351、 系统在开始执行所述操作图标对应的功能操作之后,若检测到所述 对象被用户译放而未移动到所述操作图标的区域,则停止执行第一操作图标对 应的功能操作, 并隐藏第一操作图标。
S352、 系统回滚已执行的第一操作图标对应的功能操作。
S353、 系统根据回滚的进度, 同步地缩短所述指示性箭头的长度。
536、 用户将对象拖动到第一操作图标的区域。
5361、 系统检测到所述对象移动到所述第一操作图标的区域时, 隐藏所述 指示性箭头。
5362、 系统继续执行所述第一操作图标对应的功能操作, 直到完成为止。
537、 用户将对象拖动到第一操作图标的区域之后, 译放所述对象。
S371、 系统检测到所述对象移动到所述第一操作图标的区域且被用户释 放, 隐藏所述对象。 5372、 系统调整第一操作图标的外观(例如改变颜色或形状等), 以指示 第一操作图标对应的功能操作是否成功。
5373、 系统隐藏第一操作图标。 参见图 4, 是本发明实施例中一种执行程序的方法的应用场景的示意图。 本实施例仅以待操作对象是系统中的应用程序 Google App Engine的安装包图 标为例进行描述。
如图 4所示的用户界面 a , 是应用程序 Google App Engine的安装包图标 未被用户选中的用户界面。
如图 4所示的用户界面 b , 是应用程序 Google App Engine的安装包图标 被用户选中的用户界面。 当此安装包图标被选中后,在安装包图标的下方或周 围出现 "删除"操作图标和 "安装"操作图标, 这两个操作图标的操作图标方 向不相同。
如图 4所示的用户界面 c, 是用户开始拖动应用程序 Google App Engine 的安装包图标的用户界面。 用户沿 "删除"操作图标的方向开始拖动应用程序 Google App Engine的安装包图标时, 用户界面上出现初始化大小的指示性箭 头和指示性文字,所述指示性文字为: 沿着箭头方向移动完成删除操作。而且, 系统隐藏 "安装" 操作图标。
如图 4所示的用户界面 d, 是用户继续沿 "删除" 操作图标的方向连续拖 动应用程序 Google App Engine的安装包图标的用户界面。 在此拖动过程中, 系统执行删除应用程序 Google App Engine的安装包的操作, 同时根据删除操 作的进度同步地延长指示性箭头的长度。
如图 4所示的用户界面 e, 是用户将应用程序 Google App Engine的安装 包图标拖动到 "删除"操作图标的区域的用户界面。 此时, 指示性箭头的长度 也延长到 "删除" 操作图标的区域, 此状态表示系统已经完成删除应用程序 Google App Engine的安装包的操作, 进入用户界面 f。
如图 4所示的用户界面 f,是用户译放应用程序 Google App Engine的安装 包图标之后的用户界面。 此时, 系统隐藏应用程序 Google App Engine的安装 包图标和指示性箭头。 而且, 系统改变 "删除 "操作图标的外观(例如变色), 表示成功删除应用程序 Google App Engine的安装包, 之后进入用户界面 g; 如图 4所示的用户界面 g, 是 "删除" 操作图标对应的功能操作成功后的 用户界面。 此时, 系统隐藏 "删除" 操作图标。
此外, 用户在拖动应用程序 Google App Engine的安装包图标的过程中, 还可以暂停或停止相应的功能操作。 具体如下:
如图 4所示的用户界面 d , 当用户暂停拖动应用程序 Google App Engine 的安装包图标时, 系统检测到应用程序 Google App Engine的安装包图标的显 示坐标不变且未被用户释放, 则暂停执行删除应用程序 Google App Engine的 安装包的操作。
如图 4所示的用户界面 d, 如果用户在应用程序 Google App Engine的安 装包图标被拖动到 "删除" 操作图标的区域之前, 译放应用程序 Google App Engine的安装包图标。 此时, 系统检测到应用程序 Google App Engine的安装 包图标被用户译放而未移动到 "删除 "操作图标的区域, 则停止执行删除应用 程序 Google App Engine的安装包的操作, 并回滚已执行的删除操作, 同时根 据删除操作的进度同步地缩短指示性箭头的长度。在回滚已执行的删除操作之 后, 返回如图 4所示的用户界面 a。
上述实施例提供的执行程序的方法,用户可以通过拖动对象执行计算机程 序的相关功能和动作处理。 系统根据用户拖动对象的状态, 采用指示性箭头形 象地表达计算机程序的执行过程, 包括正在处理、 暂停、 回滚和处理的进度, 该指示性箭头能够替代现有技术中的弹出式菜单、 进度条、 等待图标等。 系统 通过改变操作图标的外观, 能够形象地表达操作成功或失败。
上述实施例适用于计算机程序的交互操作,尤其适用于交互操作时长小于 5秒的交互操作。 当用户沿某一操作图标方向开始拖动计算机程序图标时, 系 统开始执行该操作图标对应的功能操作;当用户继续连续地将计算机程序图标 拖动到该操作图标的区域后, 该操作图标对应的功能操作一般也执行完毕。
上述实施例提供的拖动执行程序的方法, 简化了计算机程序的执行步骤, 而且以用户为中心进行交互,保证了用户思维和操作的连续性,操作直观自然。
此外, 本发明实施例提供的执行程序的方法, 还可以在上述步骤 S23中, 在检测到所述待操作对象的移动方向与某一操作图标的操作图标方向相同时, 获取该操作图标的交互操作时长,将所述交互操作时长与设定的时长阀值进行 比较。若所述交互操作时长小于时长阀值, 则当检测到所述待操作对象的移动 方向与某一操作图标方向相同时, 开始执行所述操作图标对应的功能操作。 若 所述交互操作时长大于或等于时长阀值,则当检测到所述待操作对象移动到所 述操作图标的区域时,开始执行所述操作图标对应的功能操作, 并提供进度条 提示操作进度。 本发明还提供一种执行程序的装置,能够实现上述实施例中的拖动执行程 序的方法的所有流程。
参见图 5 , 本发明实施例提供一种执行程序的装置, 包括操作图标生成单 元 51、 移动方向计算单元 52和执行单元 53 , 具体如下:
操作图标生成单元 51 , 用于获取待操作对象的相关操作项, 在显示屏上 显示与所述相关操作项对应的操作图标;所述待操作对象是显示屏上的可被用 户操作的计算机程序;所述待操作对象的原始显示坐标指向所述操作图标的显 示坐标的方向为操作图标方向。
移动方向计算单元 52 , 用于根据所述待操作对象的原始显示坐标和被用 户拖动后的显示坐标, 计算获得所述待操作对象的移动方向。
开始执行单元 53 , 用于当检测到所述待操作对象的移动方向与所述操作 图标方向相同时, 开始执行所述操作图标对应的功能操作。
采用本发明实施例,用户通过拖动对象执行计算机程序的相关功能和动作 处理, 能够简化计算机程序的执行步骤, 而且以用户为中心进行交互, 保证了 用户思维和操作的连续性, 操作直观自然。
参见图 6, 本发明实施例提供一种操作图标生成单元 51 , 包括分析子单元 61、 生成子单元 62和显示子单元 63 , 具体如下:
分析子单元 61 , 用于分析待操作对象的类型和状态, 获取所述待操作对 象的相关操作项。
生成子单元 62, 用于生成所述相关操作项对应的操作图标和所述操作图 标的显示坐标。
显示子单元 63 , 用于根据所述操作图标的显示坐标, 在显示屏上显示所 述操作图标; 所述操作图标对应的操作图标方向具有唯一性。
参见图 7 , 本发明实施例提供另一种执行程序的装置, 除了包括上述实施 例中的操作图标生成单元 51、 移动方向计算单元 52和执行单元 53之外, 还 包括:
继续执行单元 71 , 用于在所述当检测到所述待操作对象的移动方向与所 述操作图标方向相同时, 开始执行所述操作图标对应的功能操作的步骤之后, 若检测到所述待操作对象沿所述操作图标方向连续移动,则继续执行所述操作 图标对应的功能操作。
进一步, 所述装置还可以包括:
执行确认单元 72, 用于若检测到所述待操作对象沿所述操作图标方向移 动到所述操作图标的区域,则继续执行所述操作图标对应的功能操作直到完成 为止。
参见图 8, 本发明实施例提供又一种执行程序的装置, 除了包括上述实施 例中的操作图标生成单元 51、 移动方向计算单元 52和执行单元 53之外, 还 包括:
暂停执行单元 81 , 用于在所述当检测到所述待操作对象的移动方向与所 述操作图标方向相同时, 开始执行所述操作图标对应的功能操作的步骤之后, 若检测到所述待操作对象的显示坐标不变且未被用户译放,则暂停执行所述操 作图标对应的功能操作。
参见图 9, 本发明实施例提供再一种执行程序的装置, 除了包括上述实施 例中的操作图标生成单元 51、 移动方向计算单元 52和执行单元 53之外, 还 包括:
停止执行单元 91 , 用于在所述当检测到所述待操作对象的移动方向与所 述操作图标方向相同时, 开始执行所述操作图标对应的功能操作的步骤之后, 若检测到所述待操作对象被用户译放而未移动到所述操作图标的区域,则停止 执行所述操作图标对应的功能操作, 并回滚已执行的功能操作。
本发明实施例还提供一种执行程序的装置,除了包括上述实施例中的操作 图标生成单元 51、 移动方向计算单元 52和执行单元 53之外, 还可以包括上 述实施例中的继续执行单元 71、执行确认单元 72、暂停执行单元 81和停止执 行单元 91中的至少二项。
此外, 上述实施例提供的执行程序的装置, 还可以包括箭头指示单元、 箭 头同步单元、 文字指示单元和图标隐藏单元中的至少一项。 具体如下:
箭头指示单元,用于当检测到所述待操作对象的移动方向与所述操作图标 方向相同时, 在显示屏上显示与所述操作图标方向一致的指示性箭头。
箭头同步单元, 用于在开始执行所述操作图标对应的功能操作之后,按照 所述功能操作的处理进度同步地延长所述指示性箭头的长度;而且在回滚已执 行的所述操作图标对应的功能操作的过程中,按照回滚进度同步地缩短所述指 示性箭头的长度。
文字指示单元,用于当检测到所述待操作对象的移动方向与所述操作图标 方向相同时, 在显示屏上显示用于提示用户操作的指示性文字。
图标隐藏单元,用于当检测到所述待操作对象的移动方向与所述操作图标 方向相同时, 隐藏除所述操作图标之外的其他操作图标。 参见图 10, 本发明实施例提供一种计算机系统, 包括输入装置 101、 输出 装置 102、 存储器 103和处理器 104, 该处理器 104可执行如下步骤: 获取待 操作对象的相关操作项, 在显示屏上显示与所述相关操作项对应的操作图标; 所述待操作对象是显示屏上的可被用户操作的计算机程序;所述待操作对象的 原始显示坐标指向所述操作图标的显示坐标的方向为操作图标方向;根据所述 待操作对象的原始显示坐标和被用户拖动后的显示坐标,计算获得所述待操作 对象的移动方向;当检测到所述待操作对象的移动方向与所述操作图标方向相 同时, 开始执行所述操作图标对应的功能操作。
处理器 104执行程序的进一步详细技术方案, 可以但不限于如图 2、 图 3 和图 4所示的实施例的详细描述。
其中存储器 103用于存储处理器 104需要执行的程序, 进一步的,存储器 103还可以存储处理器 104在计算过程中产生的结果。
除图 10所示的连接方式之外, 在本发明的其它一些实施例中, 输入装置 101、 输出装置 102、 存储器 103和处理器 104还可以通过总线连接。 该总线 可以是 ISA ( Industry Standard Architecture, 工业标准体系结构) 总线、 PCI ( Peripheral Component , 夕卜部设备互连) 总线或 EISA ( Extended Industry Standard Architecture, 扩展工业标准体系结构)总线等。 所述总线可以是一条 或多条物理线路, 当是多条物理线路时可以分为地址总线、 数据总线、 控制总 线等。
在本发明实施例中还提供了一种计算机存储介质,该计算机存储介质中存 储有计算机程序, 该计算机程序可执行如图 2所示的实施例中的步骤。 上的待操作对象的附近,显示所述待操作对象相关的操作图标; 通过检测所述 待操作对象被用户拖动的方向以及所到达的操作图标区域,实现操作图标对应 的功能和动作处理。采用本发明实施例, 用户通过拖动对象执行计算机程序的 相关功能和动作处理, 能够简化计算机程序的执行步骤, 而且以用户为中心进 行交互, 保证了用户思维和操作的连续性, 操作直观自然。 在检测到待操作对 象的移动方向与某一操作图标方向相同,还可以隐藏其他操作图标,使其他操 作图标不显示在显示屏上,从而使正在执行的操作图标更加直观, 方便用户了 解当前的操作情况。也可以根据需求显示箭头或其它指示性文字, 以便于用户 了解操作进程。
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相 似的部分互相参见即可, 每个实施例重点说明的都是与其他实施例的不同之 处。 尤其, 对于装置和系统实施例而言, 由于其基本相似于方法实施例, 所以 描述得比较简单, 相关之处参见方法施例的部分说明即可。
需说明的是, 以上所描述的装置实施例仅仅是示意性的, 其中所述作为分 离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件 可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到多 个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实 施例方案的目的。 另外, 本发明提供的装置实施例附图中, 模块之间的连接关 系表示它们之间具有通信连接, 具体可以实现为一条或多条通信总线或信号 线。 本领域普通技术人员在不付出创造性劳动的情况下, 即可以理解并实施。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发 明可借助软件加必需的通用硬件的方式来实现,当然也可以通过专用硬件包括 专用集成电路、 专用 CPU、 专用存储器、 专用元器件等来实现。 一般情况下, 凡由计算机程序完成的功能都可以很容易地用相应的硬件来实现, 而且, 用来 实现同一功能的具体硬件结构也可以是多种多样的, 例如模拟电路、数字电路 或专用电路等。但是,对本发明而言更多情况下软件程序实现是更佳的实施方 式。基于这样的理解, 本发明的技术方案本质上或者说对现有技术做出贡献的 部分可以以软件产品的形式体现出来 ,该计算机软件产品存储在可读取的存储 介质中, 如计算机的软盘, U盘、 移动硬盘、 只读存储器(ROM, Read-Only Memory ), 随机存取存储器(RAM, Random Access Memory )、 磁碟或者光盘 等, 包括若干指令用以使得一台计算机设备(可以是个人计算机, 服务器, 或 者网络设备等)执行本发明各个实施例所述的方法。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于 此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到 变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应 以所述权利要求的保护范围为准。

Claims

权 利 要 求
1、 一种执行程序的方法, 其特征在于, 包括:
获取待操作对象的相关操作项,在显示屏上显示与所述相关操作项对应的 操作图标; 所述待操作对象是显示屏上的可被用户操作的计算机程序; 所述待 操作对象的原始显示坐标指向所述操作图标的显示坐标的方向为操作图标方 向;
根据所述待操作对象的原始显示坐标和被用户拖动后的显示坐标,计算获 得所述待操作对象的移动方向;
当检测到所述待操作对象的移动方向与所述操作图标方向相同时,开始执 行所述操作图标对应的功能操作。
2、 如权利要求 1所述的方法, 其特征在于, 所述获取待操作对象的相关 操作项, 在显示屏上显示与所述相关操作项对应的操作图标, 包括:
分析待操作对象的类型和状态, 获取所述待操作对象的相关操作项; 根据所述相关操作项生成与所述相关操作项对应的操作图标和所述操作 图标的显示坐标;
根据所述操作图标的显示坐标,在显示屏上显示所述操作图标; 所述操作 图标对应的操作图标方向具有唯一性。
3、 如权利要求 1或 2所述的方法, 其特征在于, 所述方法还包括: 若检测到所述待操作对象沿所述操作图标方向连续移动,则继续执行所述 操作图标对应的功能操作。
4、 如权利要求 3所述的方法, 其特征在于, 所述方法还包括:
若检测到所述待操作对象沿所述操作图标方向移动到所述操作图标的区 域, 则继续执行所述操作图标对应的功能操作直到完成为止。
5、 如权利要求 1或 2所述的方法, 其特征在于, 所述方法还包括: 若检测到所述待操作对象的显示坐标不变且未被用户译放,则暂停执行所 述操作图标对应的功能操作。
6、 如权利要求 1或 2所述的方法, 其特征在于, 所述方法还包括: 若检测到所述待操作对象被用户译放而未移动到所述操作图标的区域,则 停止执行所述操作图标对应的功能操作, 并回滚已执行的功能操作。
7、 如权利要求 1-6任一项所述的方法, 其特征在于, 当检测到所述待操 作对象的移动方向与所述操作图标方向相同时 ,在显示屏上显示与所述操作图 标方向一致的指示性箭头;
在开始执行所述操作图标对应的功能操作之后,按照所述功能操作的处理 进度延长所述指示性箭头的长度;在回滚已执行的所述操作图标对应的功能操 作的过程中, 按照回滚进度缩短所述指示性箭头的长度。
8、 如权利要求 1-7任一项所述的方法, 其特征在于, 当检测到所述待操 作对象的移动方向与所述操作图标方向相同时,在显示屏上显示用于提示用户 操作的指示性文字。
9、 如权利要求 1-8任一项所述的方法, 其特征在于, 所述方法还包括: 当检测到所述待操作对象的移动方向与所述操作图标方向相同时,隐藏除 所述操作图标之外的其它操作图标。
10、 一种执行程序的装置, 其特征在于, 所述装置包括:
操作图标生成单元, 用于获取待操作对象的相关操作项,在显示屏上显示 与所述相关操作项对应的操作图标;所述待操作对象是显示屏上的可被用户操 作的计算机程序;所述待操作对象的原始显示坐标指向所述操作图标的显示坐 标的方向为操作图标方向;
移动方向计算单元,用于根据所述待操作对象的原始显示坐标和被用户拖 动后的显示坐标, 计算获得所述待操作对象的移动方向;
开始执行单元,用于当检测到所述待操作对象的移动方向与所述操作图标 方向相同时, 开始执行所述操作图标对应的功能操作。
11、 如权利要求 10所述的装置, 其特征在于, 所述操作图标生成单元具 体包括:
分析子单元, 用于分析待操作对象的类型和状态, 获取所述待操作对象的 相关操作项;
生成子单元,用于根据所述相关操作项生成与所述相关操作项对应的操作 图标和所述操作图标的显示坐标;
显示子单元, 用于根据所述操作图标的显示坐标,在显示屏上显示所述操 作图标; 所述操作图标对应的操作图标方向具有唯一性。
12、 如权利要求 10或 11所述的装置, 其特征在于, 所述装置还包括: 继续执行单元,用于若检测到所述待操作对象沿所述操作图标方向连续移 动, 则继续执行所述操作图标对应的功能操作。
13、 如权利要求 12所述的装置, 其特征在于, 所述装置还包括: 执行确认单元,用于若检测到所述待操作对象沿所述操作图标方向移动到 所述操作图标的区域, 则继续执行所述操作图标对应的功能操作直到完成为 止。
14、 如权利要求 10或 11所述的装置, 其特征在于, 所述装置还包括: 暂停执行单元,用于若检测到所述待操作对象的显示坐标不变且未被用户 译放, 则暂停执行所述操作图标对应的功能操作。
15、 如权利要求 10或 11所述的装置, 其特征在于, 所述装置还包括: 停止执行单元,用于若检测到所述待操作对象被用户译放而未移动到所述 操作图标的区域, 则停止执行所述操作图标对应的功能操作, 并回滚已执行的 功能操作。
16、如权利要求 10〜15任一项所述的装置,其特征在于,所述装置还包括: 箭头指示单元,用于当检测到所述待操作对象的移动方向与所述操作图标 方向相同时,在显示屏上显示与所述操作图标方向一致的指示性箭头; 箭头同 步单元, 用于在开始执行所述操作图标对应的功能操作之后,按照所述功能操 作的处理进度延长所述指示性箭头的长度;在回滚已执行的所述操作图标对应 的功能操作的过程中, 按照回滚进度缩短所述指示性箭头的长度。
17、如权利要求 10〜16任一项所述的装置,其特征在于,所述装置还包括: 文字指示单元,用于当检测到所述待操作对象的移动方向与所述操作图标 方向相同时, 在显示屏上显示用于提示用户操作的指示性文字。
18、如权利要求 10〜17任一项所述的装置,其特征在于,所述装置还包括: 图标隐藏单元,用于当检测到所述待操作对象的移动方向与所述操作图标 方向相同时, 隐藏除所述操作图标之外的其他操作图标。
PCT/CN2013/075098 2012-10-29 2013-05-03 执行程序的方法及装置 WO2014067274A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP13753405.3A EP2775396B1 (en) 2012-10-29 2013-05-03 Program execution method and apparatus
ES13753405.3T ES2610778T3 (es) 2012-10-29 2013-05-03 Método y aparato para ejecutar un programa
US14/023,984 US9910583B2 (en) 2012-10-29 2013-09-11 Method and apparatus for program exceution based icon manipulation

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210419361.0 2012-10-29
CN201210419361.0A CN102968259B (zh) 2012-10-29 2012-10-29 执行程序的方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/023,984 Continuation US9910583B2 (en) 2012-10-29 2013-09-11 Method and apparatus for program exceution based icon manipulation

Publications (1)

Publication Number Publication Date
WO2014067274A1 true WO2014067274A1 (zh) 2014-05-08

Family

ID=47798427

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/075098 WO2014067274A1 (zh) 2012-10-29 2013-05-03 执行程序的方法及装置

Country Status (4)

Country Link
EP (1) EP2775396B1 (zh)
CN (1) CN102968259B (zh)
ES (1) ES2610778T3 (zh)
WO (1) WO2014067274A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9910583B2 (en) 2012-10-29 2018-03-06 Huawei Technologies Co., Ltd. Method and apparatus for program exceution based icon manipulation
CN102968259B (zh) * 2012-10-29 2016-12-07 华为技术有限公司 执行程序的方法及装置
CN104866181B (zh) * 2015-06-08 2018-05-08 北京金山安全软件有限公司 一种多操作事件的执行方法及装置
CN108228023B (zh) * 2016-12-21 2020-09-29 北京搜狗科技发展有限公司 一种用于安装应用程序的方法及装置、电子设备
CN107885437A (zh) * 2017-11-29 2018-04-06 广州视源电子科技股份有限公司 多元素交互方法、装置、设备和存储介质
CN110062287B (zh) * 2019-02-27 2021-10-19 网易传媒科技(北京)有限公司 目标对象控制方法及装置、存储介质、电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030064757A1 (en) * 2001-10-01 2003-04-03 Hitoshi Yamadera Method of displaying information on a screen
US20090213086A1 (en) * 2006-04-19 2009-08-27 Ji Suk Chae Touch screen device and operating method thereof
CN101714057A (zh) * 2008-10-02 2010-05-26 三星电子株式会社 用于便携式装置的触摸输入装置和方法
US7834861B2 (en) * 2006-09-27 2010-11-16 Lg Electronics Inc. Mobile communication terminal and method of selecting menu and item
CN102968259A (zh) * 2012-10-29 2013-03-13 华为技术有限公司 执行程序的方法及装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050235293A1 (en) * 2004-04-14 2005-10-20 Microsoft Corporation Methods and systems for framework layout editing operations
US7958460B2 (en) * 2007-10-30 2011-06-07 International Business Machines Corporation Method for predictive drag and drop operation to improve accessibility
KR101646254B1 (ko) * 2009-10-09 2016-08-05 엘지전자 주식회사 이동 통신 단말기에서의 아이콘 삭제 방법 및 이를 적용한 이동 통신 단말기
KR101668240B1 (ko) * 2010-04-19 2016-10-21 엘지전자 주식회사 휴대 단말기 및 그 동작 제어방법
US20120030567A1 (en) * 2010-07-28 2012-02-02 Victor B Michael System with contextual dashboard and dropboard features

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030064757A1 (en) * 2001-10-01 2003-04-03 Hitoshi Yamadera Method of displaying information on a screen
US20090213086A1 (en) * 2006-04-19 2009-08-27 Ji Suk Chae Touch screen device and operating method thereof
US7834861B2 (en) * 2006-09-27 2010-11-16 Lg Electronics Inc. Mobile communication terminal and method of selecting menu and item
CN101714057A (zh) * 2008-10-02 2010-05-26 三星电子株式会社 用于便携式装置的触摸输入装置和方法
CN102968259A (zh) * 2012-10-29 2013-03-13 华为技术有限公司 执行程序的方法及装置

Also Published As

Publication number Publication date
CN102968259A (zh) 2013-03-13
EP2775396B1 (en) 2016-10-19
EP2775396A1 (en) 2014-09-10
ES2610778T3 (es) 2017-05-03
EP2775396A4 (en) 2014-12-31
CN102968259B (zh) 2016-12-07

Similar Documents

Publication Publication Date Title
WO2014067274A1 (zh) 执行程序的方法及装置
US9141197B2 (en) Interacting with a device using gestures
JP5123176B2 (ja) リモートで生成されたグラフィカルウィンドウへのグラフィカルウィンドウ修正コマンドの適用
JP2019057298A5 (zh)
US11256333B2 (en) Closing, starting, and restarting applications
CN103339593B (zh) 用以在触摸屏上呈现多个框的系统和方法
WO2016011568A1 (zh) 一种用于多点触摸终端的触摸控制方法与设备
JP2014229150A5 (zh)
JP6377263B2 (ja) 端末機器においてスクリーンショットサービスを提供するための方法、装置、記憶媒体及び機器
JP2014527251A5 (zh)
JP2013003718A (ja) 情報処理装置、情報処理装置のスクロール表示方法およびスクロール表示プログラム
WO2014019118A1 (zh) 一种对终端进行解锁的方法及装置
US20140215393A1 (en) Touch-based multiple selection
JP6180610B1 (ja) ゲーム方法およびゲームプログラム
TW201243672A (en) Mobile phone with pointer and control pointer method thereof
JP2016038910A (ja) 表示制御装置、表示制御方法、及びそれをコンピュータで実行するためのコンピュータ・プログラム
CN104572133B (zh) 一种用于执行计算任务中多用户的操作的方法与设备
TW201913299A (zh) 終端設備的操作方法、裝置以及電子設備
WO2017076046A1 (zh) 对应用程序进行控制的方法及其装置和移动终端
JP2014022861A (ja) 端末装置、コンピュータプログラム、及びプレゼンテーションシステム
WO2018098960A1 (zh) 一种触屏设备操作方法及触屏设备
JP2010211352A (ja) タッチパネル座標指定方法およびタッチパネル座標指定装置
CN109074189A (zh) 用于对输入感测、渲染及显示进行定时以便最小化时延的系统和方法
JP6662861B2 (ja) ユーザアクションに応答して直接操作の有効化を決定するためのヒットテスト
US9910583B2 (en) Method and apparatus for program exceution based icon manipulation

Legal Events

Date Code Title Description
REEP Request for entry into the european phase

Ref document number: 2013753405

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2013753405

Country of ref document: EP

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13753405

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE