Highlight and copy code from jsfiddle - 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).

Related

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.).

Sikuli click is not effect

I'm using SikulixIDE 1.1.0 to write a script playing Yugioh game (run on Windows 10 x64).
See the main screen:
I start the game manually and then run the script as below:
switchApp("Yu-Gi-Oh! PC")
click("1477213591920.png")
My expectation is that the link named "DUEL MODE" is clicked to go to the next screen. The cursor always moves to that link, but sometimes it works, sometimes does not.
I check the log and see that Sikuli has sent click command but for some reason, the game not accept it. This is the log:
[log] App.focus: [8020:Yu-Gi-Oh!]
[log] CLICK on L(687,488)#S(0)[0,0 1366x768]
I've already tried:
doubleClick instead of click
sleep a few seconds
hover and click
But all do not work, neither.
I would expect that some of the things you have tried will help but if that's not the case you will need to identify whether the button was actually triggered or not. To do that you have to capture the next screen or any part of it that uniquely identifies it. Then you will use it a loop with a predefined number of attempts and some wait time between them and click more than once if the click didn't work. So generally something like that (pseudo code):
attempts = 3
for attempt in attempts:
click(button)
if (nextScreen is available):
break
sleep(time)
I know it's been a while but I ran into a similar problem recently.
The image was found but the click didn't work.
I'm also working on Windows 10 x86_64.
The solution was simply to execute the program as administrator.
Don't know why but now it's working..
I also had to use the double click instead of simple click for some patterns.
In adition to Eugene S Answers, if you are using SikuliX, you can try to Run in Slow Motion. Also, if the image have some effects (like brightness), you can try to use Pattern inside of exists():
if exists(Pattern("DualMode.png").similar(0.6), time_in_seconds):
click(Pattern("DualMode.png").similar(0.6))
By default, the similar() value is 0.8, so if the image have some effect and for example, the color change every second, you can set a lower value between 0 and 1.
PS: Don't forget to put the pattern inside if exists and click, because if you don't put inside of click(), could throw an Image not found error message.

For intelliJ 12.X how do i get the console back in the debugger?

Just like this question here:
IntelliJ: After hiding my "Output" sub-panel within the "Debug" panel, how do I get it back?
I canno get the log/console viewer back in debug mode.
The suggested solution in the given question no longer works the "restore layout" button does nothing, and the "certain spot" on the debug is extremely vague at best.
Is there a way to retrieve the console if it gets vanished (or better yet, just stop that button for vanishing it from even existing)?
I am using IntelliJ 12 Ultimate. If the restore layout didn't work for you either, this should fix the problem:
Open the Debug panel.
Keep mouse on the Debug tab and move it straight right to the Watches icon.
You may see a few more more icons here, and Output may or may not be visible (not visible for me)
If visible, click it and the Output view will be restored.
If not visible, move your mouse slowly to either side of the Watches icon and an empty block would highlight indicating that you are hovering over an icon. There may be several of these. Use tooltip to figure out which is Ouput and click it.
Worked for me, I hope it works for you too.
click the button on the left of Debug View called "restore layout",then the console will go back in the Debug View! 1
Syed explained it pretty well, but a picture could be even better:
A view can be hidden via its context menu, then restored by clicking the corresponding icon (with red circle) to the right.
You can restore the layout using this button as of 2018.1.8
In 2016.2, I had to re-run in debug mode for it to reappear. I could not find a way to un-hide the console in the debug window.
You don't say which version of IntelliJ you're using, but I've just tried this in version 12 and the console window minimises to the far right of the debugger tabs. Look at where it says 'Debugger' and then eyes right until you see one or more icons over the Watches panel. Try clicking on them. If you're not using version 12, then only god can help you :)
In v. 2020.1 there is Layout Settings on the top right corner of Debug window
I've just spent an hour trying to get my console output back, and although this answer didn't solve it, it did help.
I'm on Intellij 11.1 Ultimate Edition, and Restore layout didn't help. Nor did I have any icons above the Watches window in the debugger, but I clicked around above the Watches anyway - and suddenly my console output was restored.
I've tried clicking around there again to see if I can provide more concrete steps, but without success. Can only suggest you keep clicking till it reappears.

Cut and paste out of/ into text fields in a separate window doesn't work

I have a Macintosh Mozilla plugin which puts up a separate window for login information.
It seems to work fine, it gets keyboard events like typing and hitting
return to hit the default button. HOWEVER, it doesn't seem to get cut
and paste events. When I hit Cmd-v, the edit menu flashes, but nothing
happnes.
Is this a problem with my responder chain? Do I have to specially tell
Mozilla that I want these events? or am I likely to have some other
problem that I haven't even thought of?
It turns out the problem is that I'm using cocoa windows inside Mozilla, which isn't Cocoa... fail.

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

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.