- WINDOW-CLOSER - VERSION 1 -
!!! NODE-RUNNER WINDOW-CLOSER - CLOSE "ANY" WINDOW AND WAIT FOR IT TO CLOSE !!!
Close "any" On-Screen window using the "Window Name / Window Title", and optionally wait for the underlying process "exe" to unload before automatically closing.
This software is intended to be run either from NODE-RUNNER.bat Command .bat Script, or by a scheduler, eg Windows Scheduler.
Run and Configure WINDOW-CLOSER before activating any scheduler...
Setup your Scheduler to run WINDOW-CLOSER for whatever time you need to stop an On-Screen application.
Perform a Test-Run to make sure WINDOW-CLOSER works against your application - eg WINDOW-CLOSER successfully closes your specified application.
Should Be Job Done.
An application can be closed using either:
1 - An "Internal Windows Close Function" command.
2 - A "SendKeys - ALT - F4" command that simulates the PC Keyboard keys "ALT" and "F4" being pressed.
( "ALT" and "F4" pressed together is the universal "Application Close / Exit Request" Shortcut Key Combination that should work for "all" software applications).
NOTE - Most "Core Wallet" Software DOESN'T seem to respond to the "Internal Windows Close Request" command, and will only accept the "SendKeys" command.
I think this is because most "Core Wallet" Software is built on the "QT Framework" and either doesn't understand or accept the "Windows Close Request" command, or VB6 or the VB6 code used doesn't work correctly for some reason... I have tested against Windows Calculator and Windows WordPad without any problems, so, yeah...
NOTE - If the application being closed crashes or whatever, then the underlying "exe" process may not end, in which case, if WINDOW-CLOSER is configured to "Wait for Process", then WINDOW-CLOSER WON'T CLOSE EITHER !!!
Active Process Termination Code currently ISN'T active in WINDOW-CLOSER, but that functionality may be added in the future...
I have tested WINDOW-CLOSER with the following "Core Wallets" - ONLY "SendKeys ALT F4" works: