CN103473035A - Screen capturing method and device - Google Patents

Screen capturing method and device Download PDF

Info

Publication number
CN103473035A
CN103473035A CN2012101865955A CN201210186595A CN103473035A CN 103473035 A CN103473035 A CN 103473035A CN 2012101865955 A CN2012101865955 A CN 2012101865955A CN 201210186595 A CN201210186595 A CN 201210186595A CN 103473035 A CN103473035 A CN 103473035A
Authority
CN
China
Prior art keywords
screenshotss
operational order
specified application
size
zone
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.)
Pending
Application number
CN2012101865955A
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN2012101865955A priority Critical patent/CN103473035A/en
Publication of CN103473035A publication Critical patent/CN103473035A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a screen capturing method and a screen capturing device, relates to the technical field of a computer and solves the problem that in an existing screen capturing scheme, a plugin needs to be installed to implement screen capturing so as to bring inconvenience to a user. The method comprises the following steps that: after the user triggers a screen capturing operation command, the screen capturing operation command is received by a designated application program, wherein the screen capturing operation command comprises information of a size and a position of a screen capturing region; the designated application program acquires the information of the size and the position of the screen capturing region from the screen capturing operation command; and the designated application program acquires screen display contents in the size and position range of the screen capturing region on a current screen and generates screen capturing data. The screen capturing method and the screen capturing device are mainly used for the screen capturing operation.

Description

