Pole Magnet Checkmate Shoot Blog Post-Pillar Erection Mast Staff Woody Boner Message Delivery Slice of Toast Cut Section Blade Scythe Slit Slip Tool Member Syringe Micro Lance Piston Hypodermic Sharp Knife Sword Blade Skewer Scalpel Tip Junk Yard Tooltip Pin Cripple Ripple Point Prick Spike Cactus Point Teeth Locksmith Pickar Chisel Hack Saw Chain Saw Microscopic Spot Bit Byte Biter Mosquito Throw Missile Conscious Nail Digit Finger Solder Iron Silver Needle Bayonet Spear Axe Segment Selection Matrix Port Selector Mixer Unit Switch Opposite Obstacle Counter Anti Pro Con Fuck Stick Bullet Proof Flame Proof Water Proof Shock Proof Future Proof Pilot Pen Squawk Code 7500 Seven Five Man With A Knife Profane Pen Shakespeare Macbeth Romeo Juliet Arrow Heart Pump Red-Stop Traffic Passion-Go Vocabulary-Constabulary Mind Police Thought Police Audio Book Mind Reader Telepathy Silver Door

Monday 18 September 2017

Batch File Project Notepad++ to Run as Administrator Set Registry and Code Gem REG2BAT Converter Utility

All The Coder Project Set Are Now With GitHub
Where Maintain UpToDate All the Time
----
Matthew-Lancaster/Matthew-Lancaster: A Collection of Scripts For AutohotKeys, Dos Batch Command, VBScript, VB6, VB2008, Grub4Dos, Reg Keys, Win Powershell, SMTP
https://github.com/Matthew-Lancaster/matthew-lancaster
----

The Project Here At GitGub
Is a Subroutine Block Within Here Code
Search Here Text
Reg.exe add "HKCR\*\shell\OpenWithNotepad"
----
Matthew-Lancaster/BAT 01 REGISTRY AT BOOTER.BAT
https://github.com/Matthew-Lancaster/Matthew-Lancaster/blob/master/SCRIPTER%20CODE%20--%20BAT/BAT%2001%20REGISTRY%20AT%20BOOTER.BAT
----
Editor
[ Tuesday 10:30:00 Am_07 May 2019 ]

Hi, There Room

Batch File Project Notepad++ to Run as Administrator Set Registry and Code Gem REG2BAT Converter Utility

Another Project __ Registry in Batch File __ Notepad++
As Shown By First  REMMER Line
And Also The REG2BAT and _.VBS Script and Another The Converter Utility Found Today From Appearer April 2014 Couple of Year Back Now Complete of Work Error Not Support DWord Until Recent

1499 Word Grammarly
But For Code Repetitiveness and Reporting of Such
and My Capital Letter first Each Word Sometime
Hard to Avoid Capital Letter first Each Word Sometime Accent in Text Speech Talker From Programming Hammering Her
Otherwise, Would Be and is Grammarly 100%

Over and Out
~
Mon 18 September 2017 19:09:54----------

BLOG LOCATION
----
Roids Polaroids Mach 2 HardCore: Batch File Project Notepad++ to Run as Administrator Set Registry and Code Gem REG2BAT Converter Utility
http://roidsrim-minimal.blogspot.co.uk/2017/09/Batch-File-Project-Notepad-Plus-Plus-to-Run-as-Administrator-Set-Registry-and-Code-Gem-REG2BAT-Converter-Utility.html
----
GRINBOOK FACEBOOK FB GB
----
Hi, There Room I'm Not Repeating The Talker is... - Matthew Lancaster
https://www.facebook.com/matthew.lancaster.4/posts/10208923592440808?comment_id=10208923601321030&comment_tracking=%7B%22tn%22%3A%22R%22%7D
----


SCRIPT BATCH FILE -------------
@echo off
@CD\

REM ------------------------------------------------------------------------------
REM E:\REG KEY SETTINGS\# Windows 7 REG SCRIPT\NOTEPAD++ WORK\#01_ CREATE AND DELETE THE REG_KEY WITH NOTEPAD++ _ SET ADMINISTRATOR SAVE.BAT
REM ------------------------------------------------------------------------------
REM #01_ TO CREATE AND THEN DELETE THE REG_KEY WITH NOTEPAD++ _ SET ADMINISTRATOR SAVE.BAT
REM ------------------------------------------------------------------------------
REM [ Monday 18:25:30 Pm_18 September 2017 ] The UK
REM [ Monday 17:25:30 Pm_18 September 2017 ] BST BDT DST DLS 1 Hour Ahead UTC+1 CET
REM ------------------------------------------------------------------------------
ECHO MATTHEW LANCASTER
ECHO MATT.LAN@BTINTERNET.COM

