Asking for a way of taking screenshot of 2nd desktop when the desktop is extended in two monitors through...
Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?
What to do when being responsible for data protection in your lab, yet advice is ignored?
What is this waxed root vegetable?
Does music exist in Panem? And if so, what kinds of music?
What type of postprocessing gives the effect of people standing out
Use comma instead of & in table
How can I find an Adventure or Adventure Path I need that meets certain criteria?
g++ and clang++ different behaviour with recursive initialization of a static member
How would we write a misogynistic character without offending people?
How to count occurrences of Friday 13th
Skis versus snow shoes - when to choose which for travelling the backcountry?
Could quantum mechanics be necessary to analyze some biology scenarios?
Is my plan for fixing my water heater leak bad?
What's the difference between a cart and a wagon?
What can I substitute for soda pop in a sweet pork recipe?
Whom do I have to contact for a ticket refund in case of denied boarding (in the EU)?
What am I? I am in theaters and computer programs
What is the wife of a henpecked husband called?
Is there a German word for “analytics”?
Linear regression when Y is bounded and discrete
How do I implement simple JS code to deploy a compiled smart contract to ganache-cli?
Closure of presentable objects under finite limits
How to visualize a Cayley graph in this style?
Has the Isbell–Freyd criterion ever been used to check that a category is concretisable?
Asking for a way of taking screenshot of 2nd desktop when the desktop is extended in two monitors through windows command line
Take a screen shot from command line in WindowsHow do I enable an extended desktop across two monitors in Knoppix 6?How do I use command line and wmctrl to make a window larger than the screen to get a huge screenshot?Create extended desktop with two external monitors on laptop on Windows XP?Windows-7 snap Windows-left/right doesn't work fully for console (command-prompt) in dual monitorsHow can I enable/disable monitors from the command-line?How to open Internet Explorer for the desktop from command line in Windows 8?Screenshot application that creates a file on your desktop( for windows )How can I set up an extended desktop on multiple monitors in Windows 7?Black bottom/top space in muli monitor screenshotSingle Monitor Screenshot on MultiMonitor setup
My desktop is extended in two monitors and I want to take screenshot of desktop of 2nd monitor from command line (cmd/powershell).
Any Idea?
windows-10 command-line multiple-monitors screenshot
add a comment |
My desktop is extended in two monitors and I want to take screenshot of desktop of 2nd monitor from command line (cmd/powershell).
Any Idea?
windows-10 command-line multiple-monitors screenshot
1
Possible duplicate of Take a screen shot from command line in Windows
– Ahmed Ashour
8 hours ago
add a comment |
My desktop is extended in two monitors and I want to take screenshot of desktop of 2nd monitor from command line (cmd/powershell).
Any Idea?
windows-10 command-line multiple-monitors screenshot
My desktop is extended in two monitors and I want to take screenshot of desktop of 2nd monitor from command line (cmd/powershell).
Any Idea?
windows-10 command-line multiple-monitors screenshot
windows-10 command-line multiple-monitors screenshot
asked 8 hours ago
minimini
1015
1015
1
Possible duplicate of Take a screen shot from command line in Windows
– Ahmed Ashour
8 hours ago
add a comment |
1
Possible duplicate of Take a screen shot from command line in Windows
– Ahmed Ashour
8 hours ago
1
1
Possible duplicate of Take a screen shot from command line in Windows
– Ahmed Ashour
8 hours ago
Possible duplicate of Take a screen shot from command line in Windows
– Ahmed Ashour
8 hours ago
add a comment |
1 Answer
1
active
oldest
votes
This (untested) PowerShell snippet can get you started.
Remember that for an extended screen the pixel coordinates are continuous on both screens,
from the left-most screen to the right-most:
$File = "mypathmyscreenshot.bmp"
Add-Type -AssemblyName System.Windows.Forms
Add-type -AssemblyName System.Drawing
# Gather Screen resolution information
$Screen = [System.Windows.Forms.SystemInformation]::VirtualScreen
$Width = ..2nd monitor width in pixels..
$Height = ..2nd monitor height in pixels..
$Left = ..2nd monitor starting left pixel..
$Top = ..2nd monitor starting top pixel, normally zero..
# Create bitmap using the top-left and bottom-right bounds
$bitmap = New-Object System.Drawing.Bitmap $Width, $Height
# Create Graphics object
$graphic = [System.Drawing.Graphics]::FromImage($bitmap)
# Capture screen
$graphic.CopyFromScreen($Left, $Top, 0, 0, $bitmap.Size)
# Save to file
$bitmap.Save($File)
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1411138%2fasking-for-a-way-of-taking-screenshot-of-2nd-desktop-when-the-desktop-is-extende%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
This (untested) PowerShell snippet can get you started.
Remember that for an extended screen the pixel coordinates are continuous on both screens,
from the left-most screen to the right-most:
$File = "mypathmyscreenshot.bmp"
Add-Type -AssemblyName System.Windows.Forms
Add-type -AssemblyName System.Drawing
# Gather Screen resolution information
$Screen = [System.Windows.Forms.SystemInformation]::VirtualScreen
$Width = ..2nd monitor width in pixels..
$Height = ..2nd monitor height in pixels..
$Left = ..2nd monitor starting left pixel..
$Top = ..2nd monitor starting top pixel, normally zero..
# Create bitmap using the top-left and bottom-right bounds
$bitmap = New-Object System.Drawing.Bitmap $Width, $Height
# Create Graphics object
$graphic = [System.Drawing.Graphics]::FromImage($bitmap)
# Capture screen
$graphic.CopyFromScreen($Left, $Top, 0, 0, $bitmap.Size)
# Save to file
$bitmap.Save($File)
add a comment |
This (untested) PowerShell snippet can get you started.
Remember that for an extended screen the pixel coordinates are continuous on both screens,
from the left-most screen to the right-most:
$File = "mypathmyscreenshot.bmp"
Add-Type -AssemblyName System.Windows.Forms
Add-type -AssemblyName System.Drawing
# Gather Screen resolution information
$Screen = [System.Windows.Forms.SystemInformation]::VirtualScreen
$Width = ..2nd monitor width in pixels..
$Height = ..2nd monitor height in pixels..
$Left = ..2nd monitor starting left pixel..
$Top = ..2nd monitor starting top pixel, normally zero..
# Create bitmap using the top-left and bottom-right bounds
$bitmap = New-Object System.Drawing.Bitmap $Width, $Height
# Create Graphics object
$graphic = [System.Drawing.Graphics]::FromImage($bitmap)
# Capture screen
$graphic.CopyFromScreen($Left, $Top, 0, 0, $bitmap.Size)
# Save to file
$bitmap.Save($File)
add a comment |
This (untested) PowerShell snippet can get you started.
Remember that for an extended screen the pixel coordinates are continuous on both screens,
from the left-most screen to the right-most:
$File = "mypathmyscreenshot.bmp"
Add-Type -AssemblyName System.Windows.Forms
Add-type -AssemblyName System.Drawing
# Gather Screen resolution information
$Screen = [System.Windows.Forms.SystemInformation]::VirtualScreen
$Width = ..2nd monitor width in pixels..
$Height = ..2nd monitor height in pixels..
$Left = ..2nd monitor starting left pixel..
$Top = ..2nd monitor starting top pixel, normally zero..
# Create bitmap using the top-left and bottom-right bounds
$bitmap = New-Object System.Drawing.Bitmap $Width, $Height
# Create Graphics object
$graphic = [System.Drawing.Graphics]::FromImage($bitmap)
# Capture screen
$graphic.CopyFromScreen($Left, $Top, 0, 0, $bitmap.Size)
# Save to file
$bitmap.Save($File)
This (untested) PowerShell snippet can get you started.
Remember that for an extended screen the pixel coordinates are continuous on both screens,
from the left-most screen to the right-most:
$File = "mypathmyscreenshot.bmp"
Add-Type -AssemblyName System.Windows.Forms
Add-type -AssemblyName System.Drawing
# Gather Screen resolution information
$Screen = [System.Windows.Forms.SystemInformation]::VirtualScreen
$Width = ..2nd monitor width in pixels..
$Height = ..2nd monitor height in pixels..
$Left = ..2nd monitor starting left pixel..
$Top = ..2nd monitor starting top pixel, normally zero..
# Create bitmap using the top-left and bottom-right bounds
$bitmap = New-Object System.Drawing.Bitmap $Width, $Height
# Create Graphics object
$graphic = [System.Drawing.Graphics]::FromImage($bitmap)
# Capture screen
$graphic.CopyFromScreen($Left, $Top, 0, 0, $bitmap.Size)
# Save to file
$bitmap.Save($File)
answered 3 hours ago
harrymcharrymc
260k14271575
260k14271575
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1411138%2fasking-for-a-way-of-taking-screenshot-of-2nd-desktop-when-the-desktop-is-extende%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Possible duplicate of Take a screen shot from command line in Windows
– Ahmed Ashour
8 hours ago