The screenshotss method and apparatus
Technical field
The present invention relates to field of computer technology, relate in particular to the screenshotss method and apparatus.
Background technology
Screenshotss are a kind of operations commonly used, and as when the browsing page information, the information of browsing in order to preserve the user, often need to carry out the screenshotss operation, to obtain the some or all of content of the current demonstration of screen.
In prior art, usually utilize ActiveX (some component softwares or object, can be inserted in WEB webpage or other application program) control or Plugin (a kind of computer applied algorithm) provide the screenshotss plug-in unit, as website screenshotss plug-in unit, IM (Instant Messenger, instant messaging) instrument screenshotss plug-in unit, input method screenshotss plug-in unit, browser screenshotss plug-in unit etc., carry out the screenshotss operation while being respectively used to use website, while using the IM instrument, while using input method, while using browser.
The website screenshotss plug-in unit of take is example, and when carrying out the screenshotss operation, webpage calls corresponding screenshotss logic by the screenshotss card i/f, and then realizes the screenshotss function, and detailed process as shown in Figure 1, comprising:
1, the user triggers the screenshotss operation in webpage, and webpage notice browser detects the screenshotss plug-in unit whether this website has been installed.
If 2 have installed the screenshotss plug-in unit of this website, directly call the screenshotss plug-in unit of this website and carry out the screenshotss operation, and screenshotss operating result data are returned to this webpage.
If 3 do not install the screenshotss plug-in unit of this website, search the screenshotss plugin card installation program of this website, after finding the screenshotss plugin card installation program of this website, start immediately to install the screenshotss plug-in unit of this website, after installing, webpage to current demonstration is refreshed, and the prompting user triggers the screenshotss operation in webpage again.
When adopting such scheme to carry out the screenshotss operation, use for the first time the screenshotss plug-in unit to carry out after the screenshotss action need is installed plug-in unit realizing, bring very big inconvenience to the user.And different websites all develops different screenshotss plug-in units according to own demand, cause the user that a plurality of screenshotss plug-in units need to be installed, cause the waste of storage resources.
Summary of the invention
Embodiments of the invention provide a kind of screenshotss method and apparatus, have solved in existing screenshotss scheme and have needed to install plug-in unit realization, the problem of making troubles to the user.
For achieving the above object, embodiments of the invention adopt following technical scheme:
On the one hand, a kind of screenshotss method comprises:
After the user triggers the screenshotss operational order, receive described screenshotss operational order by specified application, described screenshotss operational order comprises size and the positional information in screenshotss zone;
Described specified application is obtained size and the positional information in described screenshotss zone from described screenshotss operational order;
Described specified application is obtained the size in the above screenshotss zone of current screen and the screen display content in position, and generates the screenshotss data.
Further alternative, described specified application is browser, and described screenshotss operational order is after the user triggers webpage, by webpage, is sent.
Further alternative, also comprise in described screenshotss operational order that the described specified application of screenshotss mode of operation information obtains size and the screen display content in position in the above screenshotss zone of current screen and be: described specified application adopts described screenshotss mode of operation to obtain the size in the above screenshotss zone of current screen and the screen display content in position.
Further alternative, described screenshotss mode of operation is: by JavaScript, carry out window.external or by the URL(uniform resource locator) of browser interception appointment.
Further alternative, described specified application is website or immediate communication tool or input method.
On the other hand, a kind of screen video recorder comprises:
Receiving element, after the user, triggering the screenshotss operational order, receive described screenshotss operational order by specified application, and described screenshotss operational order comprises size and the positional information in screenshotss zone;
Acquiring unit, obtain size and the positional information in described screenshotss zone from described screenshotss operational order for described specified application;
The screenshotss operation execution unit, obtain the size in the above screenshotss zone of current screen and the screen display content in position for described specified application, and generate the screenshotss data.
Further alternative, described specified application is browser, and described screenshotss operational order is after the user triggers webpage, by webpage, is sent.
Further alternative, also comprise screenshotss mode of operation information in described screenshotss operational order, size and the screen display content in position that described screenshotss operation execution unit is obtained the above screenshotss zone of current screen are: described screenshotss operation execution unit adopts described screenshotss mode of operation to obtain the size in the above screenshotss zone of current screen and the screen display content in position.
Further alternative, described screenshotss mode of operation is: by JavaScript, carry out window.external or by the URL(uniform resource locator) of browser interception appointment.
Further alternative, described specified application is website or immediate communication tool or input method.
The screenshotss method and apparatus that the embodiment of the present invention provides, after the user triggers the screenshotss operational order, receive described screenshotss operational order by specified application, and described screenshotss operational order comprises size and the positional information in screenshotss zone; Described specified application is obtained size and the positional information in described screenshotss zone from described screenshotss operational order; Described specified application is obtained the size in the above screenshotss zone of current screen and the screen display content in position, and generates the screenshotss data.In the process that realizes the screenshotss operation, no longer need the participation of plug-in unit, just can complete the screenshotss operation by specified application, saved the trouble that plug-in unit is installed, use and bring great convenience to the user.
The accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below will the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is screenshotss method flow diagram in prior art;
The process flow diagram of a kind of screenshotss method that Fig. 2 provides for the embodiment of the present invention;
The process flow diagram of the another kind of screenshotss method that Fig. 3 provides for the embodiment of the present invention;
The structural drawing of a kind of screen video recorder that Fig. 4 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making under the creative work prerequisite the every other embodiment obtained, belong to the scope of protection of the invention.
Need to install plug-in unit realization, the problem of making troubles to the user in order to have solved in existing screenshotss scheme.The embodiment of the present invention provides following examples:
Embodiment mono-
A kind of screenshotss method as shown in Figure 2, comprising:
201, after the user triggers the screenshotss operational order, receive the screenshotss operational order by specified application, described screenshotss operational order comprises size and the positional information in screenshotss zone.
Specified application can be specified according to actual needs, as specified application program commonly used such as browser or immediate communication tool or input method or antivirus software etc. as specified application.
The triggering of screenshotss operational order can be that the user directly triggers the screenshotss button on specified application, also can be by other application triggers.
202, specified application is obtained size and the positional information in described screenshotss zone from described screenshotss operational order.
203, specified application is obtained the size in the above screenshotss zone of current screen and the screen display content in position, and generates the screenshotss data.
The screenshotss method that the present embodiment provides, after the user triggers the screenshotss operational order, receive described screenshotss operational order by specified application, and described screenshotss operational order comprises size and the positional information in screenshotss zone; Described specified application is obtained size and the positional information in described screenshotss zone from described screenshotss operational order; Described specified application is obtained the size in the above screenshotss zone of current screen and the screen display content in position, and generates the screenshotss data.In the process that realizes the screenshotss operation, no longer need the participation of plug-in unit, just can complete the screenshotss operation by specified application, saved the trouble that plug-in unit is installed, use and bring great convenience to the user.
Embodiment bis-
The present embodiment is operating as example with the user by the web page trigger screenshotss, and another kind of screenshotss method is described in detail in detail, as shown in Figure 3, comprising:
301, after the user triggers webpage transmission screenshotss operational order, by webpage, to browser, send the screenshotss operational order.
302, browser receives the screenshotss operational order that webpage sends.
The screenshotss operational order comprises size and the positional information in screenshotss zone, also comprises screenshotss mode of operation information.
Specified application can also be specified according to actual needs separately, as specified application program commonly used such as immediate communication tool or input method or antivirus software etc., receives the screenshotss operational order.Further alternative, specified application can be also a application program of developing separately for the screenshotss operation.
The triggering of screenshotss operational order can be that the user directly triggers the screenshotss button on specified application, also can be by other application triggers.In the present embodiment, the user, when browsing page, triggers the screenshotss operation in webpage.
303, browser obtains size and the positional information in described screenshotss zone from described screenshotss operational order.
304, browser obtains the size in the above screenshotss zone of current screen and the screen display content in position, and generates the screenshotss data.
Concrete, the screenshotss mode of operation of indicating in specified application employing screenshotss operational order is carried out the screenshotss operation to size and the screen content in position in described screenshotss zone, obtain the size in the above screenshotss zone of current screen and the screen display content in position, carry out window.external (a kind of method of the additional objects model can the access browser host program provided) as adopted by JavaScript, or by the mode of the URL(uniform resource locator) of browser interception appointment, size and the screen content in position in described screenshotss zone carried out to the screenshotss operation.
305, the screenshotss data that browser obtains the screenshotss operation are sent to webpage.
The screenshotss method that the present embodiment provides, after the user triggers the screenshotss operational order, receive described screenshotss operational order by specified application, and described screenshotss operational order comprises size and the positional information in screenshotss zone; Described specified application is obtained size and the positional information in described screenshotss zone from described screenshotss operational order; Described specified application is obtained the size in the above screenshotss zone of current screen and the screen display content in position, and generates the screenshotss data.In the process that realizes the screenshotss operation, no longer need the participation of plug-in unit, just can complete the screenshotss operation by specified application, saved the trouble that plug-in unit is installed, use and bring great convenience to the user.
Embodiment tri-
A kind of screen video recorder as shown in Figure 4, comprising: receiving element 41, acquiring unit 42, screenshotss operation execution unit 43.
Wherein, receiving element 41, after the user, triggering the screenshotss operational order, receive described screenshotss operational order by specified application, and described screenshotss operational order comprises size and the positional information in screenshotss zone;
Further alternative, described specified application is browser, and described screenshotss operational order is sent by webpage.
Further alternative, described screenshotss mode of operation is: by JavaScript, carry out window.external or by the URL(uniform resource locator) of browser interception appointment.
Further alternative, described specified application is website or immediate communication tool or input method.
Acquiring unit 42, obtain size and the positional information in described screenshotss zone from described screenshotss operational order for described specified application.
Screenshotss operation execution unit 43, be used to specify application program size and the screen content in position in described screenshotss zone carried out to the screenshotss operation.
If also comprise screenshotss mode of operation information in described screenshotss operational order, concrete, described screenshotss operation execution unit 43 is used to specify application program and adopts described screenshotss mode of operation to carry out the screenshotss operation to size and the screen content in position in described screenshotss zone, obtains the size in the above screenshotss zone of current screen and the screen display content in position.
The screen video recorder that the present embodiment provides, after the user triggers the screenshotss operational order, receive described screenshotss operational order by specified application, and described screenshotss operational order comprises size and the positional information in screenshotss zone; Described specified application is obtained size and the positional information in described screenshotss zone from described screenshotss operational order; Described specified application is obtained the size in the above screenshotss zone of current screen and the screen display content in position, and generates the screenshotss data.In the process that realizes the screenshotss operation, no longer need the participation of plug-in unit, just can complete the screenshotss operation by specified application, saved the trouble that plug-in unit is installed, use and bring great convenience to the user.
In sum, the screenshotss method and apparatus that the present embodiment provides, the screenshotss function is provided by browser, when webpage needs the screenshotss function, does not need to reboot the user installation plug-in unit, and the unified screenshotss interface that directly uses browser to provide is all right.Relatively existing scheme, website is used the cost of screenshotss function lower, and, when using the screenshotss function for the first time, does not also need refreshed web page again, and the user experiences better, and the screenshotss control of various repetitions need not be installed on subscriber set, lighter.
Through the above description of the embodiments, the those skilled in the art can be well understood to the mode that the present invention can add essential common hardware by software and realize, can certainly pass through hardware, but in a lot of situation, the former is better embodiment.Understanding based on such, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium can read, floppy disk as computing machine, hard disk or CD etc., comprise some instructions with so that computer equipment (can be personal computer, server, or the network equipment etc.) carry out the described method of each embodiment of the present invention.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by the described protection domain with claim.