REM -------------------------------------------------------------------------
REM __ This work Correctly Has Immediate Effect Learn
REM __ After the reg entry from this folder
REM __ One Key Has to Be Delete
REM -------------------------------------------------------------------------

REM -------------------------------------------------------------------------
REM __ This Code Does the Work
REM -------------------------------------------------------------------------
REM __ Is Another Test There Is Code to Save as Administrator in Notepad++
REM __ Yes and Also There are Two to Set the Txt as Notepad++ and Administrator Save
REM __ WITH TWO PLUG-IN TO SAVE THE WORK HERE __ TESTER
REM -------------------------------------------------------------------------
REM -------------------------------------------------------------------------
REM ONE KEY IS DELETER WITH 3 ITEM BE DELETER WITH THE CODE PROJECT LIKE
REM HERE ____ {B298D29A-A6ED-11DE-BA8C-A68E55D89593}
REM LIKE HERE
REM -------------------------------------------------------------------------
REM Windows Registry Editor Version 5.00

REM [HKEY_CLASSES_ROOT\CLSID\{B298D29A-A6ED-11DE-BA8C-A68E55D89593}]
REM @="ANotepad++64"

REM [HKEY_CLASSES_ROOT\CLSID\{B298D29A-A6ED-11DE-BA8C-A68E55D89593}\InprocServer32]
REM @="C:\\Program Files (x86)\\Notepad++\\NppShell_06.dll"
REM "ThreadingModel"="Apartment"

REM [HKEY_CLASSES_ROOT\CLSID\{B298D29A-A6ED-11DE-BA8C-A68E55D89593}\Settings]
REM "Title"="Edit with &Notepad++"
REM "Path"="C:\\Program Files (x86)\\Notepad++\\notepad++.exe"
REM "Custom"=""
REM "ShowIcon"=dword:00000001
REM "Dynamic"=dword:00000001
REM "Maxtext"=dword:00000019
REM -------------------------------------------------------------------------

REM -------------------------------------------------------------------------
REM _ WRITING YOUR OWN QUERY SEARCH AND AND DELETER ARE A BIT DEPENDANT ON THE JOB
REM _ EXAMPLE LOOK FOR A PARTICULAR AREA SAVE TIME SUB-BRANCHER
REM _ AND DEPEND IF LOOK FOR A STRING OR A VALUE
REM -------------------------------------------------------------------------

REM -------------------------------------------------------------------------
REM __ Edit with &Notepad++
REM  __ ANotepad++64
REM -------------------------------------------------------------------------

REM -------------------------------------------------------------------------
REM A WEIRD MESSAGE AT END ABOUT SEARCH FOR NOTEPAD
REM BUT OUT USEFULNESS __ UNABLE TO CODE TO NOT DISPLAY __ NOT ANY HARM
REM --
REM MESSENGER OF THE WEIRD ERROR SOMETIMES HAPPEN BUT NOT AFTER 1ST TIME TRIAL RUN
REM -------------------------------------------------------------------------
REM _ IT IS CORRECT ALL THREE 3 REG ENTRY HAVE TO BE DELETER THE ENTIRE TREE PATH
REM _ FROM WHERE FOUND
REM _ AFTER TESTER FOUND MENU CONTEXT ITEM CAME BACK AGAIN AND HAD TO DELETE
REM _ THE COMPLETE SMALL TREE IN QUESTION HERE
REM _ SEARCH FIND DELETE DOES IT BY SEARCH AT MAXIMUM
REM _ THE WORD "ANotepad++64" __ MIGHT FIND THE TREE HAS ERROR DELETE
REM _ FIRST PART BEFORE REST AND REST IS GONE MISSING AWOL
REM -------------------------------------------------------------------------
REM _ HAS BEEN RIGOROUS TESTED BY PUT REGISTRY ITEM BACK AND DO AGAIN
REM _ INCLUDE SEARCH FOR INFINITE MAXIMUM
REM _ THE SEARCH FOR A DELETE IS ONLY DONE ON THE SUB-BRANCH WHERE EVENT IS TO HAPPEN THERE IS NOT
REM _ A BIG DEAL ABOUT NOTEPAD++ THERE
REM -------------------------------------------------------------------------
REM _ FIND THIS PROGRAM __ PROVEN A SIGNIFICANT HELPER IN BATCH FILE FROM REG FILE CREATION
REM _ BLOGGER COMMENT SHOW GO BACK ONLY CREATED APR 2014 __ VERY HELPFUL INDEED

REM ----
REM ----
REM REG FILE TO BATCH FILE CONVERTER - Google Search
REM https://www.google.co.uk/search?num=50&rlz=1C1CHBD_en-GBGB744GB744&q=REG+FILE+TO+BATCH+FILE+CONVERTER&spell=1&sa=X&ved=0ahUKEwijx7WbnK_WAhWFUlAKHdO6AmgQvwUIJSgA&biw=1229&bih=523
REM ----
REM ----
REM How to convert a registry file to a batch file | Symantec Connect Community
REM https://www.symantec.com/connect/blogs/how-convert-registry-file-batch-file
REM ----
REM ----
REM Reg Converter
REM http://www.sordum.org/8478/reg-converter-v1-1/
REM ----



REM __ TO SET MY PERSONAL PROGRAM COMMAND IN THE CONTEXT MENU FOR
REM _________________________________________________________________
REM __ OPEN A FILE IN EXPLORER
REM __ RUN AS ADMINISTRATOR TO WORK WITHOUT RESTRICTION ERROR WORKER
REM __ HAPPY REGISTRY WORKER
REM _________________________________________________________________

Echo on

Reg.exe add "HKCR\*\shell\OpenWithNotepad" /ve /t REG_SZ /d "Edit with &Notepad++" /f
Reg.exe add "HKCR\*\shell\OpenWithNotepad" /v "icon" /t REG_SZ /d "C:\Program Files (x86)\Notepad++\Notepad++.exe" /f
Reg.exe add "HKCR\*\shell\OpenWithNotepad\Command" /ve /t REG_SZ /d "\"C:\Program Files (x86)\Notepad++\Notepad++.exe\" \"%%1\"" /f

REM GOTO ENDER

Echo off
for /f "delims=" %%a in ('reg query "HKCR\CLSID" /s /f "ANotepad++64" /t REG_SZ') do echo %%a|findstr /v "REG_SZ" | findstr /v /c:"End of search:" >nul && reg.exe delete "%%a" /f

REM for /f "delims=" %%a in ('reg query "HKCR\CLSID" /s /f "ANotepad++64" /t REG_SZ') do echo %%a|findstr /v "REG_SZ" | findstr /v /c:"End of search:" >nul && reg.exe delete "%%a" /f

REM for /f "delims=" %%a in ('reg query "HKCR\CLSID" /s /f "Edit with &Notepad++" /t REG_SZ') do echo %%a|findstr /v "REG_SZ" | findstr /v /c:"End of search:" >nul && reg.exe delete "%%a" /f


GOTO ENDER
:ENDER

PAUSE

REM for /f "delims=" %%a in ('reg query "HKCR\CLSID" /s /f "Notepad+" /t REG_SZ') do echo %%a|findstr /v "REG_SZ" | findstr /v /c:"End of search:" >nul && ECHO test reg.exe delete "%%a" /f

REM for /f "delims=" %%a in ('reg query "%Key%" /s /f %STRING% /t REG_SZ') do (echo %%a | findstr /v "REG_SZ" | findstr /v /c:"End of search:" >nul && ECHO reg.exe delete "%%a" /f)


REM -------------------------------
REM REFERENCE SET _ END OF DOCUMENT
REM -------------------------------
REM MY SEARCH
REM ----
REM batch find a registry entry and delete - Google Search
REM https://www.google.co.uk/search?q=batch+find+a+registry+entry+and+delete&rlz=1C1CHBD_en-GBGB744GB744&oq=batch+find+a+registry+entry+and+delete&aqs=chrome..69i57.9739j0j7&sourceid=chrome&ie=UTF-8
REM --------
REM __ reg query THE DELETE - Google Search
REM __ https://www.google.co.uk/search?q=reg+query+DELETE&rlz=1C1CHBD_en-GBGB744GB744&oq=reg+query+DELETE&aqs=chrome..69i57j69i60j0l4.5631j0j7&sourceid=chrome&ie=UTF-8
REM --------
REM batch pipe the error - Google Search
REM https://www.google.co.uk/search?q=batch+pipe+the+error&rlz=1C1CHBD_en-GBGB744GB744&oq=batch+pipe+the+error&aqs=chrome..69i57j0l4.7793j0j7&sourceid=chrome&ie=UTF-8
REM ----

