I often have a need to grab a screen shot of something on my screen (Since I am using OSX, I use the Command+Control+Shift+4 combination, which puts the screenshot into the clipboard). This works well, and allows me to paste into MS Word and other programs.
At some point I had an issue pasting into MS One Note (still on OSX), (I was not able to, when doing Command+V, nothing would paste), which I was able to solve researching online, by changing the default image type for screenshots (I think it was from JPG to PNG, using a command in the OSX terminal).
While this worked for MS One Note, it never helped with pasting into Gmail in Safari (note that I have no issues doing this in Google Chrome).
Can anyone help with how to get pasting images from the clipboard into Gmail when using the Safari Browser? (note I am using the latest OSX and Safari versions available).
Thanks!
I have never tried using the Command+Control+Shift+4 combination but this is what I usually use and it works perfectly for me.
Task 1;
to copy the screen capture to the clipboard so you can use Command+V to paste in any program of your choice
Open your terminal
Type this "screencapture -c" in the terminal without the quotes e.g.: screencapture -c
open any program of your choice and press Command+V to paste.
Task 2;
To screen capture your computer screen and save the file directly to a png or jpg and later insert or attach it to any program of your choice
Open your terminal
type this "screencapture ./Location/filename.ext" in the terminal without the quotes e.g.: screencapture ./Desktop/myCapture.jpg This will save the capture file on the desktop with the jpg format.
to get more information about the command, type "screencapture --h" in your terminal without the quotes.
I would like to be able to set any window (for example Google Chrome) to be always below all other windows and prevent it to come to the top when activated.
I found this on stackoverflow. What I am looking for is nearly the same, but for compiled applications.
Using Ubuntu I could achieve this using wmctrl -i -r <window_handle> -b add,below but I found no corresponding possibility under Windows (in my case Windows 7 x64).
I could not find such a command line function but you could still do it from a compiled program.
First find Google Chrome's window handle:
Source
The only way I know of is to enumerate all the top level windows with EnumWindows() and then find what process each belongs to GetWindowThreadProcessID(). This sounds indirect and inefficient, but it's not as bad as you might expect -- in a typical case, you might have a dozen top level windows to walk through...
Then use SetWindowPos with the flag HWND_BOTTOM for that HWND.
The user might try to bring Chrome to the foreground which you could prevent by checking GetForegroundWindow and if necessary call SetWindowPos again.
I'm building an app that needs to be able to take intermittent screen captures of a target window while running in the background. That is, it needs to be able to screenshot a specific window without user interaction.
Say for example I have Photoshop open, I'd like to capture a screenshot of my open Photoshop document every few minutes and save the capture to a file, essentially building a visual history of how the document has changed over time.
Currently I'm searching for a Unix/Mac solution but Window's suggestions are warmly welcomed.
Screencapture & Scrot both require mouse interaction to target a window & from what I've researched Imagemagick requires xwd to launch to get the id of the target window.
I'm looking for a lightweight solution (that I can bundle with my software) or ideally a solution already built into the OS to accomplish this.
Any suggestions would be very much appreciated. Cheers.
xwd utility can dump particular X11 window content. It accepts window ID to dump as an argument and can be used in non-interactive mode.
To capture the whole X-desktop on any unix/linux non-interactively you can call:
xwd -root > file
To display the dump:
xwud -in file
I'd like to replace the bitmap on the logon screen of Windows 7 64-bit with one that is on disk. I have a program that periodically switches the background image of my desktop, and it has a configuration to run a program after it has changed it, which I thought I could use to also copy the same bitmap to the logon screen.
Does anyone know how to do that, or even if it is possible? If someone knows a handy command line utility to do it, that would of course be nice (but then I suspect this question should be migrated to superuser.com first), but if someone has some API commands that would help, that would be more than enough.
I found an article which detailed a dll and some resources I would have to replace. That sounds a bit too hackish for this.
I typed "change background image logon screen windows 7" into a search engine and the first link was: this which seems to show how to do it. Now you just need to figure out how to write a program to automate the steps.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Locked. This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions.
I find working on the command line in Windows frustrating, primarily because the console window is wretched to use compared to terminal applications on linux and OS X such as "rxvt", "xterm", or "Terminal". Major complaints:
No standard copy/paste. You have to turn on "mark" mode and it's only available from a multi-level popup triggered by the (small) left hand corner button. Then copy and paste need to be invoked from the same menu
You can't arbitrarily resize the window by dragging, you need to set a preference (back to the multi-level popup) each time you want to resize a window
You can only make the window so big before horizontal scroll bars enter the picture. Horizontal scroll bars suck.
With the cmd.exe shell, you can't navigate to folders with \\netpath notation (UNC?), you need to map a network drive. This sucks when working on multiple machines that are going to have different drives mapped
Are there any tricks or applications, (paid or otherwise), that address these issue?
Sorry for the self-promotion, I'm the author of another Console Emulator, not mentioned here.
ConEmu is opensource console emulator with tabs, which represents multiple consoles and simple GUI applications as one customizable GUI window.
Initially, the program was designed to work with Far Manager (my favorite shell replacement - file and archive management, command history and completion, powerful editor). But ConEmu can be used with any other console application or simple GUI tools (like PuTTY for example). ConEmu is a live project, open to suggestions.
A brief excerpt from the long list of options:
Latest versions of ConEmu may set up itself as default terminal for Windows
Use any font installed in the system, or copied to a folder of the program (ttf, otf, fon, bdf)
Run selected tabs as Administrator (Vista+) or as selected user
Windows 7 Jump lists and Progress on taskbar
Integration with DosBox (useful in 64bit systems to run DOS applications)
Smooth resize, maximized and fullscreen window modes
Scrollbar initially hidden, may be revealed by mouseover or checkbox in settings
Optional settings (e.g. pallette) for selected applications
User friendly text and block selection (from keyboard or mouse), copy, paste, text search in console
ANSI X3.64 and Xterm 256 color
Far Manager users will acquire shell style drag-n-drop, thumbnails and tiles in panles, tabs for editors and viewers, true colors and font styles (italic/bold/underline).
PS. Far Manager supports UNC paths (\\server\share\...)
Try Console 2.
Console is a Windows console window enhancement. Console features include: multiple tabs, text editor-like text selection, different background types, alpha and color-key transparency, configurable font, different window styles
Take Command. This one has been around for a long time (formerly 4DOS). I used this on Windows NT 3.5 (!) and loved it.
Cygwin lets you run X on Windows, so you can fire up xterm or whatever terminal app you prefer, and also get the benefit of using a UNIX shell.
Turn on quickedit mode (but selection is still rectangular instead of line-wrapped)
Resizing by dragging works for me
You can change the buffer size which will impact when scrollbars appear
pushd \\server\share
Even with those, cmd.exe isn't a great console. See all the other replies and the earlier stackoverflow questions on the same subject. The "Console" project from sourceforge looks pretty good.
Console
From documentation:
NOTE: Console is NOT a shell.
Therefore, it does not implement shell
features like command-line completion,
syntax coloring, command history, etc.
Console is simply a nice-looking front
end for a shell of your choice
(cmd.exe, 4NT, bash, etc.) Other
command-line utilities can also be
used as 'shells' by Console.
As a programming shell one can use ipython.
I've had these issues too for years on Windows, but I recently found this project:
Console
It still requires "mark mode" for copy/paste, but at least it's available from a right-click contextual menu (so you don't need to move the mouse to the top left and then move it again to the text you want to select)
UNC paths are not supported by cmd.exe but they are supported by PowerShell.
(Console can be configured to use any shell, including cmd.exe and PowerShell)
I use Cygwin inside the Poderosa terminal emulator.
I personally use Mintty. Therefore I use Cygwin (because thats the only shell it supports, as far as I know).
BTW There is another question: better command for Windows? I found.
I think you will love PowerCMD which you can work 4 command windows at the same time. Also, you can use many extra commands inside the PowerCMD.
PowerCMD
There is a small program mo.exe on github that solves the first three issues:
https://github.com/boolship/Mo
It runs in normal DOS console window, Git Bash on Windows, etc.
update:
That link is now deprecated, use: https://github.com/boolship/MoDi
Use Gow.exe ..
This will make your DOS-Prompt as Linux terminal...
else
Use ZOC.exe...its Trial-period terminal...
else
Install Git .. it gives a bash-console from where u can use unix commands, partially
I'm using Terminals for remote connection via Telnet, RDC, SSH, ...
Combines most used protocolls in one program.
URL: http://www.codeplex.com/Terminals
Why not use Putty?
I use rxvt from cygwin. It behaves very much like an xterm.
Take a look at Take Command.
Take Command is a comprehensive interactive GUI and command line environment that makes using the Windows command prompt and creating batch files easy and far more powerful.
(Take Command is, however, "not free".)