HyperionScreenCap icon indicating copy to clipboard operation
HyperionScreenCap copied to clipboard

[feature request] screen capture after resume from sleep + controlling screen capture through command line

Open Dinth opened this issue 5 years ago • 8 comments

Hi. Just wanted to request a small feature - if the computer goes to sleep with Screen Capture enabled, it should also have Screen Capture enabled after resuming from sleep. Right now sleep disables screen capture (while the app is still running and in taskbar) and switching it back on is not always easy (especially with PCs controlled only with TV remote). It would also be nice to control screen capture (stopping and starting) with command line - this way it could be easily hooked up to a TV remote.

Dinth avatar Dec 28 '20 20:12 Dinth

I have the same problem. Thes uggestion Dinth made does quite make sense. Is there a possibility that this is going to be implemented or most probably not? Thanks.

n0valis avatar Apr 23 '21 11:04 n0valis

Does the API thing not work for you?

sabaatworld avatar Apr 23 '21 12:04 sabaatworld

Does the API thing not work for you?

Hi @sabaatworld. Is there a way of triggering "Start Capture" in HyperionScreenCap client through API somehow? is there any documentation of that?

Dinth avatar Apr 23 '21 13:04 Dinth

Enable API support in it. It should let you start. I don't have documentation but you can look at the code to figure out how to use.

When I get a chance, I'll add some documentation regarding the same to the readme.

sabaatworld avatar May 08 '21 18:05 sabaatworld

Hi. Im playing with the API at the moment but it doesnt seem it work. It is enabled on API port 9191. When i open http://<HTPC IP>:9191/API?command=ON&force=False im getting

Bad Request - Invalid Hostname
HTTP Error 400. The request hostname is invalid. 

error

[edit] I have actually done some research and it seems that "hostname" should contain "*" for API to work

public void StartServer(string hostname, string port)
--
… | &nbsp;
18 | if (_server == null)
19 | {
20 | _server = new RestServer
21 | {
22 | Host = hostname,


Dinth avatar Jun 19 '21 20:06 Dinth

I've released a new version today which should fix the issue. Let me know if it works for you.

sabaatworld avatar Jan 08 '22 05:01 sabaatworld

Amazing, will test the new version this evening!

Dinth avatar Jan 08 '22 08:01 Dinth

Anyone have documentation of this API?

papapep514 avatar Jun 07 '23 23:06 papapep514