I am trying to run a chrome console command whenever I land on a webpage. What recourses should I look at to go about doing that? This is all I want to run on loop:
document.querySelector("#currentKey").innerText
Result should be something like this:
V&2Y/9);fQpeP"X,
W{8Q]^DdQB>+>A5z
_Am[{.`>j^8b/DD5
Please refer to official google documentation
https://developer.chrome.com/docs/devtools/javascript/snippets/
Related
I would like to use JavaScript for automation (mac JXA) to make a NSWindow and show it to the user.
I tried following this example, but it crashes when I run it in the Script Editor app.
Then I tried to make my own using barebones. As a start I just want a window with a title in it.
ObjC.import("Cocoa")
var window = $.NSWindow.alloc.init
window.setContentSize($.NSMakeSize(500, 500))
window.title = "hello world"
window.makeKeyAndOrderFront(window)
When I try to run this in Script Editor the app crashes right away. It appears to be crashing when I try to initialize the NSWindow Object.
Am I doing something wrong?
I followed this guide and they say you have to save it as an application and run it as an application.
Heres a clip where they mention it in the article.
I have found a few questions and answers for this, but I can't make it work. I have a controller (extending controller), and an action. When I try this in PowerShell (as admin):
C:\wamp64\www\project\yii controller/action
a black cmd window is appearing for a moment but certainly doesn't do what it supposed to do, otherwise I could see the results what I'm waiting for. How can I check what is going on in this cmd window? Maybe there is an error message that could help me to find out what is wrong. I have tried -noexit but it's still disappearing.
If I run the controller/action in a browser, it is working.
Once it is working I guess I can add it to windows scheduler.
Try executing as
C:\wamp64\www\project\yii.bat controller/action
I have figured it out:
first, the controller has to be in project\commands. You are in your project folder in CMD and run the following command:
yii controller/action
and that's it.
I am utilizing an extension called Azure Event Hub Explorer in Visual Studio Code. The extension allows me to see messages from an Azure Event Hub within the VS Code Output.
There are a lot of messages and you have to scroll through them to find what you want. There is no way to filter the results. I am looking for a way to export the output into something like a csv file so that I can easily filter my results.
Please let me know if there is a way.
Click on "Open log file" button on right upper corner of output window. Also you can canfigure key bindings for commands:
I'm using a PHP script which expects user input from a command like fgets(STDIN). The problem is it no longer works in the newest version of PHPStorm (10).
The same works when I run it directly (without debugger enabled) and anything I enter in the console is sent to the script (on direct run).
But during a debug session, when I try to input text at the script's prompt, it does not go to the script. My best guess is that the new REPL feature is overriding user input in console during debugging. I say this because pressing the UP/DOWN arrows opens up a popup with all PHP function names.
It used to work correctly with last version.
How can I send user input to my PHP script with this new version? Am I missing something here?
I'm not sure if this is the same thing, but I was running into this same problem, and I was able to get it working by deselecting the "Use Console Input" checkbox in the PHPStorm Console.
John's answer is perfect.
I want to mention that the Use Console Input is a tiny icon in sidebar of the debug console. I provide you by this image
I deleted an app from the web console but there was an error. After that, the system shows no apps but says that I am using 2 of 3 gears. Anyone knows how to solve this issue?
Perhaps not the most direct answer, but one avenue to try would be the command line interface rhc. If you install that, and try using it, you may have more success in figuring it out. I believe rhc is supposed to me more full featured than the web interface.
for steps on how to get started with rhc, look here https://www.openshift.com/get-started and click on the Command Line heading.