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
Showing posts with label 2018. Show all posts
Showing posts with label 2018. Show all posts

Monday, 30 July 2018

Logitech Z533 2.1 Speaker System – Sleep Problem Solved

2018 07 19 Jul Thu 10 58 21 _ Logitech Z533 Speaker Standby Sleep Mode
Removed _ Circuit Delay Control Gear 22 Min

Hi There Internet Land

How to Stop the Logitech Z533 Speaker or Any Sleep Mode Speaker Going Into Standby Quite Mode 
It Quite an Advanced Project This One_ Example Is Here
Current Forums Show Not Anyone Has Worked It Out But ME
It User a Reed Relay Put Inside the Speaker with a POT to Adjust Calibrate the Volt to 5V that Acts as When Speaker On the Contact of Switch is Made Or Else Broken
That Has to Be Debounced a Little Bit So Into a 555 Delay IC 
That Then Goes Into an Inverter IC 4069 for the Final Stage Has to Be Trigger High Which I Use a Module From Hong Kong Delay Timer Simple Because It Was Easier to Make the Next Delay Which Had to Be Around 20 Seconds the Delay Happens on Trigger and then the Circuit Broken and Logitech Speaker Has Not Any Power for 20 Seconds and then Restored to Power 
That is the Whole Circuit Loop
Standby Happens Same as Turn the Volume Knob Down to Off
And Then All Volume is Gone
Which is Annoying and Having to Keep the Volume Up 3 Quarters Full Sonic Blasts Your Ears and Your Neighbors Start Complaining
This Reset and Removes the Standby You Miss Audio for 20 Seconds but Better than None at All
Otherwise, If You Wanted to Shop Around for Another Better Pair of These Learn That Don't Have It Sleep Mode Which Nearly All Have it on the Market Now
Except for Edifier Make But They are Less Wattage for Money Value and they Include an MP3 From Media Card Player Extras which Add Up the Price
It Seems Stupid the AMP Meter I Shown Reads 0.025 AMP In Standby Mode and 0.050 AMP When Playing 
It Hardly Seems Worth It What are Logitech Playing At
The Whole Power Supply Is Still Powered Up and They Should Have a Little PSU It Supplies to the One Main Board PCB where the AMP Driver Is But Seem that AMP is Switched off But Still Could have Been Done if Not for Cutting Cost not to Have Extra Parts and with a Lower AMP PCB Also On the Main PCB for Standby Mode
If You Really Wanted to Do IT
But PC Users Want Speakers to Run All the Time while the Computer is On
Not Just While One DVD Film Went By
Expensive on that One
Another Way Is Make a Simple Timer and Trip It Out Every About 1 Hour or Less But And Then Less Superior Example Your Watching a Favourite Program Loud and Suddenly Speaker Out Silent for 20 Second Ha Ha
The Parts Take Trail and Error
Reed Relay 5v
Potentiometer Variable Resistor
10k Resistor
1 Meg Resistor and 
10uf Cap 
Pair Above Make Few Second Delay into a
555 IC
4069 CMOS Inverter IC
VERO Board _ BreadBoard Testing
Solder _ Soldering Iron
Multi Meter
Heat Shrink
Electrical Wire Solid Core Single Wire Two Colour Version _ 2 Core Mains Wire
Delay Program 4 Mode Module From Hong Kong Has
Time Range 99 Second in Tenths Second or 99 Minute or 99 Hour and I 4 Program Mode Play Still Available But Better Are Come Along Longer Timer and More Program Mode as We Speak
It Is 12 volt and 3 Button
HotKey-Capture- 2019-02-17 00-11-54 Sun.jpg
----
HK DC 12V Delay Time Switch Module Cycle Timer Control Relay Multifunction X6Y1 191466914632 | eBay
https://www.ebay.co.uk/itm/HK-DC-12V-Delay-Time-Switch-Module-Cycle-Timer-Control-Relay-Multifunction-X6Y1/302956368198?epid=2153292793&hash=item46899b5146:g:JE0AAOSwbbdbAlRw
----
£2.70 Free Shipping Hong Kong