Claims (10)

1. a screenshotss method, is characterized in that, comprising:
After the user triggers the screenshotss operational order, receive described screenshotss operational order by specified application, described screenshotss operational order comprises size and the positional information in screenshotss zone;
Described specified application is obtained size and the positional information in described screenshotss zone from described screenshotss operational order;
Described specified application is obtained the size in the above screenshotss zone of current screen and the screen display content in position, and generates the screenshotss data.
2. method according to claim 1, is characterized in that, described specified application is browser, and described screenshotss operational order is after the user triggers webpage, by webpage, sent.
3. method according to claim 2, it is characterized in that, also comprise in described screenshotss operational order that the described specified application of screenshotss mode of operation information obtains size and the screen display content in position in the above screenshotss zone of current screen and be: described specified application adopts described screenshotss mode of operation to obtain the size in the above screenshotss zone of current screen and the screen display content in position.
4. method according to claim 3, is characterized in that, described screenshotss mode of operation is: by JavaScript, carry out window.external or by the URL(uniform resource locator) of browser interception appointment.
5. method according to claim 1, is characterized in that, described specified application is website or immediate communication tool or input method.
6. a screen video recorder, is characterized in that, comprising:
Receiving element, after the user, triggering the screenshotss operational order, receive described screenshotss operational order by specified application, and described screenshotss operational order comprises size and the positional information in screenshotss zone;
Acquiring unit, obtain size and the positional information in described screenshotss zone from described screenshotss operational order for described specified application;
The screenshotss operation execution unit, obtain the size in the above screenshotss zone of current screen and the screen display content in position for described specified application, and generate the screenshotss data.
7. device according to claim 6, is characterized in that, described specified application is browser, and described screenshotss operational order is after the user triggers webpage, by webpage, sent.
8. device according to claim 7, it is characterized in that, also comprise screenshotss mode of operation information in described screenshotss operational order, size and the screen display content in position that described screenshotss operation execution unit is obtained the above screenshotss zone of current screen are: described screenshotss operation execution unit adopts described screenshotss mode of operation to obtain the size in the above screenshotss zone of current screen and the screen display content in position.
9. device according to claim 8, is characterized in that, described screenshotss mode of operation is: by JavaScript, carry out window.external or by the URL(uniform resource locator) of browser interception appointment.
10. according to device claimed in claim 6, it is characterized in that, described specified application is website or immediate communication tool or input method.
CN2012101865955A 2012-06-07 2012-06-07 Screen capturing method and device Pending CN103473035A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101865955A CN103473035A (en) 2012-06-07 2012-06-07 Screen capturing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101865955A CN103473035A (en) 2012-06-07 2012-06-07 Screen capturing method and device

