How can i take snapshot of command prompt window in full screen mode - screenshot

I need to take snapshot if command prompt window running in full screen mode.
I had tried it using PrintScreen,Ctrl+PrintScreen, Ctrl+Alt+PrintScreen button(s) but nothing seems to work
Also are there any reasons that the print screen button does not work in full screen commandprompt mode? After all, it does for all windows under normal conditions.
Abdul Khaliq

In full screen mode all you have is text. There is no graphical `rendering' as such. If you can capture the text, it is enough ... though you can always reconstruct a png image later from the text (if you really have to get an image out of it).

Why don't you just use an external screen shot software?
There's many, e.g. greenshot, which is free (is in speech and beer :-)).

did you try alt + print screen?

Click any window except the command window and then hit PrtScrn.

First off all open cmd in full screen mode then click on print screen button after that open paint brush and press ctrl+v (past) you can save it in any where, where ever you want (file type should be .png).

I wasn't able to find any of these replies that work, and I can't install unapproved software do to IT policies. Here is what I did:
Right click inside command window. Hit select all. Right click outside of window (on top bar close to the maximize minimize controls. Select edit; select copy. Open a notepad window and paste. The advantage here is you have text that can be copied and pasted back into a command window later. I hope this helps.

press ctrl+a //select all
press ctrl+c // copy all text
write notepad mytext.txt + press entet // open notepad
press ctrl+v //paste in text in notepad
press ctrl+s // Save file
press ctrl+w // Close notepad.

Related

How can I move focus from the Quick Documentation pop-up back to the Code completion pop-up without using the mouse?

Context:
When a code completion pop-up (Ctrl+Space) appears I often need to have a look at docs for each individual method / constant / etc). The IDE is set to show the Quick Documentation pop-up for a highlighted suggestion automatically after a small delay. Sometimes the documentation is too big and I need to jump to the Quick Documentation pop-up in order to be able to scroll down through it.
Using the mouse I can click on the documentation pop-up and scroll using the mouse wheel. When I'm done reading the documents I can click on the code completion pop-up to explore other suggestions.
My problem is that once the Quick Documentation pop-up is in focus, I haven't found a way to move the focus back to the code completion pop-up without using the mouse.
While I can move focus from the code completion to the quick documentation pop-up by pressing Ctrl+Q, and then use the arrow keys to "scroll" through the documentation, I haven't found a shortcut to return the focus to the code completion pop-up.
What I've tried to far:
Esc closes both pop-ups
Pressing Ctrl+Q a second time opens the docs on a tool window
Any insights on how I can close the Quick Documentation pop-up or move the focus back to the code completion pop-up in such a way that preserves the suggestion that I have previously highlighted?
This seems to be a bug in IntelliJ IDEA . Feel free to add your use-case at https://youtrack.jetbrains.com/issue/IDEA-168388
Here is a workaround that could be used for the time being:
Open Documentation as a Tool Window:
Add keyboard shortcut to focus documentation window from anywhere:
When the completion popup appears, focus documentation tool window by the shortcut from [2] and scroll it
Press Esc to unfocus documentation tool window and focus completion popup

SAP GUI scripting - Button press fails

I am using a macro in an Excel file that runs the SAP GUI. There is a step where, when I click a button in SAP there will be another window that pops up.
For that I have written a code like this:
session.findbyid("wnd[0]/XX/btnXX").press
session.findbyid("wnd[1]/XX/btnXXX").press
There is a button (btnXXX) in the window (wnd[1]). But when I execute this query, I am getting an error object not found for findbyid.
When I keep the break point and execute it, it is throwing error on 2nd line in the above code. I try to pick the activewindow.name and it shows wnd[0] still. Here the issue is wnd[1] is not getting opened.
Does somebody know why the 2nd "button press" doesn't work?
You should be able to replace all mouse clicks with keyboard strokes.
Replace:
session.findbyid("wnd[0]/XX/btnXX").press
With:
session.findById("wnd[0]").sendVKey(N)
Where N is the linked hot-key ID.
To get the exact command, use SAP script recording and only use the keyboard to transition between views and windows. The easiest way to determine how is to hover your mouse over the buttons you would normally click to learn the hot-key then record the hot-key.
Note 1) So far I have found that btn[XX] always maps to sendVKey(XX), but I can't be certain this is always the case.
Note 2) sendVKey always appears to be referenced off the window (wnd[Y]) even if a button is another layer down (/tbar, /usr, etc.).

Highlight and copy code from jsfiddle

is it possible to select and copy code I've written in jsfiddle?
When I try to select code (Chrome 28.0, Mac OSX), the text get deselected as soon as I release the mouseclick (quasi onmouseup).
Sorry if there is already a similar question, but it's hard to google jsfiddle related problems.
I have the same problem with Firefox 28 but I found the solution is to click in whichever box you want the code from to get the cursor and then click control+a (windows - select all shortcut) then control+c (windows - copy shortcut). If you don't want all the code just paste it into notepad and then copy whichever portion you desire.
Simply: press Run before copying.
Highlighting doesn't work when something is done in result pane of jsfiddle screen (e.g. when I press a button). To make highlighting work again is necessary to get the screen to its initial state by pressing "Run" or "Update" (tiddy and fork probably work as well).

Close colorPicker via Photoshop SDK

I'm working with Photoshop SDK with Javascript, and I'm completely stuck on the color Picker behavior.
I would close the Photoshop ColorPicker if open (I use app.showColorPicker() to present it).
Is there a way to close it from script ?
I'm not sure there is a way to do this in the script or if it's even necessary. Just from testing out app.showColorPicker() it appears that the script hangs and waits for the user to either pick a color and click ok, or click cancel (both of which close the window) before continuing with script so it would close itself before evaluating the next line of code anyway.

AutoHotkey background clicking and typing

I'm trying to use AutoHotkey to do some background clicking and typing while I'm doing other stuff in the foreground.
I've gotten used to Send but I haven't figured out how ControlSend works yet. Can anyone give me an example using something simple like MSPaint in the background and changing the color of paint.
Is this even possible to do? I have a script currently that pulls from daily Excel report, assigns each row a variable and punches it into another program, but I need it to click and type some canned messages as well.
The first question should probably be why use mouse control? Keyboard control is sooo much easier and often more reliable. What is it that you try to do with a mouseclick that can't be done through keyboard commands?
Also mouse clicks normally activate the hidden app.
OK you wanted an example...
+Home:: ;Shift + Home = stop/start radio
SetControlDelay -1
ControlClick, x384 y143, Radioplayer
Return
Here i click on the play/pause button of a streaming radioplayer. The mouse coordinates are found with the aforementioned Windows Spy and the title of the browser (you might have to use SetTitleMatchMode). Why not look at the AutoHotKey Command list and check out the examples there....
Let me know if this is (roughly) what you are looking for....
SendMode Input ; Recommended for new scripts
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
SetTitleMatchMode, 2 ; A window's title can contain the text anywhere
!F1:: ; Press Alt F1 to execute
IfWinExist, Microsoft Excel
{
ControlSend ,, 1000{Enter}{Down}, Microsoft Excel
}
return
Here is some code I used to first record the mouse position (relative mouse position did not work since the window was tiled and the click position could be changed by moving the tiles). Immediately after that I click the mouse at the recorded position (and redo this later on in the code as well).
SplashTextOn, 200, 100, Script Preparations, Please Click on the Person `"Search Term`" link (1) in SAP. ; Show new instructions to the user
WinMove, Script Preparations,, (A_ScreenWidth/2)-150, (A_ScreenHeight/2)-200 ; Move the text instructions window with the name "Script Preparations" 150 pixels right of the center of the screen and 200 pixels up SoundBeep 600, 300 ; Wake up user
; From here on the left mouse button will temporarily be disabled
Hotkey, LButton, on ; Turn Left Mouse Button OFF, to capture the Mouse click
KeyWait, LButton, D ; Wait for LeftMouseButton click Down
MouseGetPos, xposS ,yposS ; Store the position where the mouse was clicked (Search Box)
MouseClick, left, %xposS% ,%yposS% ; Perform the mouse click on the captured mouse location
Hope this helps.
In your situation, I assume that you only need to determine the mouse position with Window Spy.