Volex Double Gang Plug and 50 mm Back Box
The Volex From China Hong Kong Has Nice Big NEON Pair Each Plug Socket
Get them From CPC Careful of Picture Description Bit Slacker About This One
Pay a  Bit More Get Something Better
Always Good to See It Working First Off
HotKey-Capture- 2019-02-17 00-33-12 Sun.jpg
----
2 Gang SP Switched Socket with Neon - VOLEX ACCESSORIES | CPC UK
https://cpc.farnell.com/volex-accessories/gb6-vx1600/2-gang-sp-switched-socketneon/dp/PL12758
----
£5.71 Not Include The 50mm Back Box

Control Gear Low Volt to Mains 25 Amp _ Solid State Relay SSR
Happy Hunter _ They Do Last a Long Time and Have a LED in Them Now-a-Day to Show When Active Switched On _ If They Ever Blow And Then the Will Be Switched On Permanently Try and Wire It so Easier to Replace Quicker
Hunt For Low Price Required Include Search Shop Front Within Ebay If You Want Low Pricing orTake What 1st Find And Higher Pricing
Ought Not to Be a Lot Few Quid for One or Less And Wait From HK or
Searcher UK Seller Quick Delivery Might Have Her

And A 12v PSU Low AMP Transformer-less PSU
From Thailand
They Work in 12V 9V or 6V By Snip the Linker Wire
Very Miniature and that is Good For Here
Look Like Have It Very Big Capacitor on There Instead of Transformer
And Then Bridge Rectify Circuit to DC Current
I Use them a Lot on Double Gang Box for Control Gear PIR Timer Device Thing
HotKey-Capture- 2019-02-17 00-20-48 Sun.jpg
----
AC-DC 220VAC to 6V / 9V /12V 50mA Transformerless Assembled kit [FA817] | eBay
https://www.ebay.com/itm/131253162027?ViewItem=&item=131253162027
----
£5.25 For 1 or $6.49 and Discount Delivery By Half for 2 = $11.73


All Add's Up On Top _ I Don't Fancy Doing Another One I Got Edifier Speaker Upstairs with Logitech and They Will Do 

22 Minutes Video

2018_07_19 Jul_Thu 10_58_21__MAQ01563 _ Logitech 533 Speaker Standby Mode Removed Circuit Delay Control Gear

1284 Word Counter Set
https://app.grammarly.com/

Over and Out
~
Matthew

[ Tuesday 21:02:00 Pm_24 July 2018 ] YouTube
[ Monday 13:22:00 Pm_30 July 2018 ] Blogger Here
[ Sunday 00:38:00 Am_17 February 2019 ] Editor Extra Detail Imager Buy
[ Tuesday 10:28:00 Am_07 May 2019 ] Edit Wordin 
----

2018 07 19 Jul Thu 10 58_ Logitech Z533 Speaker Standby Mode Removed Circuit Delay Control Gear 22 Min - YouTube
----

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

----
Hi Room I Made This One Last Thursday and Post... - Matthew Lancaster
----

All Search Engine Links that Never Found the Answer
Including a Lot at Logitech Forum
Most at Logitech Forums Haven't Got an Electronics Mind by the Looks of It to Complete This if the Suggestion was there
All Border on the Same Answer Turn the Volume Up and Down
Toms Guide has a Sub Sonic Low-Frequency Sound File Playing Answer But That Doesn't Work
Spabbit & Toms Guide as Closed for Messages and was a Couple of Year Back
And Still for Sale at a Large Price
Some People Sell Them On Gladly _ Others Chuck them in the Bin
Shame to Waste them

Nice if I a Got a Few Hitt Counter to Show Recognition for a Provided Answer

----
LOGITECH Z533 Multimedia 2.1 PC Speakers Deals | PC World
----
----
Logitech Z533 2.1 Speaker System – Sleep problem solved! | @Spabbit
--------
Prevent Speaker's Standby Mode [Solved] - Peripherals - Audio
--------
Z333 (2.1Ch) - Standby WHY and how to turn it off!?!
--------
Z533 just sleeps by itself automatically
--------
Z533 sleep mode
--------
Z533 standby?
--------
Z533 speakers turn off randomly
----

