win32screenshot 1.0.10 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.yardopts +2 -2
- data/CHANGES.md +177 -0
- data/Gemfile.lock +45 -38
- data/LICENSE +1 -1
- data/README.md +48 -0
- data/Rakefile +1 -1
- data/ext/{ImageMagick-License.txt → ImageMagick-7.0.9-8-portable-Q16-x86/LICENSE.txt} +103 -101
- data/ext/ImageMagick-7.0.9-8-portable-Q16-x86/convert.exe +0 -0
- data/ext/ImageMagick-7.0.9-8-portable-Q16-x86/identify.exe +0 -0
- data/ext/ImageMagick-7.0.9-8-portable-Q16-x86/mogrify.exe +0 -0
- data/lib/win32/screenshot/image.rb +6 -1
- data/lib/win32/screenshot/version.rb +5 -5
- data/lib/win32/screenshot.rb +2 -3
- data/spec/spec_helper.rb +47 -48
- data/spec/win32/screenshot/image_spec.rb +78 -68
- data/spec/win32/screenshot/take_spec.rb +151 -151
- data/win32screenshot.gemspec +25 -25
- metadata +34 -50
- data/History.rdoc +0 -104
- data/README.rdoc +0 -44
- data/ext/CORE_RL_bzlib_.dll +0 -0
- data/ext/CORE_RL_jpeg_.dll +0 -0
- data/ext/CORE_RL_lcms_.dll +0 -0
- data/ext/CORE_RL_magick_.dll +0 -0
- data/ext/CORE_RL_png_.dll +0 -0
- data/ext/CORE_RL_ttf_.dll +0 -0
- data/ext/CORE_RL_wand_.dll +0 -0
- data/ext/CORE_RL_zlib_.dll +0 -0
- data/ext/X11.dll +0 -0
- data/ext/identify.exe +0 -0
- data/ext/modules/coders/IM_MOD_RL_bmp_.dll +0 -0
- data/ext/modules/coders/IM_MOD_RL_gif_.dll +0 -0
- data/ext/modules/coders/IM_MOD_RL_jpeg_.dll +0 -0
- data/ext/modules/coders/IM_MOD_RL_png_.dll +0 -0
- data/ext/mogrify.exe +0 -0
- data/ext/msvcr100.dll +0 -0
- data/ext/vcomp100.dll +0 -0
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: win32screenshot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jarmo Pertman
|
@@ -9,90 +9,90 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-02-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - ~>
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 1.15.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - ~>
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: 1.15.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: mini_magick
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - ~>
|
32
|
+
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
34
|
+
version: '4.9'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - ~>
|
39
|
+
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
41
|
+
version: '4.9'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rautomation
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - ~>
|
46
|
+
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
48
|
+
version: 1.1.0
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - ~>
|
53
|
+
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
55
|
+
version: 1.1.0
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: rspec
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- - ~>
|
60
|
+
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '
|
62
|
+
version: '3.10'
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - ~>
|
67
|
+
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
69
|
+
version: '3.10'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: yard
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- -
|
81
|
+
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: rake
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- -
|
88
|
+
- - ">="
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: '0'
|
91
91
|
type: :development
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- -
|
95
|
+
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '0'
|
98
98
|
description: Capture Screenshots on Windows with Ruby to bmp, gif, jpg or png formats.
|
@@ -103,33 +103,19 @@ executables: []
|
|
103
103
|
extensions: []
|
104
104
|
extra_rdoc_files: []
|
105
105
|
files:
|
106
|
-
- .gitignore
|
107
|
-
- .rspec
|
108
|
-
- .yardopts
|
106
|
+
- ".gitignore"
|
107
|
+
- ".rspec"
|
108
|
+
- ".yardopts"
|
109
|
+
- CHANGES.md
|
109
110
|
- Gemfile
|
110
111
|
- Gemfile.lock
|
111
|
-
- History.rdoc
|
112
112
|
- LICENSE
|
113
|
-
- README.
|
113
|
+
- README.md
|
114
114
|
- Rakefile
|
115
|
-
- ext/
|
116
|
-
- ext/
|
117
|
-
- ext/
|
118
|
-
- ext/
|
119
|
-
- ext/CORE_RL_png_.dll
|
120
|
-
- ext/CORE_RL_ttf_.dll
|
121
|
-
- ext/CORE_RL_wand_.dll
|
122
|
-
- ext/CORE_RL_zlib_.dll
|
123
|
-
- ext/ImageMagick-License.txt
|
124
|
-
- ext/X11.dll
|
125
|
-
- ext/identify.exe
|
126
|
-
- ext/modules/coders/IM_MOD_RL_bmp_.dll
|
127
|
-
- ext/modules/coders/IM_MOD_RL_gif_.dll
|
128
|
-
- ext/modules/coders/IM_MOD_RL_jpeg_.dll
|
129
|
-
- ext/modules/coders/IM_MOD_RL_png_.dll
|
130
|
-
- ext/mogrify.exe
|
131
|
-
- ext/msvcr100.dll
|
132
|
-
- ext/vcomp100.dll
|
115
|
+
- ext/ImageMagick-7.0.9-8-portable-Q16-x86/LICENSE.txt
|
116
|
+
- ext/ImageMagick-7.0.9-8-portable-Q16-x86/convert.exe
|
117
|
+
- ext/ImageMagick-7.0.9-8-portable-Q16-x86/identify.exe
|
118
|
+
- ext/ImageMagick-7.0.9-8-portable-Q16-x86/mogrify.exe
|
133
119
|
- lib/win32/screenshot.rb
|
134
120
|
- lib/win32/screenshot/bitmap_maker.rb
|
135
121
|
- lib/win32/screenshot/image.rb
|
@@ -149,17 +135,16 @@ require_paths:
|
|
149
135
|
- lib
|
150
136
|
required_ruby_version: !ruby/object:Gem::Requirement
|
151
137
|
requirements:
|
152
|
-
- -
|
138
|
+
- - ">="
|
153
139
|
- !ruby/object:Gem::Version
|
154
140
|
version: '0'
|
155
141
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
142
|
requirements:
|
157
|
-
- -
|
143
|
+
- - ">="
|
158
144
|
- !ruby/object:Gem::Version
|
159
145
|
version: '0'
|
160
146
|
requirements: []
|
161
|
-
|
162
|
-
rubygems_version: 2.0.7
|
147
|
+
rubygems_version: 3.0.3
|
163
148
|
signing_key:
|
164
149
|
specification_version: 4
|
165
150
|
summary: Capture Screenshots on Windows with Ruby to bmp, gif, jpg or png formats.
|
@@ -167,4 +152,3 @@ test_files:
|
|
167
152
|
- spec/spec_helper.rb
|
168
153
|
- spec/win32/screenshot/image_spec.rb
|
169
154
|
- spec/win32/screenshot/take_spec.rb
|
170
|
-
has_rdoc:
|
data/History.rdoc
DELETED
@@ -1,104 +0,0 @@
|
|
1
|
-
= 1.0.10 2013-11-01
|
2
|
-
* Add license to gemspec.
|
3
|
-
|
4
|
-
= 1.0.9 2013-10-05
|
5
|
-
* Set mini_magick 3.5.0 as a dependency because 3.6.0 is broken.
|
6
|
-
|
7
|
-
= 1.0.8 2013-03-09
|
8
|
-
* Loosen up dependencies
|
9
|
-
|
10
|
-
= 1.0.7 2012-02-23
|
11
|
-
* Bump RAutomation dependency
|
12
|
-
|
13
|
-
= 1.0.6 2011-10-16
|
14
|
-
* Screenshot will be taken of the whole window instead of client area - e.g. with title bar and such.
|
15
|
-
* Added :context option to specify which area to take screenshot of - possible values are :window or :client
|
16
|
-
Win32::Screenshot::Take.of(:window, :hwnd => 1234, :context => :client)
|
17
|
-
|
18
|
-
= 1.0.5 2011-08-18
|
19
|
-
* Minor output message change
|
20
|
-
|
21
|
-
= 1.0.4 2011-06-18
|
22
|
-
* Make sure that mini_magick 3.2 is used due to bug in 3.3-s dependency subexec https://github.com/nulayer/subexec/issues/4
|
23
|
-
|
24
|
-
= 1.0.3 2011-04-17
|
25
|
-
* Try to take a screenshot of the window even if the activation of that window fails.
|
26
|
-
|
27
|
-
= 1.0.2 2011-01-20
|
28
|
-
* Fixed to work with RAutomation version 0.4
|
29
|
-
|
30
|
-
= 1.0.1 2010-12-18
|
31
|
-
* Increased RAutomation dependency for version 0.3.0 due to it's new Window#child method
|
32
|
-
* Making sure that RAutomation's Ffi adapter is always used
|
33
|
-
|
34
|
-
= 1.0.0 2010-12-17 - The New Beginning
|
35
|
-
* Bundling all necessary libraries/binaries with the gem - ImageMagick and RMagick are no more needed, finally!
|
36
|
-
* Using MiniMagick to save images to gif, jpg and png format
|
37
|
-
* Simplified and deleted a lot of code causing backwards incompatibility and major API changes!
|
38
|
-
Refer to the README.rdoc and documentation for the overview of the new and better API
|
39
|
-
* From now on this library is following Semantic Versioning (http://semver.org) rules
|
40
|
-
|
41
|
-
= 0.0.8 2010-12-13
|
42
|
-
* Renamed Win32::Screenshot::Util.all_windows to all_desktop_windows (Roger Pack)
|
43
|
-
* Added methods to Win32::Screenshot::Util class (Roger Pack):
|
44
|
-
- window_process_id
|
45
|
-
- window_class
|
46
|
-
- windows_hierarchy_with_info
|
47
|
-
- get_info
|
48
|
-
- location_of
|
49
|
-
* It's possible to search windows also by class name (Roger Pack)
|
50
|
-
* Child windows will be also searched for (Roger Pack)
|
51
|
-
|
52
|
-
= 0.0.7 2010-08-18
|
53
|
-
* Supports now fully JRuby, 1.9.1 and 1.9.2 MRI!
|
54
|
-
|
55
|
-
= 0.0.6 2010-08-07
|
56
|
-
* Trying to bring window to the foreground more aggressively (Roger Pack)
|
57
|
-
* Added utility class Win32::Screenshot.Util with some helper methods not related directly with taking of the screenshots:
|
58
|
-
- all_windows - enumerates all windows and returns their titles and window handles as an Array (Roger Pack)
|
59
|
-
- window_title(hwnd) - returns title of the window for specified handle (Jarmo Pertman)
|
60
|
-
- window_hwnd(title_query) - returns handle of the window for specified title (Jarmo Pertman)
|
61
|
-
- dimensions_for(hwnd) - returns a width and height for a window with specified handle (Jarmo Pertman)
|
62
|
-
* Removed a file 'win32screenshot.rb' which was solely used for displaying deprecation warnings for versions older than 0.0.4. Make sure than from now on all require statements require 'win32/screenshot'!
|
63
|
-
|
64
|
-
== Bug Fixes:
|
65
|
-
* Fixed usages of gdi32.dll BitBlt (Roger Pack)
|
66
|
-
* It was impossible to specify correctly window titles with regular expressions special characters in them (Roger Pack)
|
67
|
-
|
68
|
-
= 0.0.5 2010-07-07
|
69
|
-
* Added method window_area for capturing specified area of the window instead of full window (Jarmo Pertman)
|
70
|
-
Usage: Win32::Screenshot.window_area(title, x1, y1, x2, y2) {|width, height, bmp|}
|
71
|
-
* Added method foreground_area for capturing area of the foreground (Jarmo Pertman)
|
72
|
-
Usage: Win32::Screenshot.foreground_area(x1, y1, x2, y2) {|width, height, bmp|}
|
73
|
-
* Added method desktop_area for capturing area of the visible view (Jarmo Pertman)
|
74
|
-
Usage: Win32::Screenshot.desktop_area(x1, y1, x2, y2) {|width, height, bmp|}
|
75
|
-
* Added method hwnd_area for capturing area of the window with specified handle (Jarmo Pertman)
|
76
|
-
Usage: Win32::Screenshot.hwnd_area(hwnd, x1, y1, x2, y2) {|width, height, bmp|}
|
77
|
-
|
78
|
-
== Internal changes
|
79
|
-
* Removed usage of ShowWindow with parameter SW_SHOW when trying to bring window to front due it's behaviour of resizing window if it was maximized (Jarmo Pertman)
|
80
|
-
* Using FFI::Struct when searching window handle (Roger Pack)
|
81
|
-
|
82
|
-
= 0.0.4 2010-05-27 - A Complete Overhaul
|
83
|
-
* Fixed a bug where taking of screenshots failed on some sizes of windows (thanks for the tip from Tony Popiel)
|
84
|
-
* Blocks should be used when taking screenshots for cleaning up resources after usage (Aslak Hellesøy)
|
85
|
-
* Changed library structure - it is now needed to require 'win32/screenshot' (Aslak Hellesøy)
|
86
|
-
* Replaced Ruby::DL with Ruby-FFI for better VM support and less segfaults (Jarmo Pertman)
|
87
|
-
* Added Ruby 1.9.1 support (Jarmo Pertman)
|
88
|
-
* Win32::Screenshot.window restores window if it's minimized before taking screenshots and brings it to the foreground (Jarmo Pertman)
|
89
|
-
* Changed some internal method names (Jarmo Pertman)
|
90
|
-
* Replaced Test::Unit with RSpec and made specs more robust (Jarmo Pertman)
|
91
|
-
|
92
|
-
PS! This version is not backwards compatible due to different method names and usage, but upgrading should be relatively easy nevertheless.
|
93
|
-
|
94
|
-
= 0.0.3 2007-01-18
|
95
|
-
* Fixed bug with too many callbacks
|
96
|
-
* Added get_hwnd(Regexp)
|
97
|
-
|
98
|
-
= 0.0.2 2006-12-02
|
99
|
-
* Added desktop method (patch from Ryan Schuft)
|
100
|
-
* Added HTTP server example (patch from Ryan Schuft)
|
101
|
-
* Added window(regexp) method
|
102
|
-
|
103
|
-
= 0.0.1 2006-11-29
|
104
|
-
* First release
|
data/README.rdoc
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
= Win32::Screenshot
|
2
|
-
|
3
|
-
* http://github.com/jarmo/win32screenshot
|
4
|
-
|
5
|
-
== DESCRIPTION
|
6
|
-
|
7
|
-
Capture Screenshots on Windows with Ruby to bmp, gif, jpg or png formats!
|
8
|
-
|
9
|
-
== INSTALL
|
10
|
-
|
11
|
-
gem install win32screenshot
|
12
|
-
|
13
|
-
== SYNOPSIS
|
14
|
-
|
15
|
-
require 'win32/screenshot'
|
16
|
-
|
17
|
-
# Take a screenshot of the window with the specified title
|
18
|
-
Win32::Screenshot::Take.of(:window, :title => "Windows Internet Explorer").write("image.bmp")
|
19
|
-
|
20
|
-
# Take a screenshot of the foreground
|
21
|
-
Win32::Screenshot::Take.of(:foreground).write("image.png")
|
22
|
-
|
23
|
-
# Take a screenshot of the specified window's top-left corner's area
|
24
|
-
Win32::Screenshot::Take.of(:window, :title => /internet/i, :area => [10, 10, 20, 20]).write("image.jpg")
|
25
|
-
|
26
|
-
# Take a screenshot of the window with the specified handle
|
27
|
-
Win32::Screenshot::Take.of(:window, :hwnd => 123456).write("image.gif")
|
28
|
-
|
29
|
-
# Take a screenshot of the window's client area (e.g. without title bar) with the specified handle
|
30
|
-
Win32::Screenshot::Take.of(:window, :hwnd => 123456, :context => :client)
|
31
|
-
|
32
|
-
# Take a screenshot of the child window with the specified internal class name
|
33
|
-
Win32::Screenshot::Take.of(:rautomation, RAutomation::Window.new(:hwnd => 123456).
|
34
|
-
child(:class => "Internet Explorer_Server")).write("image.png")
|
35
|
-
|
36
|
-
# Use the bitmap blob for something else
|
37
|
-
image = Win32::Screenshot::Take.of(:window, :hwnd => 123456)
|
38
|
-
image.height # => height of the image
|
39
|
-
image.width # => width of the image
|
40
|
-
image.bitmap # => bitmap blob
|
41
|
-
|
42
|
-
== Copyright
|
43
|
-
|
44
|
-
Copyright (c) 2010 Jarmo Pertman, Aslak Hellesøy. See LICENSE for details.
|
data/ext/CORE_RL_bzlib_.dll
DELETED
Binary file
|
data/ext/CORE_RL_jpeg_.dll
DELETED
Binary file
|
data/ext/CORE_RL_lcms_.dll
DELETED
Binary file
|
data/ext/CORE_RL_magick_.dll
DELETED
Binary file
|
data/ext/CORE_RL_png_.dll
DELETED
Binary file
|
data/ext/CORE_RL_ttf_.dll
DELETED
Binary file
|
data/ext/CORE_RL_wand_.dll
DELETED
Binary file
|
data/ext/CORE_RL_zlib_.dll
DELETED
Binary file
|
data/ext/X11.dll
DELETED
Binary file
|
data/ext/identify.exe
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/ext/mogrify.exe
DELETED
Binary file
|
data/ext/msvcr100.dll
DELETED
Binary file
|
data/ext/vcomp100.dll
DELETED
Binary file
|