REM RESULT SEARCH _ LAST ONE IN THE QUE
REM ----
REM [SOLVED] Query & Delete Registry Keys and/or Values w/ Batch Script? - Windows Forum - Spiceworks
REM https://community.spiceworks.com/topic/491050-query-delete-registry-keys-and-or-values-w-batch-script
REM --------
REM Windows Batch: reg query key value to a variable but do not display error if key doesn't exist - Stack Overflow
REM https://stackoverflow.com/questions/5369528/windows-batch-reg-query-key-value-to-a-variable-but-do-not-display-error-if-key
REM --------
REM batch file - Search for data value with Reg.exe and delete parent key - Stack Overflow
REM https://stackoverflow.com/questions/37557055/search-for-data-value-with-reg-exe-and-delete-parent-key
REM --------
REM batch file - Search and Delete registry keys based on ProductName value - Stack Overflow
REM https://stackoverflow.com/questions/17750053/search-and-delete-registry-keys-based-on-productname-value?rq=1
REM --------
REM __ registry - REG DELETE a value which contains quotes in it, inside a batch file? - Stack Overflow
REM https://stackoverflow.com/questions/13041700/reg-delete-a-value-which-contains-quotes-in-it-inside-a-batch-file?rq=1
REM --------
REM batch file - Search and Delete registry keys based on ProductName value - Stack Overflow
REM https://stackoverflow.com/questions/17750053/search-and-delete-registry-keys-based-on-productname-value?rq=1
REM --------
REM Redirecting Error Messages from Command Prompt: STDERR/STDOUT
REM https://support.microsoft.com/en-us/help/110930/redirecting-error-messages-from-command-prompt-stderr-stdout
REM ----

Sunday 17 September 2017

March 03 Fri 2017 __ ASUS-EEE Taken Apart For HardDrive HDD 2TB Upgrade

Hi, There, Trippy Room

One Of My Hardest Laptop Upgrade
and Best Looking to View as Had the Big Screen and Zoom Macro Focus was Clear as Anything
and I Wouldn't have done It For that Magnification those Last Bus Cable
One IDC BUS Connector Over the Hard Drive Had a Locking With Clip Very Hard to Notice
And Keyboard Had Wierd Design Hard to Come Away Without a Screw in the Corner
Very Long Three 3 Part Join All Same Length Full half Hour
to Make 1 Half Hour

Not Part Video Here GrinBook Any More
and Flickr Is a Let Down for Video as Not Show in Full Screen So I Google Mania Youtuber
I Might Put Some Picture video of Wonka Production Line I Do to Make the Full Set

Working Late
Successful Weekend
Cleaned the System
XP Runner Good
Learn to a New Level
Windows 10 If Start Menu Gone
and Make a New User Answer It
If Dual Load Both User Logged on
then the First Start menu Comes Back
all Fixed Again
Chuffed to Bits __ Need to Update the Story Line Helper
Found Out Boots in Safe Mode
and EASYBCD to Extra Menu in Windows 10 BCD
Like Safe Mode  and Command Line Easier to Access
Partition Wizard Pay For Bootable has a Nice Switch to CommandLine if it tells you your disk is dirty then run check disk CHKDSK /F Quicker
If Can Boot in Command Line Do It That Way
and EASYBCD Is Able to Put a Grub4Dos on that is after the Windows 10 Menu 
Often the Grub4Dos Loses after some upgrade or whatever but this one is both One after boot in that can see the one before and call that menu 
somehow it uses both two type of grub4Dos

Also Working on the Notepad and New Level Search and Replace Delete a Reg Key Run in Administrator and Has to Get New Menu Option and take out the Old One Before

551 Word Grammarly 100%

Don't learn how to Share a Video in a playlist Script Now They Seem to Change So Often Maybe that is Not There Anymore
Here the PlayList Script of Wonka Production Lining As Well

https://youtu.be/NduSYbeai_I
----
MAQ08092 2017 March 03 Friday 04 26 57 ASUS EEE TAKE APART FOR HARDDRIVE HDD 2TB NERO 1280x720 - YouTube
https://www.youtube.com/watch?v=NduSYbeai_I
----
----
YouTube
----
----
Hi There Trippy Room One Of My Hardest Laptop... - Matthew Lancaster
----
----
Roids Polaroids Mach 2 HardCore: March 03 Friday __ ASUS-EEE Taken Apart For HardDrive HDD 2TB Upgrade
----