Saturday, 21 April 2018

Autokey -- NORTON CONTROL BOOTER -- Run Norton Quick Check at Boot Up

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 -- 18-NORTON CONTROL BOOTER.ahk
https://github.com/Matthew-Lancaster/Matthew-Lancaster/blob/master/SCRIPTER%20CODE%20--%20AUTOHOTKEY/Autokey%20--%2018-NORTON%20CONTROL%20BOOTER.ahk

----

Editor
[ Tuesday 10:30:00 Am_07 May 2019 ]

;====================================================================
;# __ C:\SCRIPTER\SCRIPTER CODE -- AUTOKEY\Autokey -- 18-NORTON CONTROL BOOTER.ahk
;# __ 
;# __ Autokey -- 18-NORTON CONTROL BOOTER.ahk
;# __ 
;# BY Matthew __ Matt.Lan@Btinternet.com
;# __ 
;# 1ST START TIME [ Wed 02:32:20 Am_15 Nov 2017 ]
;# 2ND END   TIME [ Wed 04:14:50 Am_15 Nov 2017 ]
;# 3RD FINAL TIME [ Wed 07:00:40 Am_15 Nov 2017 ]
;# 4TH FROM  TIME [ Sat 16:00:22 Pm_21 Apr 2018 ]
;# 4TH TO    TIME [ Sat 19:10:00 Pm_21 Apr 2018 ] 3 HOUR _ Skillful Improver
;# 5TH FROM  TIME [ Sun 23:00:00 Pm_22 Apr 2018 ] 
;# 5TH TO    TIME [ Sun 23:59:00 Pm_22 Apr 2018 ] 32 Bit 64 Bit Sort Out
;# 6TH FROM  TIME [ Mon 15:40:00 Pm_23 Apr 2018 ] 
;# 6TH TO    TIME [ Mon 15:59:00 Pm_23 Apr 2018 ] Shortcut Desktop Norton 
;# 7TH FROM  TIME [ Mon 18:00:00 Pm_23 Apr 2018 ] 
;# 7TH TO    TIME [ Mon 18:40:00 Pm_23 Apr 2018 ] Minimize Amount Code Searcher Neater
;# __ 
;====================================================================

;# ------------------------------------------------------------------
; An AutoHotKeys Project to Start Norton for a Quick Scan 
; Every Time Boot Up
; It Got Folder Scanning to Find the Up to Date Norton to Use
;# ------------------------------------------------------------------
; Location OnLine
; ---------------
; Link to Folder of My AutoHotKeys Project Set
; https://drive.google.com/open?id=0BwoB_cPOibCPVmVYT1pKWUk4LVE

; Link to Folder of My AutoHotKeys Project Set Dropbox
; https://www.dropbox.com/sh/h2ebk12dksaq7j3/AAD9Ow_SbBP33JKmuALRkO1_a?dl=0

; Link to This File On DropBox With Most Up to Date
; https://www.dropbox.com/s/bsvrrmyknxr7pvd/Autokey%20--%2018-NORTON%20CONTROL%20BOOTER.ahk?dl=0
;# ------------------------------------------------------------------

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

DetectHiddenWindows, on

PASS_LEVEL_VAR_1=FALSE
PASS_LEVEL_VAR_2=FALSE
Counter_Minimze_1=0
Counter_Minimze_2=0
HWND_1=0
HWND_2=0

SoundBeep , 2000 , 100
SoundBeep , 2500 , 100

setTimer TIMER_SUB_1,1000
setTimer TIMER_PREVIOUS_INSTANCE,1
SetTimer TIMER_TEST,off

GOSUB RUN_NORTON

RETURN

TIMER_TEST:    
    WinGet, HWND, ID, A  ; Get Active Window
    WinGet, OutputVar, ControlList, ahk_id %HWND%
    Tooltip, % OutputVar ; List All Controls of Active Window
return

RUN_NORTON:
SET_GO=TRUE
FILENAME="" 

IfWinExist ahk_class SymHTMLDialog 
    SET_GO=FALSE
