topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 9:08 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: A script for a black screen  (Read 10649 times)

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
A script for a black screen
« on: November 03, 2020, 02:41 AM »
I would like a script I can launch from an icon in the desltop for :

a) decrease the brightess of the monitor to the minimum
b) put a black or blank screen in the desktop
c) Reactivate the monitor only with the space bar.

 :P :P :-*

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: A script for a black screen
« Reply #1 on: November 03, 2020, 04:54 PM »
I am trying to find a script in web for changing the wallpaper or background, but nothing seems go well for me.
 :-* :P

dim shell dim user

Set shell = WScript.CreateObject("WScript.Shell") user = shell.ExpandEnvironmentStrings("%USERNAME%")

Set fso = CreateObject("Scripting.FileSystemObject")

windowsDir = fso.GetSpecialFolder(0) wallpaper = "c:\wallpaper.jpg"

shell.RegWrite "HKCU\Control Panel\Desktop\Wallpaper", wallpaper

shell.Run "%windowsDir%\System32\RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters", 1, True


--------------------------------------


@echo off
reg add "HKCU\control panel\desktop" /v wallpaper /t REG_SZ /d "" /f
reg add "HKCU\control panel\desktop" /v wallpaper /t REG_SZ /d "C:\[LOCATION OF WALLPAPER HERE]" /f
reg delete "HKCU\Software\Microsoft\Internet Explorer\Desktop\General" /v WallpaperStyle /f
reg add "HKCU\control panel\desktop" /v WallpaperStyle /t REG_SZ /d 2 /f
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
exit


---------------------------

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: A script for a black screen
« Reply #2 on: November 05, 2020, 06:41 PM »
proposed for nanny 2021 !!!!!!!!!!


 :-* :P

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,612
    • View Profile
    • Donate to Member
Re: A script for a black screen
« Reply #3 on: November 06, 2020, 12:36 AM »
You still need to develop your google skills :(
Tools like this exist since the beginning of Windows (well, since around the Windows 3.x releases)
Just an example:

https://www.bleeping...eature-with-new-app/

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: A script for a black screen
« Reply #4 on: November 06, 2020, 04:55 AM »
You still need to develop your google skills :(
Tools like this exist since the beginning of Windows (well, since around the Windows 3.x releases)
Just an example:

https://www.bleeping...eature-with-new-app/
I'll try and comment Ath.
Best Regards

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: A script for a black screen
« Reply #5 on: November 06, 2020, 05:04 AM »
Ath. Don't you think that this utilitywill fails as the others based in the options standard in windows 10 ?

I am having a problem with the display off of my monitor as you know.
 :-* :P

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,612
    • View Profile
    • Donate to Member
Re: A script for a black screen
« Reply #6 on: November 06, 2020, 12:18 PM »
You will have to experiment with tools to find something that might work. You can try to control the monitor via DDC using this tool: https://www.majorgee...ickmonitorddc,1.html (select a MajorGeeks download)

It is very likely the combination of some software on your system that wakes it up every so much minutes, and a monitor that has a very poor power-save implementation.

(Edit: Changed url, original site isn't reachable)

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: A script for a black screen
« Reply #7 on: November 07, 2020, 02:24 PM »
You will have to experiment with tools to find something that might work. You can try to control the monitor via DDC using this tool: https://www.majorgee...ickmonitorddc,1.html (select a MajorGeeks download)

It is very likely the combination of some software on your system that wakes it up every so much minutes, and a monitor that has a very poor power-save implementation.

(Edit: Changed url, original site isn't reachable)
Thanks Ath. Running to try.
 :-* :P

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: A script for a black screen
« Reply #8 on: November 07, 2020, 02:45 PM »
 ;D
A tricky moment indeed turning round the screen and come back.  :)
The program is good for controlling brilliant. I don't know how to take advantage from an automation point of view. I can also turn off brilliance with the hewlett packard keyboard.
I have found a program that put a blank screen, but is a trial.

This is
Blank Screen Utility



Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: A script for a black screen
« Reply #9 on: November 07, 2020, 02:52 PM »
I am trying google with the key : Blank Screen Utility

nircmd monitor off

screen off laptop

screenoff

turn off screen

blacktop programa

dark turn off monitor

displayoff

display power off

 :-* :P

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: A script for a black screen
« Reply #10 on: November 07, 2020, 02:57 PM »
this fails
https://sourceforge.net/projects/doff/
The system makes the screen display come back.
 >:(

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: A script for a black screen
« Reply #11 on: November 07, 2020, 02:59 PM »
This fails
https://sourceforge....ects/turnoffmonitor/

Perhaps a solution may be an additional screen to detect when the display is on and execute this utility forever...

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: A script for a black screen
« Reply #12 on: November 07, 2020, 03:01 PM »
I presume all these utilities have the same problem

https://www.winhelpo...cut-command-windows/

The only one makes well is the trial
http://www.monitor-off.com/


Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: A script for a black screen
« Reply #14 on: November 07, 2020, 03:06 PM »
this one have a strange behaviour but may serve

https://www.sordum.o...t-sordum-monitor-off

put the blank screen, the system try to turn on the display, but the program put again the screen off.
have a vbs. configuration file....

I will revise later....

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: A script for a black screen
« Reply #15 on: November 07, 2020, 03:09 PM »
This one is the trial....

https://www.daanav.c...off-monitor-utility/                        ----------------------------------- >>>>>>>>>> http://www.rtsoftwar...Turn-Off-Monitor.htm

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: A script for a black screen
« Reply #16 on: November 07, 2020, 03:11 PM »
This one :
Turn Off LCD is a tiny application which turns off your notebook LCD just with one click. To turn off your display, double click on the file. This might not work if you have a sensitive mouse that wakes up the ‘screen’ every few minutes.

Have I a sensitive external mouse ?  :-\

https://www.redmondp...-lcd-with-one-click/

I will try and comment

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: A script for a black screen
« Reply #17 on: November 07, 2020, 03:14 PM »
Yes I have a sensitive external mouse !!!!!!!!

A cable mouse : Trust

When desconect the mouse the problem don't happen . To Try in every prior case.....


Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: A script for a black screen
« Reply #18 on: November 07, 2020, 03:16 PM »
 ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D

We get it , we get it , we get it !!!!!!!

It's solved !!!!!!!!

thanks Ath and everyone.

Shades

  • Member
  • Joined in 2006
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: A script for a black screen
« Reply #19 on: November 07, 2020, 05:03 PM »
Mouse "drift" can indeed also be an issue. The brand 'Trust' for computer gear had a very bad reputation in the Netherlands. If it wasn't the hardware itself that failed, the supporting software would. It came fast and went away fast between the late 90's and 2000's. Good riddance.

Preventing mouse "drift" can be simple. Replace the mouse with a model from a reputable brand.
Also, how level is the surface where you use your mouse on? A slight slope can be enough to cause "drift".
Is the surface where you use your mouse reflective? Like glossy or is it white? Generally speaking, optical mouses do not handle glossy surfaces or white surfaces well. Use a dark surface that doesn't reflect.
Better yet, get a mouse mat. Spend a bit and get a decent and large enough mouse pad that also fits your keyboard or laptop. Saves time not having to spend on maintenance (cleaning gunk from the top and bottom surfaces of your mouse, I consider that maintenance).