Google colab can't restart runtime when in cell output iframe - google-colaboratory

Google tells me "The shortcut "Restart runtime" is disabled when a code cell output iframe is active. Use the escape key to leave the iframe and enter the shortcut again." when I try to restart after clicking a cell output.
I was just curious why I can't restart when on a cell output.

When the output frame is focused, keyboard shortcuts end up directed there first.
Of course, you can always select the restart runtime menu regardless of keyboard focus.

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

How to click on Open/save/save as/cancel button on IE 11 using vba

I would like to click on open when a file download dialog appear in IE 11. I found this code http://www.siddharthrout.com/2011/10/23/vbavb-netvb6click-opensavecancel-button-on-ie-download-window/
But this code does not work with IE11. I have also attached the IE11 download dialog box here too. Anyone has any idea, please, help.
You can use Alt+N to focus on the Notification Bar.
And then send {tab} key to navigate to the specific button.
With VBA, you may use Autohotkey.dll or AutoItX3.dll to send these hotkey combinations.

Qtp script not clicking on security warning dialog box

I am auto generating scripts using qtp10.0
My application has a popup with message The current web page is trying to open a site in your trusted site sites list. Do you want to allow this? and I want to click yes on this popup. But my script is not doing this.
Can't we click on security warning Yes button using script in qtp 10.0?
First of all yes you should be able to click the "yes" button with QTP 10.
Kind of hard to answer specifically without more details but I will give you some pointers on where I would look to fix the problem.
1) Make sure you have the correct identification properties stored in the object repository for the browser, the dialog and the yes button by using the object spy.
2) Not the best solution but as the browser, and therefore the Yes button, is probably not the application under test it is probably satisfactory to use the hotkey for the yes button. (if one is available). To do this the code would look something like this.
'If the dialog exists
If Browser(<BrowserName>).Dialog(<DialogName>).Exist(3) Then
'Use hotkey to press the yes button
Browser(<BrowserName>).Dialog(<DialogName>).Type "Y"
'If the dialog still exists
If Browser(<BrowserName>).Dialog(<DialogName>).Exist(1) Then
'report failure
Else
'report step done or passed
EndIf
EndIf
Feel free to comment and I will attempt to help you further if you are still having problems.

Fiddler keyboard shortcut to resume all breakpoints

Is there a keyboard shortcut in Fiddler to resume all breakpoints? It seems like a pretty common operation that one would want to have a shortcut for.
I didn't see anything on the fiddler website
There's no single key-combo for the "Resume all" button on the toolbar. But you can get close: hit ALT+Q to set focus to QuickExec. Type g or go and hit Enter.

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.