Enjoy the Video
Even if Is Long Video
Over
~
[ Monday 04:41:00 Am_18 September 2017 ] The UK
[ Monday 03:41:00 Am_18 September 2017 ] BST BDT DST DLS 1 Hour Ahead UTC+1 CET

04:41:18 - DarkNess! 82.923%, Opposite 17%
04:41:19 - MOON! Smaller! 3.63%
04:41:50 - Sun Rise . 6 39 and 16 Seconds
04:41:54 - Sun Set . 7 o 6 and 12 Seconds

Moment Here_ Waning Crescent@ Sat 16 Sep 05:25:33
Next Happen_ New Moon@ Wed 20 Sep 05:31:04
in 1 & Day 00:49:39 HMS
Luminousness_  Smaller! 3.638% & Day Before 8.6%
New Moon Age Synodic _ 29.530588853 Day _ 27.38
Angle Of Illumination 333.81

Uni-Time (UT GMT Solar Atomic) Mon 18-Sep-17 03:41:25
The UK TimeZone BST_BDT_DST_DLS 1 Hour Ahead UTC+1 CET

----

Friday 15 September 2017

AutoHotKey -- 14-Brightness.ahk -- Dimmer

All The Coder Project Set Are Now With GitHub
Where Maintain UpToDate All the Time
----
Matthew-Lancaster/Matthew-Lancaster: A Collection of Scripts For AutohotKeys, Dos Batch Command, VBScript, VB6, VB2008, Grub4Dos, Reg Keys, Win Powershell, SMTP
https://github.com/Matthew-Lancaster/matthew-lancaster
----

The Project Here At GitGub
----
Matthew-Lancaster/Autokey -- 14-Brightness With Dimmer.ahk
https://github.com/Matthew-Lancaster/Matthew-Lancaster/blob/master/SCRIPTER%20CODE%20--%20AUTOHOTKEY/Autokey%20--%2014-Brightness%20With%20Dimmer.ahk
----
Editor

[ Tuesday 10:30:00 Am_07 May 2019 ]


Hi, There, Room
Worked On This One Thursday and Friday
Brushing Up on My Technique From Newbie Entry Level at AutoHotKey
The Other Day Had a New System, and Was Code Something Halt at Not Have Proper Registered Driver
and Near Impossible to Check if a Driver is Registered even if Unregister Again it is Still present in Registry to Show
At the End For My JoyPad Controller and Reciever 
Rumble Pad and F710 Logitech
I Had the Code Register the Driver Before the Next Line of Code Ready to Run _, And All Happen Seamlessly
Now It Register the Driver Once a Day 
Check Work_a_Round
I Could Do to Another computer as Only Once
But Sometimes My Reinstall is to the Same Computer Name and User
That Was Another Subject Get to the Point
Here is My Code
I Found Recently Google Does Not Do a Nice Display HTML Page On Google Drive 
But DropBox Does It Nicely
Here The Project Code is For Dimm the Brightness of the Monitor 
Something Better than Screen Saver Blank Switch Off
Unfortunately
Windows 7 Was Okay Dimmer after IDLE Time
but Windows Above Require SECPOL.MSI Running to Set that Thing
Which only Pro Version Pay Extra For Having to Allow Dimmer After IDLE
BackWards About Environmentally Friendly 
Microsoft __ How Dimmer _ Din
Over and Out
~
Fri 15 September 2017 13:11:54----------
----
Roids Polaroids Mach 2 HardCore: AutoHotKey -- 14-Brightness.ahk -- Dimmer
http://roidsrim-minimal.blogspot.co.uk/2017/09/AutoHotkey--14-Brightness.ahk--Dimmer.html
----
----
Hi, Room Worked On This One Thursday and Friday... - Matthew Lancaster
https://www.facebook.com/matthew.lancaster.4/posts/10208906605496145?comment_id=10208906608336216&comment_tracking=%7B%22tn%22%3A%22R%22%7D
----
----
Hi, Room Worked On This One Thursday and Friday Brushing Up on My Technique Fr...
https://plus.google.com/u/0/+RoidsRim-0/posts/LxaXsLkHD12
----