IfWinExist ahk_class Sym_Common_Scan_Window
    SET_GO=FALSE

IF SET_GO=TRUE
{
    ProgramFilesX86 := A_ProgramFiles . (A_PtrSize=8 ? " (x86)" : "")

    ; 32 bit Norton Installed
    IF FILENAME="" 
    {    
        Loop Files, %ProgramFilesX86%\Norton Security with Backup\Navw32.exe, R  ; Recurse into subfolders.
        {
            FILENAME = %A_LoopFileFullPath%
            SHORTCUT_FILENAME = %A_LoopFileDir%\uistub.exe
        }
    }
    ; 64 bit Norton Installed
    IF FILENAME="" 
    {
        Loop Files, %A_ProgramFiles%\Norton Security with Backup\Navw32.exe, R  ; Recurse into subfolders.
        {
            FILENAME = %A_LoopFileFullPath%
            SHORTCUT_FILENAME = %A_LoopFileDir%\uistub.exe
        }
    }
    
    ; -------------------------------------------------------------
    ; DOUBLE BACKUP IF NORTON IS NOT FOUND
    ; THEY MAY OF CHANGED THE FOLDER NAME KEPT AT
    ; MAKE SOME MORE SOUND TO INDICATE SOMETHING IS UP 
    ; FIND THE CORRECT NEAREST LOCATION OF NORTON AND EDIT IN ABOVE
    ; -------------------------------------------------------------
    
    ; 32 bit Norton Bigger Search
    IF FILENAME="" 
    {
        SoundBeep , 2000 , 100
        SoundBeep , 2500 , 100
        SoundBeep , 3500 , 100

        Loop Files, %ProgramFilesX86%\Navw32.exe, R  ; Recurse into subfolders.
        {
            FILENAME = %A_LoopFileFullPath%
            SHORTCUT_FILENAME = %A_LoopFileDir%\uistub.exe
        }
    }

    ; 64 bit Norton Bigger Search
    IF FILENAME="" 
    {
        SoundBeep , 2000 , 100
        SoundBeep , 2500 , 100
        SoundBeep , 3500 , 100

        Loop Files, %A_ProgramFiles%\Navw32.exe, R  ; Recurse into subfolders.
        {
            FILENAME = %A_LoopFileFullPath%
            SHORTCUT_FILENAME = %A_LoopFileDir%\uistub.exe
        }
    }

    IF FILENAME="" 
    {
        SoundBeep , 3500 , 100
        SoundBeep , 2500 , 100
        MSGBOX, "AutoHotkeys __ Norton Security Was Not Found - ENDER"
        SoundBeep , 3500 , 100
        SoundBeep , 2500 , 100
        Exitapp
    }
    
    IF FILENAME<>"" 
    {
        SoundBeep , 2000 , 100
        Run, "%FILENAME%" /UPDATE /QUICK, , MIN
        FileCreateShortcut, %SHORTCUT_FILENAME%, %A_Desktop%\Norton Security.lnk, , "%A_ScriptFullPath%"
    }
}
RETURN

TIMER_SUB_1:
    WinGet, HWND_1, ID, ahk_class SymHTMLDialog
    IF (HWND_1>0 and PASS_LEVEL_VAR_2="FALSE")
    {
        WinActivate ahk_id %HWND_1%
        HWND_3 := WinExist("A")
        IF HWND_1=%HWND_3%            
        {
            sendinput, !{F4}
            SoundBeep , 2500 , 100
            Sleep 1000
        }
        ELSE
            SoundBeep , 1500 , 200    
    }
    
    WinGet, HWND_1, ID, ahk_class SymHTMLDialog
    IF HWND_1>0 
        PASS_LEVEL_VAR_1=TRUE
    WinGet, HWND_2, ID, Quick Scan ahk_class Sym_Common_Scan_Window
    IF HWND_2>0 
        {
        PASS_LEVEL_VAR_1=TRUE
        PASS_LEVEL_VAR_2=TRUE
        }
        
    WinGet, HWND_2, ID, Quick Scan ahk_class Sym_Common_Scan_Window
    WinGetClass, This_Class, ahk_id %HWND_2%
    WinGet, Current_MinMax, MinMax, ahk_id %HWND_2%

    if Counter_Minimze_1=0
    Counter_Minimze_2=0
    
    If (Current_MinMax=-1 
        and Counter_Minimze_1>0)
        Counter_Minimze_2=14
    
    If (Current_MinMax=0 and Counter_Minimze_1<2 and Counter_Minimze_2<1)
    {
        WinMinimize  ahk_id %HWND_2%
        SoundBeep , 2500 , 100
        SoundBeep , 3500 , 100
        Counter_Minimze_1+=1
    }
    Counter_Minimze_2-=1
    if Counter_Minimze_2<-10
        Counter_Minimze_2=-10
        
    If (PASS_LEVEL_VAR_1="TRUE" and PASS_LEVEL_VAR_2="TRUE" and (!HWND_1) and (!HWND_2))
        {
        SoundBeep , 3500 , 100
        SoundBeep , 2500 , 100
        Exitapp
        }
Return


;# ------------------------------------------------------------------
TIMER_PREVIOUS_INSTANCE:
SETTIMER TIMER_PREVIOUS_INSTANCE,10000

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
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()
        */
    }
}
;# -----------------------------------------------------------------0
; exit the app


; GOOD SCRIPT EXAMPLE PAGE HELPER
; ----
; 1 Hour Software by Skrommel - DonationCoder.com
; http://www.donationcoder.com/Software/Skrommel/index.html#GoneIn60s
; ----

; Junk Code Been Try
;Is64Bit() 
;{
   ;return (RegexMatch(EnvGet("Processor_Identifier"), "^[^ ]+64") > 0)
;}

AutoKey -- 02-(SAVE AS) KEY ENTER.ahk

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 -- 02-SAVE AS KEY ENTER.ahk
https://github.com/Matthew-Lancaster/Matthew-Lancaster/blob/master/SCRIPTER%20CODE%20--%20AUTOHOTKEY/Autokey%20--%2002-SAVE%20AS%20KEY%20ENTER.ahk
----
Editor

[ Tuesday 10:30:00 Am_07 May 2019 ]


AutoHotKeys Project Code to Use Press Enter Key on (Save As) Window Dialogue in Chrome.exe & Pause On a Timer 120 Sec When Chrome.exe Gone

Over
~
Matthew
[ Saturday 08:41:40 Am_21 April 2018 ]

----------
CODE BEGIN
----------
;# __ C:\SCRIPTER\SCRIPTER CODE -- AUTOKEY\Autokey -- 02-SAVE AS KEY ENTER.ahk
;# __ 
;# __ Autokey -- 02-SAVE AS KEY ENTER.ahk
;# __ 
;# BY Matthew __ Matt.Lan@Btinternet.com
;# __ 
;# Thu 25 Aug 2016 01:47:51 Work Time Beginner
;# Thu 25 Aug 2016 03:00:00 3 Hour
;# Thu 25-Aug-2016 06:16:41 2nd Wave of Work Better Coder Emerged
;# Thu 25-Aug-2016 16:31:00 40 Minute
;# Thu 25-Aug-2016 11:20:00 3RD WAVE 
;# Thu 25-Aug-2016 16:31:00 5 & Half Hour
;# Sat 21-Apr-2018 07:24:30 4TH WAVE Massively Better
;# Sat 21-Apr-2018 08:28:00 1 Hour
;# __ 

;--------------------------------------------------------------------
; AutoHotKeys Project Code to User Press Enter Key on (Save As) Window  Dialogue in Chrome.exe & Exit On a Timer 120 Sec When Chrome.exe Gone

;
;--------------------------------------------------------------------
; First Wave Bash
; ---------------
; Thu 25 Aug 2016 01:47:51 -- Length Time 1hr 45M - Finish Code
; Thu 25 Aug 2016 02:35:00 -- Length Time+2hr 30M - Fine Tune & Doc
; Thu 25 Aug 2016 03:00:00 -- Length Time+3hr 00M - Publish On-line

; A Second Session Bash __ Dawn
; ------------------------------------------------
; Thu 25-Aug-2016 06:16:41 --
; Thu 25 Aug 2016 07:00:00 -- Length Time 0 hr 40 Min -- Tune Doc & Publish

; A Third Session Bash __ Morning
; Thu 25-Aug-2016 11:20:00 
; Thu 25-Aug-2016 14:59:29
; Thu 25-Aug-2016 16:31:00 -- 11 TO 4pm 5 Half Hour Hurt Ouch

; A Fourth Session Improved Code Dramatically
; ------------------------------------------
; Sat 21-Apr-2018 07:24:30 -- BEGINNER
; Sat 21-Apr-2018 08:28:00 -- 1 HOUR WITH PUBLISH ON-LINE
;--------------------------------------------------------------------

;--------------------------------------------------------------------
; 2nd Project in a Line of AutoKey -- First On Blogger Here
; This is All Copy Paste in and Go Project for AutoHotKeys Working
; Building Block Head Start
;--------------------------------------------------------------------


; BEGIN CODE
;--------------------
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

#SingleInstance force
;--------------------
; SingleInstance Force Reduce Question at Reload
;--------------------

;--------------------------------------------------------------------
#Persistent
; A code block to use around --- Persistent

;--------------------------------------------------------------------

SoundBeep , 2000 , 200
SoundBeep , 2500 , 100

pause
soundbeep , 1100,100

SetTimer TIMER_Main_Code,1000
SetTimer TIMER_PREVIOUS_INSTANCE,1

Return

;----------------------------------------------------------------------
TIMER_Main_Code:

    If WinExist("ahk_class Chrome_WidgetWin_1")
    {
        WinGet, HWND, ID, Save As
        WinGetClass, This_Class, ahk_id %HWND%
        WinGet, path, ProcessName, ahk_id %HWND%
        WinGetText, OutputVar, ahk_id %HWND%
        WinGetPos, WinLeft, WinTop, WinWidth, WinHeight, ahk_id %HWND%

        ; Multiple If-And Statement With Separated Lines
        ; ----------------------------------------------
        IF (This_Class="#32770" 
        and PATH="Chrome.exe")
        {
            SoundBeep , 1200, 100
            SoundBeep , 2500 , 100
            ControlClick, &Save, Save As
        }
    }
    
    WinGet, HWND, ID, A
    WinGetClass, This_Class, ahk_id %HWND%
    IF This_Class=Chrome_WidgetWin_1 
        Var_Count = 0

    IF This_Class <> Chrome_WidgetWin_1 
        Var_Count += 1
        
    if Var_Count > 120
        {
            SoundBeep , 1100,100
            Pause
            SoundBeep , 1100,100
            Var_Count = 0
        }
Return

TIMER_PREVIOUS_INSTANCE:
SetTimer TIMER_PREVIOUS_INSTANCE,10000
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
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


;--------------------------------------------------------------------
; Work Note Rather Novice at First Began
;--------------------------------------------------------------------
; Yes Fixed the Error Variable Increment -- Seem Like a C++ Method Style -- TEST_VAR += 1

; This Program Has Problem in Win 10 The Dialog to Save Do Stay So Move On After Save to Next Icon to Do Save JPG Screenshot
; ----
; Save as Shortcut - Chrome Web Store
; https://chrome.google.com/webstore/detail/save-as-shortcut/flehofiklehmnnolpjcamplcnmhgcbkk?utm_source=chrome-app-launcher-info-dialog
; ----

; A Tip to Learn With This Program is 
; When Ask to Save Select JPG From PNG and It will Remember
; ----
; Capture Webpage Screenshot Entirely. FireShot - Chrome Web Store
; https://chrome.google.com/webstore/detail/capture-webpage-screensho/mcbpblocgmgfnpjjppndjkmgjaogfceg?utm_source=chrome-app-launcher-info-dialog
; ----
;--------------------------------------------------------------------
; Work Logg -- Start time not that clear
; Yes Found Time Begin Phew Charging Someone for This Automation -- RSI Injury


