Any screen capture tool for Windows that can run from command line and has auto-scroll capability? - screen-capture

I'm looking for a screen capture tool for Windows (ideally supports xp, vista and 7),
that can execute command in command line and take screenshot of, say, web page.
Then it should have auto-scroll feature so that I can scroll down the captured images.
I've tried FastStone capture and DuckLink and while they do have auto-scroll feature, it is not supported in command line (command line would just take screenshot without auto-scroll).

Maybe Autohotkey might help, building scripts to run i.e. faststone and select "capture webpage with scroll".

Related

RenderDoc inject into Google chrome failing

Hi so I am trying to start chrome with white tab(no graphical api) following this Google maps to 3D model tutorial and part of it instructs to inject RenderDoc into Google chrome but the injection is failing
I'm suspecting that this is what is causing the injection to fail is that chrome is loading with graphical api involved:
I made a shortcut with Target in properties holding" C:\Windows\System32\cmd.exe /c "SET RENDERDOC_HOOK_EGL=0 && START "" ^"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe^" --no-sandbox --gpu-startup-dialog""
Using it opens this
But it should be like this
And can inject into it
But when I click the ok button in the pop up "GPU starts with pid: 2408" puts me out and when I try to reinject does this
Any idea how I can fix this?
Tried different versions of RenderDoc (1.17 and 1.24), running on cmd instead of shortcut and restarting machine.
I'm going crazy with this problem....
Chrome restart several times, before restarting I noticed injection success with upper status bar visible, but when chrome restart last time injection fails.
I suspect that chrome has a system to detect injection and try several methods to block it, until a new restarted gpu process has avoided it.
I'm actually searching in this direction to solve the problem (if I'm right).
Confimation of this : https://www.securityweek.com/chrome-block-apps-injecting-its-processes/
...So I'll try a chrome version before 72 of January 2019, when chrome try to blocks all injections...

How to use brave to automate printing html to pdf?

I currently manually open HTML files using Brave Browser and print the files to pdf files. I want to automate this process in the command line. Is there a way to do it? Since Brave is based on chromium, solutions based on chromium and google-chrome are also welcome.
This is a common use for calling the executable in headless or kiosk modes.
Your milage may vary compared to running heads up with a robotic puppet to press buttons for you, but more often than not is so much simpler for every day basic use in a batch file for multiple uses it is a second or so for each pdf generation.
Edge is not different to Brave or Chromium's so find the executable and append here using windows user folder
--headless --enable-logging --print-to-pdf="%UserProfile%\Documents\Demofile.pdf" --disable-extensions --print-to-pdf-no-header --disable-popup-blocking --run-all-compositor-stages-before-draw --disable-checker-imaging "HTTPs://url"
So darn quick I did not know it had run until opening the result, however note it needs the target to not pop-up blockers like google does, hence next step up is a button pusher to replace you by eating cookies.

Jupyterlab will not launch in Chrome

I'm firing up multiple notebooks in JuputerLab simply by navigating to the folder containing those notbooks, and typing jupyter lab. This opens JupyuterLab in chrome directly, whics is really neat. With some very few exceptions, this has been running fine until now. For some reason, now I have to copy and paste the following to get started:
Copy/paste this URL into your browser when you connect for the firsttime, to login with a token:
http://localhost:8888/?token=1a11606cd5bba635155??????1a59f24886c302b7203
Everything works fine when I do as asked, but does anyone know how I can fire up JupyterLab directly without the copy&paste?
System info:
OS: Windows 7
Default browser: Chrome
Jupyterlab: 0.34.9
On a mac, if you hold down ⌘ and hover over the link - then it will become clickable ✨
Thereby eliminating the need to both copy and paste.

GTK+ application not running in full screen

I have a custom google-chromium application (based on X11/Gtk+) which I am running on Ubuntu 13.x. Now what I want is when the system starts up i don't want to load Ubuntu window manager, instead I am starting Ubunut in text mode in console. When It starts in console mode, I want to run my custom google-chromium application. The application should run in 1080P. So here is the sequence.
Start Ubuntu in console mode.
login and start X server. (startx)
Once X server is launched I run google-chrome. (with the help of .xsession)
Everything is working and I am able to start my google-chrome application but there is one problem. My google-chrome application is not on full screen. I have tried geometry=1920x1080 --maximize but nothing is working and it is showing itself in the top - left corner.
As per GTK docs screen sizes are managed by Window Manager, (http://www.gtk.org/api/2.6/gtk/gtk-x11.html), which I am not running.
Question is, since I am not running any window manager how can I tell google-chrome application to run on the full screen.
Thanks.
Regards,
Farrukh Arshad.
what is called "full screen" under X11 is really a client message sent from the application to the window manager, which will then resize the window and hide the window frame; if there is no window manager, there is nothing to honour the policy. even the geometry request goes through the window manager: the toolkit can but ask.
the question is: are you modifying the Chromium code base for your application, or are you just launching the application itself? if you have access to the windowing system code you can get the screen size and set the window geometry yourself; see the GdkScreen API:
https://developer.gnome.org/gdk2/stable/GdkScreen.html
I would still suggest you run a small window manager; running without one degrades the functionality of any application. you can use a simple one, like twm:
http://en.wikipedia.org/wiki/Twm
or a slightly more complex, and yet very plain one, like Metacity:
https://wiki.gnome.org/Projects/Metacity

Automating Google Chrome extension packaging

I'm trying to automate packaging of the Chrome extension on Windows and according to the documentation, it is this command:
[path]\chrome.exe --pack-extension=c:\myext --pack-extension-key=c:\myext.pem --no-message-box
However this command results in a new browser window and no action is performed. I tried other switches like --version or --help but it seems that Chrome is ignoring all of this. Do others have the same issue? What am I doing wrong? I also tried various quoting and with no other browser window open but I haven't been able to make this work.
Update: I'm happy to learn that the new Chrome 8 has fixed this issue.
The answer is present in one of the comments. I am reposting the answer verbatim here:
You can try one of the scripts to pack
an extension at
https://developer.chrome.com/extensions/crx#scripts
– by Na7coldwater
You'll need to close all chrome windows before the command line pack extension command will work.
I raised this bug with the chrome team some time ago (http://code.google.com/p/chromium/issues/detail?id=22901) but it's not quite fixed yet. This can be somewhat frustrating because (as michaelhermannweber pointed out) "Since we're fans of Chrome, obviously Chrome is already open!"
I even tried to use a separate instance of the chrome executable to build the extension, but alas no luck on that front either :(
For now, AFAICT you have to do it manually via the pack extension button on the chrome://extensions page.
You might manage to build a script that closes all open chrome windows, builds the extension, and then re-opens chrome. But I doubt that it would be worth it given the number of tab users like to keep open.