;# __ C:\SCRIPTER\SCRIPTER CODE -- AUTOKEY\AutoKey -- 14-Class_Monitor-master\src\AutoKey -- 14-Brightness.ahk
;# __ AutoKey -- 14-Brightness.ahk
;# BY Matthew __ Matt.Lan@Btinternet.com __ Fri 15 September 2017 & Saturday
;# 
; GLOBAL SETTINGS ===================================================

#Warn
#NoEnv
#SingleInstance Force
#Persistent
;IT USER ExitFunc TO EXIT FROM #Persistent
;--------------------

#Include C:\SCRIPTER\SCRIPTER CODE -- AUTOKEY\AutoKey_14_Class_Monitor-master\SRC\Class_Monitor.ahk     ; include the class here

;# ------------------------------------------------------------------
;# ----
;# GitHub - jNizM/Class_Monitor: Monitor Class (WinAPI)
;# https://github.com/jNizM/Class_Monitor
;# ----
;# ----
;# Class Monitor (Brightness, ColorTemperature) - AutoHotkey Community
;# https://autohotkey.com/boards/viewtopic.php?f=6&t=7854
;# ----
;# ------------------------------------------------------------------
;# HITT CLONE OR DOWNLOAD __ DON'T HAVE TO BE A SIGNED UP MEMBER
;# Class_Monitor.ahk __ PUT THIS IN A FOLDER WITH THIS CODE OR VICE VERSA YOUR CODE HERE IN THIS FOLDER
;# UNLIKE THE DIM CONTROL OF COMPUTER STANDBY THAT NOT WORKING WELL ABOVE WINDOWS 7
;# YOU REQUIRE SECPOL.MSI TO RUN WHICH REQUIRE PRO VERSION NOT HOME VERSION
;# ALSO HERE __ THIS SET THE BRIGHTNESS OF ALL MONITOR
;# BUT EXTERNAL MONITOR CAN EASY BE SWITCHED OF AT NIGHT OTHER LEFT ON AND BRIGHT ON YOUR EYE
;# THAT IS GOOD FOR YOU
;# ALSO UNLIKE DIM CONTROL ALL MONITOR IS ANSWER IT SET A DIFFERENT KIND OF BRIGHTNESS 
;# ADJUSTMENT _ I THINKER __ THAT WHY ALL MONITOR GET SET INCLUDE HDMI ON 
;# WHERE DIM CONTROL USUAL NOT AFFECTING
;# BUT HERE CONTROL SCAN ALL MONITOR
;# SEEM BUG IN CODE AS NOT ABLE USE PART WHERE A CERTAIN ONE MONITOR
;# GOOD NIGHT OVER AND OUT 
;# Fri 15 September 2017 01:09:04----------
;# 
;# TO LATER ADD WORK TO DO _ NOT DIM SCREEN SAVER WHEN CERTAIN ACTIVITY PROGRAM RUNNER
;# DONE
;# TO LATER ADD WORK TO DO _ SEND A DIMMER WHEN MOUSE CLICK OVER ONE SIDE OF THE SCREEN 
;# FOR A TIME OR OFF AGAIN
;#
;# SOME OF THE IDLE ROUTINE ABOUT WERE CODED IN 2005 WHEN WINDOWS_98 WAS AROUND
;# THESE DIMMER ROUTINE ARE CURRENTLY
;#
;# ENERGY PROBLEM OVER
;# ------------------------------------------------------------------
;# WHY PAY FOR PRO TO HAVE ENERGY FEATURE
;# --------------------------------------
;# 1ST EVENT OF DIMMER IS IN 4 SECOND IDLE NEXT AFTER ARE IN 2 MINUTE
;# ------------------------------------------------------------------
;# WORK HISTORY
;# ------------------------------------------------------------------
;# Fri 15 September 2017 01:09:04---- ABOVE WORK BEGINNER
;# ------------------------------------------------------------------
;# Wed 21 March     2018 02:10:21---- Work to Detect Explorer Was Active ;# As it Remains Present When Closed and Minimal Sometimes Error There 
;# had to be Resolved _ Explorer and Other Program make Quicker Timeout ;# Brightness Change _ Few Hour-ing
;# ------------------------------------------------------------------

;#InstallKeybdHook
;#InstallMouseHook
;# IF YOU GOT ANYTHING KEYBOARD HOOKING SENDING A KEY OR MOUSE
;# AND USE HERE A_TimeIdlePhysical __ INSTEAD OF A_TimeIdle
;# ONLY Physical INPUT NOT SIMULATED SENDER