Publications (1)

Publication Number Publication Date
CN103473035A true CN103473035A (en) 2013-12-25

Family

ID=49797911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101865955A Pending CN103473035A (en) 2012-06-07 2012-06-07 Screen capturing method and device

Country Status (1)

Country Link
CN (1) CN103473035A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104317563A (en) * 2014-09-25 2015-01-28 宇威科技发展(青岛)有限公司 Online courseware cooperation development system
CN105094777A (en) * 2014-05-14 2015-11-25 腾讯科技(深圳)有限公司 Method and device for realizing application screen shot
CN106468999A (en) * 2016-09-27 2017-03-01 上海斐讯数据通信技术有限公司 A kind of screenshotss method and system
WO2018032696A1 (en) * 2016-08-19 2018-02-22 广州视睿电子科技有限公司 Method and system for desktop screenshot control
CN111241535A (en) * 2020-01-20 2020-06-05 北京北信源软件股份有限公司 Violation evidence obtaining processing method and device, electronic equipment and storage medium
CN113590564A (en) * 2021-07-29 2021-11-02 挂号网(杭州)科技有限公司 Data storage method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021871A (en) * 2007-01-11 2007-08-22 深圳市光芒科技有限公司 Web page content block intelligent intercepting method
CN101075172A (en) * 2006-08-23 2007-11-21 腾讯科技(深圳)有限公司 Method for capturing picture, capturer and instant-telecommunication customer terminal
CN101079061A (en) * 2007-04-09 2007-11-28 腾讯科技(深圳)有限公司 Web page screen-cutting system and implementation method
CN101262475A (en) * 2008-02-01 2008-09-10 张尧森 Method for realizing webpage block image cutting on webpage
CN101441665A (en) * 2008-12-08 2009-05-27 腾讯科技(深圳)有限公司 Method, device and system for processing log captured screen
CN101576878A (en) * 2009-06-17 2009-11-11 董名垂 System and method for instantly translating web pages hooked by users
CN101710936A (en) * 2009-12-16 2010-05-19 中兴通讯股份有限公司 IPTV printscreen realization method and device based on set-top box

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075172A (en) * 2006-08-23 2007-11-21 腾讯科技(深圳)有限公司 Method for capturing picture, capturer and instant-telecommunication customer terminal
CN101021871A (en) * 2007-01-11 2007-08-22 深圳市光芒科技有限公司 Web page content block intelligent intercepting method
CN101079061A (en) * 2007-04-09 2007-11-28 腾讯科技(深圳)有限公司 Web page screen-cutting system and implementation method
CN101262475A (en) * 2008-02-01 2008-09-10 张尧森 Method for realizing webpage block image cutting on webpage
CN101441665A (en) * 2008-12-08 2009-05-27 腾讯科技(深圳)有限公司 Method, device and system for processing log captured screen
CN101576878A (en) * 2009-06-17 2009-11-11 董名垂 System and method for instantly translating web pages hooked by users
CN101710936A (en) * 2009-12-16 2010-05-19 中兴通讯股份有限公司 IPTV printscreen realization method and device based on set-top box

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094777A (en) * 2014-05-14 2015-11-25 腾讯科技(深圳)有限公司 Method and device for realizing application screen shot
CN104317563A (en) * 2014-09-25 2015-01-28 宇威科技发展(青岛)有限公司 Online courseware cooperation development system
CN104317563B (en) * 2014-09-25 2018-04-27 汤习俭 A kind of online courseware collaborative development system
WO2018032696A1 (en) * 2016-08-19 2018-02-22 广州视睿电子科技有限公司 Method and system for desktop screenshot control
CN106468999A (en) * 2016-09-27 2017-03-01 上海斐讯数据通信技术有限公司 A kind of screenshotss method and system
CN111241535A (en) * 2020-01-20 2020-06-05 北京北信源软件股份有限公司 Violation evidence obtaining processing method and device, electronic equipment and storage medium
CN113590564A (en) * 2021-07-29 2021-11-02 挂号网(杭州)科技有限公司 Data storage method and device, electronic equipment and storage medium
CN113590564B (en) * 2021-07-29 2024-03-01 挂号网(杭州)科技有限公司 Data storage method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US20140289597A1 (en) Method and device for displaying preview screen of hyperlink
CN103530160A (en) Page loading method and device
CN103473035A (en) Screen capturing method and device
CN105205072B (en) The methods of exhibiting and system of webpage information
CN104539682A (en) Debug method, device, mobile terminal, server and system for mobile webpage
CN103678307A (en) Page display method and client-side
CN103365840A (en) Web-based screenshot taking method and device
CN111770161B (en) https sniffing jump method and device
CN104991705A (en) Interface display method and terminal
CN102902580A (en) Program callback method and device
CN107509051A (en) Long-range control method, device, terminal and computer-readable recording medium
CN104881273A (en) Webpage rendering analysis method and terminal device
CN103414765A (en) Method, device and system for shunting information in graphic code
CN103955495A (en) Downloading method and device for page sub-resource
CN105024913A (en) Method, apparatus and system of instant messaging conversation
CN112799741A (en) Application program differentiation method and device, electronic equipment and storage medium
CN103677519A (en) Method for collecting multimedia resource, terminal and server
CN105530232A (en) Account login method and device
CN104267867A (en) Content input method and device
CN103368907A (en) Event report request system, method thereof, client device and report request method thereof
CN110275785B (en) Data processing method and device, client and server
CN104156372A (en) Method, devices and system for opening page
CN101710277B (en) Script processing method, device of embedded browser
CN105739717A (en) Information input method and device
CN102413066A (en) Input method toolbar having an instant messaging function, a realization method and a system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20131225

RJ01 Rejection of invention patent application after publication