;--------------------------------------------------------------------
;--------------------------------------------------------------------
; Info Note
;--------------------------------------------------------------------

; Use of these 4 Link in Turn to Save Page of the Chrome Extension
;--------------------------------------------------------------------
; 1.. Copy All Urls - Chrome Web Store
; 2.. Save as Shortcut - Chrome Web Store
; 3.. Capture Webpage Screenshot Entirely. FireShot - Chrome Web Store
; 4.. SingleFile - Chrome Web Store -- to Save an HTML Version
;--------------------------------------------------------------------

;--------------------------------------------------------------------
;--------------------------------------------------------------------
;Ref: - Credit to Source Helper Ref:
;--------------------------------------------------------------------
;--------------------------------------------------------------------
;AutoKey Source to Learn
;--------------------------------------------------------------------
;Begin Here Google Search
;--------------------------------------------------------------------
;1..
;How to save files using Enter key? - Ask for Help - AutoHotkey Community
;https://autohotkey.com/board/topic/124006-how-to-save-files-using-enter-key/

;--------------------------------------------------------------------
;AutoKey Info Help Web
;--------------------------------------------------------------------
;1..
;OnExit
;https://autohotkey.com/docs/commands/OnExit.htm
;--------
;2..
;While-loop
;https://autohotkey.com/docs/commands/While.htm
;--------
;3..
;Else
;https://autohotkey.com/docs/commands/Else.htm
;--------
;4..
;OnExit
;https://autohotkey.com/docs/commands/OnExit.htm
;--------
;5..
;Functions
;https://autohotkey.com/docs/Functions.htm
;--------------------------------------------------------------------

;--------------------------------------------------------------------
;Ref
;Chrome Extension
;--------------------------------------------------------------------

;1..
;--------
;This One not Much To do With Here But Still Used
;--------
;Copy All Urls - Chrome Web Store
;https://chrome.google.com/webstore/detail/copy-all-urls/djdmadneanknadilpjiknlnanaolmbfk?utm_source=chrome-app-launcher-info-dialog
;--------

;2..
;--------
;Yes Save to URL to Download Folder
;--------
;Save as Shortcut - Chrome Web Store
;https://chrome.google.com/webstore/detail/save-as-shortcut/flehofiklehmnnolpjcamplcnmhgcbkk?utm_source=chrome-app-launcher-info-dialog
;--------

;3..
;--------
;This One Save Auto to Download Folder Without Our Coding Requirement
;--------
;Capture Webpage Screenshot Entirely. FireShot - Chrome Web Store
;https://chrome.google.com/webstore/detail/capture-webpage-screensho/mcbpblocgmgfnpjjppndjkmgjaogfceg?utm_source=chrome-app-launcher-info-dialog
;--------

;4..
;--------
;As Well as Save Screen Shot About Do a Web Page HTML Save also
;Be Good If Done Without an Extra Ask to Download Save As
;But Setup to Store a Page on a Web On-line Auto -- PageArchiver
;--------
;SingleFile - Chrome Web Store
;https://chrome.google.com/webstore/detail/singlefile/mpiodijhokgodhhofbcjdecpffjipkle?utm_source=chrome-app-launcher-info-dialog
;--------------------------------------------------------------------


;--------------------------------------------------------------------
;SEMI USELESS CODE SHOVED TO BOTTOM LOOK AT LATER
;--------------------------------------------------------------------
;WinGet nChromeWindows, Count, ahk_class Chrome_WidgetWin_1

;----
;[Solved] How to get the hwnd of the current script - Ask for Help - AutoHotkey Community
;https://autohotkey.com/board/topic/35140-solved-how-to-get-the-hwnd-of-the-current-script/
;----
;ThisScriptsHWND := WinExist("Ahk_PID " DllCall("GetCurrentProcessId"))
;msgbox %ThisScriptsHWND% is this script's HWND

;--------------------------------------------------------------------
;Don't stay RSI -Save Me- if Form Change
;--------------------------------------------------------------------
;WinGetTitle, active_title, A
;IF active_title <> O_active_title
;{
;    SoundBeep
;    break
;}
;O_active_title = %active_title%