CN105653133B - The extended method and device of application program - Google Patents

The extended method and device of application program Download PDF

Info

Publication number
CN105653133B
CN105653133B CN201511024870.3A CN201511024870A CN105653133B CN 105653133 B CN105653133 B CN 105653133B CN 201511024870 A CN201511024870 A CN 201511024870A CN 105653133 B CN105653133 B CN 105653133B
Authority
CN
China
Prior art keywords
application
parasitic
coordinate
application program
icon
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201511024870.3A
Other languages
Chinese (zh)
Other versions
CN105653133A (en
Inventor
王杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Language Network (wuhan) Information Technology Co Ltd
Original Assignee
Language Network (wuhan) Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Language Network (wuhan) Information Technology Co Ltd filed Critical Language Network (wuhan) Information Technology Co Ltd
Priority to CN201511024870.3A priority Critical patent/CN105653133B/en
Publication of CN105653133A publication Critical patent/CN105653133A/en
Application granted granted Critical
Publication of CN105653133B publication Critical patent/CN105653133B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • 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
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Landscapes

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

Abstract

The present invention relates to the expansion technique fields of computer applied algorithm, disclose the program extended method and device of a kind of application program, including parasitic application program and host application, parasitic application program is the application program extended, host application is to have the application program of active window, even if the icon of parasitic application program remains in host application active window, change with the variation of host application active window.The icon of parasitic application program maps the script of parasitic application program, clicks the icon of parasitic application program, can call parasitic application program.Parasitic application program is not necessarily to be associated encapsulation by nested interface with host application, therefore overcomes the various limitations and deficiency of existing application plug-in technology extension application, and use is very flexible, and can be to the experience that user has brought.

Description

The extended method and device of application program
Technical field
The present invention relates to the expansion technique fields of computer applied algorithm, more particularly to a kind of extension side of application program Method and device.
Background technique
It is such as clear in computer in use, there is some application programs to load when often applying because of most users, is long It lookes at device, QQ instant messaging, OFFICE, becomes a kind of intimate common application.And there are some applications to be user's specific development, also need It is commonly used.If user wants using specific application, must just change to could access the application icon, open and apply it Switch back into frequent application window again afterwards, frequent windows exchange brings very big inconvenience to the operation of user.
Such issues that prior art solves mainly utilizes plug-in part technology.Plug-in unit is a kind of computer program, it then follows a set pattern The application programming interfaces of model are write out, by mutual with application program (such as web browser, e-mail server etc.) It is dynamic, some specific functions required for being used to increase for application program.Many softwares have a plug-in unit, it is most common have game, The plug-in unit of web browser and the plug-in unit of media player.Such as in IE, after installing relevant plug-in unit, web browser can Plug-in card program is called directly, certain types of file is handled.The common plug-in unit of IE browser is such as: Flash plug-in unit, RealPlayer Plug-in unit, MMS plug-in unit, MIDI staff plug-in unit, ActiveX plug-in unit etc.;The DFX and plug-in unit of Winamp for another example.
In the prior art based on COM plug-in part technology access applications window, support the desktop application of COM plug-in unit by answering It is formed with program (host program) and various COM plug-in units;COM plug-in unit is loaded by host program, and operates in phase with host program In same program process.COM plug-in unit and host program are provided by the interface communication of standard, COM plug-in unit to host program IDispatch interface, for the behavior of host program control COM plug-in unit, host program provides Application to COM plug-in unit and connects Mouthful, toolbar is added in host program for COM plug-in unit, obtains the context data of host program.
From this, plug-in unit must be according to certain application programming interfaces specification, and it is packaged and encapsulates with application program, so Plug-in unit does not have independence and independence.Once application program exits, which also exits therewith.Moreover if application program is not Application programming interfaces specification is provided or does not support pin function, then cannot achieve plug-in unit.
Therefore, a kind of application extensions independent of application programming interfaces and plug-in part technology how to be realized, are existed very Extensive functional need.
Summary of the invention
Technical problem to be solved by the invention is to provide the program extended method and device of a kind of application program, overcome existing There are the various limitations and deficiency of application plug-in technology extension application.
In order to solve the above technical problems, present invention firstly provides a kind of program extended method of application program, including parasitism Application program and host application, the parasitism application program is the application program extended, and the host application has There is the application program of active window, the icon of the parasitism application program is located in the host application active window;Packet Include following steps:
The icon for receiving the parasitic application program is dragged to information in host application active window,
Obtain the coordinate information of the host application name information and its active window;
The coordinate of the target area of parasitic application icon drag and drop is calculated,
The parasitic application icon coordinate is calculated in the relative coordinate position of the host application window, is saved The relative coordinate position;
Further, the information that the parasitic application icon is clicked is received;Call the parasitic application program image Mark corresponding application scenarios.
Further, the information that host application window is dragged or scales is received;
It, will according to the relative coordinate position of the relatively described host application window of the parasitic application icon coordinate The parasitism application icon is placed in the host application window after variation.
Further, comprising the following steps:
By the discrete regions of the RGB color value of the host application window internal coordinate be divided into multiple set to Duration set A (C1...Cn), set CiIt is defined as (coordinate, rgb value), the integer that i is 1 to n;
Vector set A is traversed, is grouped for the different coordinate of rgb value and is recorded in vector B;
The parasitic application program image target coordinate is traversed whether in vector B coordinate, if it is, parasitism is answered It is set to the field color with the background colour of program icon and is moved to and be directed toward the region;If it is not, will the parasitic application Program icon puts back into the starting point of dragging.
The invention also proposes a kind of devices of program extended method for realizing application program, including parasitism to apply journey Sequence and host application, the parasitism application program is the application program extended, and the host application has activity The icon of the application program of window, the parasitism application program is located in the host application active window;Further include:
Module one, the icon for receiving the parasitic application program are dragged in host application active window Information;
Module two, for obtaining the coordinate information of the host application name information and its active window;
Module three, the coordinate of the target area for calculating parasitic application icon drag and drop;
Module four is sat for calculating the parasitic application icon coordinate in the opposite of the host application window Cursor position saves the relative coordinate position;
Further, further includes:
Module five, the information being clicked for receiving the parasitic application icon;
Module six, for calling the corresponding application scenarios of the parasitic application icon.
Further, further includes:
Module seven, for receiving the information that host application window is dragged or scales;
Module eight, for according to the opposite of the relatively described host application window of the parasitic application icon coordinate The parasitic application icon is placed in the host application window after variation by coordinate position.
Preferably, further includes:
Module nine, for being divided into the discrete regions of the RGB color value of the host application window internal coordinate The vector set A (C of multiple set1...Cn), set CiIt is defined as (coordinate, rgb value), the integer that i is 1 to n;
Module ten is grouped for the different coordinate of rgb value for traversing vector set A and is recorded in vector B;
Module 11, for traversing the parasitic application program image target coordinate whether in vector B coordinate, if It is that then parasitic application program image target background colour is set to the field color and is moved to be directed toward the region;If it is not, will compare The parasitism application icon puts back into the starting point of dragging.
The utility model has the advantages that parasitic application icon is active in the window of host application, and as host applies journey The change of the window of sequence and follow change location automatically, and be maintained in the window of host application.Client, which needs to call, to be expanded When the parasitic application program of exhibition, the parasitic application icon in the window of host application need to be only clicked.Parasitism is answered It is not necessarily to be associated encapsulation by nested interface with host application with program, therefore existing application plug-in technology is overcome to extend Various limitations of application program and deficiency, use are very flexible.
Detailed description of the invention
Technical solution of the present invention is further described in detail with reference to the accompanying drawings and detailed description.
Fig. 1 is the flow chart of the program extended method of application program of the invention.
Specific embodiment
As shown in Figure 1, the present invention provides a kind of program extended method of application program, including parasitic application program and host Application program, parasitic application program are the application program extended, and host application is to have the application program of active window, are posted The icon of raw application program is located in host application active window;The following steps are included:
The icon for receiving parasitic application program is dragged to the information in host application active window,
Obtain the coordinate information of host application name information and its active window;
The discrete regions of the RGB color value of host application window internal coordinate are divided into the vector set of multiple set Close A (C1...Cn), set CiIt is defined as (coordinate, rgb value), the integer that i is 1 to n;
Vector set A is traversed, is grouped for the different coordinate of rgb value and is recorded in vector B;
The coordinate of the target area of parasitic application icon drag and drop is calculated,
More parasitic application program image target coordinate is traversed whether in vector B coordinate, if it is, parasitism is applied journey The background colour of sequence icon, which is set to the field color and moves to, is directed toward the region;If it is not, will more parasitic application icon Put back into the starting point of dragging.
Parasitic application icon coordinate is calculated in the relative coordinate position of host application window, saves relative coordinate Position;
The icon of parasitic application program maps the script of parasitic application program, clicks the icon of parasitic application program Call parasitic application program.When the information that the parasitic application icon of reception is clicked;Then call parasitic application icon pair The application scenarios answered.
When receive host application window it is dragged or scaling information when;
Relative coordinate position according to parasitic application icon coordinate with respect to host application window applies parasitism Program icon is placed in the host application window after variation.
A kind of device of program extended method that realizing application program, including parasitic application program and host application, Parasitic application program is the application program extended, and host application is to have the application program of active window, and parasitism applies journey The icon of sequence is located in host application active window;Further include:
Module one, the icon for receiving parasitic application program are dragged to the letter in host application active window Breath;
Module two, for obtaining the coordinate value of host application name information and its active window;
Module three, the coordinate of the target area for calculating parasitic application icon drag and drop;
Module four, for calculating parasitic application icon coordinate in the relative coordinate position of host application window, Save relative coordinate position;
Module five, the information being clicked for receiving parasitic application icon;
Module six, for calling the corresponding application scenarios of parasitic application icon.
Module seven, for receiving the information that host application window is dragged or scales;
Module eight, for the relative coordinate position according to parasitic application icon coordinate with respect to host application window It sets, parasitic application icon is placed in the host application window after variation.
Module nine, it is multiple for being divided into the discrete regions of the RGB color value of host application window internal coordinate The vector set A (C of set1...Cn), set CiIt is defined as (coordinate, rgb value), the integer that i is 1 to n;
Module ten is grouped for the different coordinate of rgb value for traversing vector set A and is recorded in vector B;
Module 11, for traversing more parasitic application program image target coordinate whether in vector B coordinate, if so, Then parasitic application program image target background colour is set to the field color and moved to and is directed toward the region;If it is not, being posted comparing Raw application icon puts back into the starting point of dragging.
It should be noted last that the above specific embodiment is only used to illustrate the technical scheme of the present invention and not to limit it, Although being described the invention in detail referring to preferred embodiment, those skilled in the art should understand that, it can be right Technical solution of the present invention is modified or replaced equivalently, without departing from the spirit and scope of the technical solution of the present invention, It is intended to be within the scope of the claims of the invention.

Claims (4)

1. a kind of program extended method of application program, which is characterized in that including parasitic application program and host application, institute The application program that parasitic application program extends is stated, the host application is to have the application program of active window, described The icon of parasitic application program is located in the host application active window;It is further comprising the steps of:
The icon for receiving the parasitic application program is dragged to information in host application active window;
Obtain the coordinate information of the host application name information and its active window;
Calculate the coordinate of the target area of parasitic application icon drag and drop;
The parasitic application icon coordinate is calculated in the relative coordinate position of the host application window, described in preservation Relative coordinate position;
Receive the information that host application window is dragged or scales;
It, will be described according to the relative coordinate position of the relatively described host application window of the parasitic application icon coordinate Parasitic application icon is placed in the host application window after variation;
The discrete regions of the RGB color value of the host application window internal coordinate are divided into the vector set of multiple set Close A (Ci), set CiIt is defined as (coordinate, rgb value), the integer that i is 1 to n;
Traverse vector set A (Ci), it is grouped for the different coordinate of rgb value and is recorded in vector B;
The parasitic application program image target coordinate is traversed whether in vector B coordinate, if it is, parasitism is applied journey The background colour of sequence icon is set to the parasitic application program image target coordinate region color and moves to the region;If no It is that the parasitic application icon is put back into the starting point of dragging.
2. the program extended method of application program according to claim 1, which is characterized in that further comprising the steps of:
Receive the information that the parasitic application icon is clicked;
Call the corresponding application scenarios of the parasitic application icon.
3. a kind of device for the program extended method for realizing application program, which is characterized in that including parasitic application program and host Application program, the parasitism application program is the application program extended, and the host application has answering for active window It is located in the host application active window with the icon of program, the parasitism application program;Further include:
Module one, the icon for receiving the parasitic application program are dragged to the letter in host application active window Breath;
Module two, for obtaining the coordinate information of the host application name information and its active window;
Module three, the coordinate of the target area for calculating parasitic application icon drag and drop;
Module four, for calculating the parasitic application icon coordinate in the relative coordinate position of the host application window It sets, saves the relative coordinate position;
Module seven, for receiving the information that host application window is dragged or scales;
Module eight, for the relative coordinate according to the relatively described host application window of the parasitic application icon coordinate The parasitic application icon is placed in the host application window after variation by position;
Module nine, it is multiple for being divided into the discrete regions of the RGB color value of the host application window internal coordinate The vector set A (C of set1...Cn), set CiIt is defined as (coordinate, rgb value), the integer that i is 1 to n;
Module ten is grouped for the different coordinate of rgb value for traversing vector set A and is recorded in vector B;
Module 11, for traversing the parasitic application program image target coordinate whether in vector B coordinate, if so, Then parasitic application program image target background colour is set to the field color and moved to and is directed toward the region;If it is not, institute will be compared State the starting point that parasitic application icon puts back into dragging.
4. it is according to claim 3 realize application program program extended method device, which is characterized in that further include with Lower step:
Module five, the information being clicked for receiving the parasitic application icon;
Module six, for calling the corresponding application scenarios of the parasitic application icon.
CN201511024870.3A 2015-12-30 2015-12-30 The extended method and device of application program Active CN105653133B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511024870.3A CN105653133B (en) 2015-12-30 2015-12-30 The extended method and device of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511024870.3A CN105653133B (en) 2015-12-30 2015-12-30 The extended method and device of application program

Publications (2)

Publication Number Publication Date
CN105653133A CN105653133A (en) 2016-06-08
CN105653133B true CN105653133B (en) 2019-03-01

Family

ID=56490718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511024870.3A Active CN105653133B (en) 2015-12-30 2015-12-30 The extended method and device of application program

Country Status (1)

Country Link
CN (1) CN105653133B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106131686B (en) * 2016-06-27 2019-06-25 北京奇虎科技有限公司 The video play mode switching method and device realized using parasitic kit
CN106802803B (en) * 2017-01-06 2020-06-05 腾讯科技(深圳)有限公司 Application data processing method and device
CN108984225B (en) * 2018-06-19 2023-05-30 上海掌门科技有限公司 Method and device for quickly starting hosted application
CN112492091B (en) * 2019-08-21 2022-03-25 腾讯科技(深圳)有限公司 Application processing method and device, terminal and storage medium
CN112817660B (en) * 2021-02-03 2023-12-12 百度在线网络技术(北京)有限公司 Method, device, equipment and storage medium for expanding applet capability

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101539854A (en) * 2008-01-24 2009-09-23 西安电子科技大学 Method for realizing integration of heterogeneous software interface
CN102171639A (en) * 2008-10-07 2011-08-31 索尼爱立信移动通讯有限公司 Live preview of open windows
CN102460344A (en) * 2009-06-19 2012-05-16 莫门特美国股份有限公司 Systems and methods for dynamic background user interface(s)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10180727B2 (en) * 2012-09-28 2019-01-15 Tesla, Inc. Method of launching an application and selecting the application target window

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101539854A (en) * 2008-01-24 2009-09-23 西安电子科技大学 Method for realizing integration of heterogeneous software interface
CN102171639A (en) * 2008-10-07 2011-08-31 索尼爱立信移动通讯有限公司 Live preview of open windows
CN102460344A (en) * 2009-06-19 2012-05-16 莫门特美国股份有限公司 Systems and methods for dynamic background user interface(s)

Also Published As

Publication number Publication date
CN105653133A (en) 2016-06-08

Similar Documents

Publication Publication Date Title
CN105653133B (en) The extended method and device of application program
CN104142793B (en) Method and device for simulating click on terminal control
CN103150109B (en) Touch event model for web page
CN104794105B (en) It is a kind of for handling the method, system, touch-sensitive device of touch event
CN106227494B (en) A kind of application operating method and terminal
US20120072477A1 (en) Method and Apparatus for Polymorphic Serialization
CN104360788B (en) Transparent mask method and desktop write control method
US11513753B2 (en) Data processing method and electronic terminal
CN102364460B (en) Automatic page amplification method and system based on mobile terminal
CN104883384B (en) A kind of method and apparatus for the end ability that client is provided for light application
CN108469979A (en) A kind of method for page jump, device, server and storage medium
US10642380B2 (en) Input device, method, and system for electronic device
CN104679388B (en) The method and its mobile terminal of application program are opened by icon duplicate
CN107340964A (en) The animation effect implementation method and device of a kind of view
CN105934737A (en) Electronic device and user interface display method for same
CN108089796A (en) The display methods and device of shortcut bar
CN105373548A (en) Mobile device and event self-definition method for browser of mobile device
CN107180032A (en) Comment on content display method and system
CN109213668A (en) Operation note method, apparatus and terminal
JP6751778B2 (en) Methods, electronic devices and storage media for realizing communication between business systems and multi-assembly
CN109543171A (en) A kind of electronic spreadsheet realization method and system of keyboard typing and writing signing
CN102073973B (en) Method for obtaining and editing user-defined graph and subtitle graph fabricating system
CN106713657A (en) Screen split display method and terminal
WO2017067459A1 (en) Desktop data loading method and device
CN108446062A (en) A kind of object fixing means, device, terminal device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 430074, Optics Valley Software Park, East Lake Development Zone, Wuhan, south of Hubei, South Lake Road, Optics Valley Software Park, 2, six, 5, No. 205

Applicant after: Language network (Wuhan) Information Technology Co., Ltd.

Address before: 430074, Optics Valley Software Park, East Lake Development Zone, Wuhan, south of Hubei, South Lake Road, Optics Valley Software Park, 2, six, 5, No. 205

Applicant before: Wuhan Transn Information Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant