Page 1 of 1

Screen off

PostPosted: Wed Apr 25, 2018 10:48 am
by skyhigh24
Hey,

Is it possible to IDLE, put the screen of or change Brightness over Shell/DOS/ VBS Command Line?

Cause I put my Monitors to sleep with the F12 Key when I go to sleep and the GOverlay illuminate the room with its Backlight :D

Re: Screen off

PostPosted: Thu Apr 26, 2018 6:29 pm
by TheLaGmAn
there is no support to change the idle status of the unit but what you could do, is, create an empty profile, then, load that profile when you press f12 by command line (ex: GOverlay.exe -activateprofile3.5 "template - blue (LCD2), since the profile is blank, the unit will enter sleep mode in a minute, when you want to resume you need to somehow load your previous profile again.

Re: Screen off

PostPosted: Fri Apr 27, 2018 10:31 am
by skyhigh24
Nice, thank you :)

I'll wake the GOverlay and screens with F11 so it works just fine :)

Re: Screen off

PostPosted: Sun Apr 29, 2018 11:26 am
by skyhigh24
If Anyone is interested in the same Function, here is how i did it:

First of all i created 2 Batch files

GoverlaySleep.bat
cd "C:\Program Files (x86)\GOverlay_v163\"
GOverlay.exe -activateprofile3.5 "idle (LCD2)"

GoverlayWake.bat
cd "C:\Program Files (x86)\GOverlay_v163\"
GOverlay.exe -activateprofile3.5 "gaming (LCD2)"

Through to Windows System Restrictions you need to allow the Annoying UAC every time you start the Batch files.
To Bypass the UAC you need to add 2 Tasks in the Task Scheduler. I named them "Goverlaysleep" & "Goverlaywake" like the Batch Files.
Make sure to Check "Run with highest privileges". We dont need to add a Trigger. As Action we add the Batch Files.
The first step is done. If you Run the Tasks the Goverlay changes the Profile without the UAC.

2018-04-29 13_10_40-Microsoft Store.jpg

_________

The Second step is to build a "Software-Switch" to Toggle the Profiles.
Therefore i also build a Batch File:

GOv-DisplayToggle.bat
if exist "1.txt" GOTO SLEEP

schtasks /run /tn Goverlaywake
echo Goverlay Eingeschaltet>>1.txt
GOTO END

:SLEEP
schtasks /run /tn Goverlaysleep
del 1.txt

:END


This File checks, if the 1.txt exists. if not, it starts the Sleep Task and Creates the 1.txt in the Folder.
if the 1.txt exists, it jumps over to the Wake Task and deletes the 1.txt. so this could go on endlessly.

________

The last step is to bind a Key to the Batch. To do that, create a Shortcut of the "GOv-DisplayToggle.bat", put it on the Desktop, right-click it, select Properties and click on Short Cut. Now Press the key you want and apply. Close the Properties Window and Test if it works.


2018-04-29 13_01_14-.jpg

Re: Screen off

PostPosted: Sun Apr 29, 2018 4:09 pm
by TheLaGmAn
thanks for sharing!

Re: Screen off

PostPosted: Tue Oct 23, 2018 5:53 am
by CybaGirl
Yes indeed!

Thanks for sharing very much appreciated :).