;# TRICK PART OF CODE IS MANY DON'T TELL HAVE TO FIND IDLE AS WELL ALSO THE ACTIVE PART
;# ALL VERY WELL SWITCH THE SCREEN SAVER ON BUT____ AND THEN OFF SCREEN SAVER

OnExit, EOF                                  ; set onexit to the label "EOF"
Display := New Monitor()                     ; initialize / start the class

; SCRIPT ============================================================

DetectHiddenWindows, on

CoordMode, Mouse, Screen
Mouse_Idle = 0 
Mouse_Idle_Flip_Flop_Toggle := "True"
ALLOW_DIMMER := "True"
LastX = 0
LastY = 0
VAR_A__TimeIdle = 0
VAR_Z__TimeIdle_1 = 4000
VAR_Z__TimeIdle_4_DEFAULT = 80000 ; 4 MINUTE
VAR_Z__TimeIdle_3_FORCE = 2000 
VAR_Z__TimeIdle_2 = %VAR_Z__TimeIdle_2_DEFAULT%
VAR_Z__TimeIdle = %VAR_Z__TimeIdle_1%
OLDWinActive = 0
WinActive_2 = 0

SoundBeep , 1000 , 100
SoundBeep , 3000 , 100
GOSUB, MONITOR_BRIGHTNESS_UP


SetTimer,Mouse_Idle_Timer, 1000     ; Check Every Second
setTimer TIMER_PREVIOUS_INSTANCE,4000


;# ------------------------------------
Mouse_Idle_Timer:
DetectHiddenWindows, on
ALLOW_DIMMER := "True"

;if WinActive("ahk_class MediaPlayerClassicW")
;ALLOW_DIMMER := "False"
;# If WinExist("ahk_class MediaPlayerClassicW")
;# ALLOW_DIMMER := "False"

;# if WinActive("ahk_class Notepad++")
;# ALLOW_DIMMER := "False"



isFullScreen := isWindowFullScreen( "A" ) ; ActiveWindow
if isFullScreen 
ALLOW_DIMMER := "False"

SetTitleMatchMode, 2
FORCE_DIMMER_QUICKER := "FALSE"
VAR_Z__TimeIdle_2=%VAR_Z__TimeIdle_4_DEFAULT%
DetectHiddenWindows, off
WinActive_2 = 0
if WinActive("GoodSync")
    {
        VAR_Z__TimeIdle_2=%VAR_Z__TimeIdle_3_FORCE%
        VAR_Z__TimeIdle = %VAR_Z__TimeIdle_2%
        WinActive_2 = 1
    }

if WinActive("Notepad++")
    {
        VAR_Z__TimeIdle_2=%VAR_Z__TimeIdle_3_FORCE%
        VAR_Z__TimeIdle = %VAR_Z__TimeIdle_2%
        WinActive_2 = 1
    }

;# EXPLORER    
;# --------
#IfWinActive ahk_class CabinetWClass
    {
    isWindowFocusExplorer_2 := isWindowFocusExplorer( "A" ) ; ActiveWindow
    if isWindowFocusExplorer_2
        {
        VAR_Z__TimeIdle_2=%VAR_Z__TimeIdle_3_FORCE%
        VAR_Z__TimeIdle = %VAR_Z__TimeIdle_2%
        WinActive_2 = 1
        }
    }
    
IF (OLDWinActive=0 and WinActive_2=1)
    { 
        ;SoundBeep , 2000 , 100
        GOSUB, MONITOR_BRIGHTNESS_DIM
    } 
OLDWinActive=%WinActive_2%


GetKeyState, state, LButton
   if state = D              
; MOUSE BUTTON LEFT HELD DOWN WHEN DRAGGER FOR LONG NOT DETECT BY IDLE ACTIVE UNLESS SWITCH
ALLOW_DIMMER := "False"


;#-------------------------------
If (A_TimeIdle > VAR_Z__TimeIdle and ALLOW_DIMMER = "True")
{
 VAR_Z__TimeIdle = %VAR_Z__TimeIdle_2%
 GOSUB, MONITOR_BRIGHTNESS_DIM
}
GOSUB, Keyboard_Idle_Timer
;#-------------------------------
Return ; End of Mouse_Idle_Timer

;# ------------------------------------------------------------------
Keyboard_Idle_Timer:
;# Tooltip % + A_TimeIdle " -- " VAR_A__TimeIdle 
;TEST DEBUG ___________

IF (A_TimeIdle < VAR_A__TimeIdle)
{
;SoundBeep , 2500 , 100
;TEST DEBUG ___________

GOSUB, MONITOR_BRIGHTNESS_UP
}
VAR_A__TimeIdle = %A_TimeIdle%

;# A_TimeIdle - SHOW TIME SINCE LAST KEYBOARD OR MOUSE IN MILLISECOND
;# THE DETECT IS IF LOWER THAN
;# ---------------------------
return

;# ------------------------------------------------------------------
MONITOR_BRIGHTNESS_DIM:
If (Mouse_Idle_Flip_Flop_Toggle = "False")
{
    ;# BRIGHTNESS LOW 1 IS MINIMAL DIMMER
    IF WinActive_2=0
    { 
        SoundBeep , 1500 , 100
    }
    Monitor.SetBrightness(1, 1, 1)
    SetTimer,Mouse_Idle_Timer, 10 ; RAPID RESPONSE BRING OUT OF DIM
    ;# SET TIMER TO THE SECOND 1000MS FOR EASIER COUNTER TIME_OUT
    Mouse_Idle_Flip_Flop_Toggle := "True"
}
RETURN

;# ------------------------------------------------------------------
MONITOR_BRIGHTNESS_UP:
If (Mouse_Idle_Flip_Flop_Toggle = "True")
{
    ;SoundBeep , 2500 , 100
    ;# BRIGHTNESS UP 50% IS 100% __ Full Bright
    Monitor.SetBrightness(127, 127, 127)
    SetTimer,Mouse_Idle_Timer, 1000
    Mouse_Idle_Flip_Flop_Toggle := "False"
}
RETURN

;# ------------------------------------------------------------------
isWindowFocusExplorer( winTitle ) {
winID := WinExist( winTitle )
If ( !winID )
    Return false
WinGetClass, this_class, ahk_id %winID%
WinActiveExplorer=false

If this_class=CabinetWClass
    WinActiveExplorer=true
If this_class=ExploreWClass
    WinActiveExplorer=true

WinGet style, MinMax, ahk_id %WinID%
;tooltip, %style%

if WinActiveExplorer=false
    Return false

;1 maximized 0 normal -1 minimized
If style=-1
{
    ;SoundBeep , 2500 , 100
    Return false
}

Return true
}


;# ------------------------------------------------------------------
isWindowFullScreen( winTitle ) {
; checks if the specified window is full screen

winID := WinExist( winTitle )

If ( !winID )
    Return false

WinGet style, Style, ahk_id %WinID%
WinGetPos ,,,winW,winH, %winTitle%

; 0x800000 is WS_BORDER.
; 0x20000000 is WS_MINIMIZE.
; no border and not minimized

Return ((style & 0x20800000) 
or winH < A_ScreenHeight 
or winW < A_ScreenWidth) ? false : true

;# ----
;# Detect Fullscreen application? - Ask for Help - AutoHotkey Community
;# https://autohotkey.com/board/topic/38882-detect-fullscreen-application/
;# ----
}



TIMER_PREVIOUS_INSTANCE:

if ScriptInstanceExist()
{
    Exitapp
}
return

ScriptInstanceExist() {
    static title := " - AutoHotkey v" A_AhkVersion
    dhw := A_DetectHiddenWindows
    DetectHiddenWindows, On
    WinGet, match, List, % A_ScriptFullPath . title
    DetectHiddenWindows, % dhw
    return (match > 1)
    }
Return

;# ------------------------------------------------------------------
EOF:                           ; on exit
Display.OnExit()               ; release and free the library
ExitApp     
;# ------------------------------------------------------------------

; Register a function to be called on exit:
OnExit("ExitFunc")

; Register an object to be called on exit:
OnExit(ObjBindMethod(MyObject, "Exiting"))

;# ------------------------------------------------------------------
ExitFunc(ExitReason, ExitCode)
{
    if ExitReason not in Logoff,Shutdown
    {
        ;MsgBox, 4, , Are you sure you want to exit?
        ;IfMsgBox, No
        ;    return 1  ; OnExit functions must return non-zero to prevent exit.
    }
    ; Do not call ExitApp -- that would prevent other OnExit functions from being called.
}

class MyObject
{
    Exiting()
    {
        ;
        ;MsgBox, MyObject is cleaning up prior to exiting...
        /*
        this.SayGoodbye()
        this.CloseNetworkConnections()
        */
    }
}
;# ---------------------------------------------------------------------
; exit the app