<commit_before># HideWhenMinimize

This project uses C# language.

This program hides the window into the taskbar when it is minimized. If the window has a tray icon, it will minimize to tray the icon instead.


This program will setup a listener attatching to the target process, and it will quit after the target process quits.
If the target process is not found, the project will start the target process firstly (if have full path in setting file's Path tag).


command line argument: [-force | -hide]

-force : end the old listener forcibly (if exist), re-attach the listener to the target process.

-hide  : hide the target window after found.


The listener will be setup by a xml setting file.
Here is a sample setting file:

File name: <HideWhenMinimize.xml>
```xml
<Hook>
	<Path>C:\Program Files (x86)\Windows Live\Mail\wlmail.exe</Path>
	<MaxWait>12</MaxWait>
	<WinName> - Windows Live Mail</WinName>
	<WinClass>Outlook Express Browser Class</WinClass>
	<InfiniteLoop>false</InfiniteLoop>
</Hook>
```
Path: <MUST HAVE> full path for the process, or only the exe file name such as "wlmail.exe"<commit_msg>Improve README.md<commit_after># HideWhenMinimize

This project uses C# language.

This program hides the window into the taskbar when it is minimized. When the tray icon exists, the window will minimize to tray the icon.


Program setup will quit after the target process quits.
If the target process is not found, the project will start the target process firstly (if have full path in setting file's Path tag).


command line argument: [-force | -hide]

-force : end the old listener forcibly (if exist), re-attach the listener to the target process.

-hide  : hide the target window after found.


The listener will be setup by a xml setting file.
Here is a sample setting file:

File name: <HideWhenMinimize.xml>
```xml
<Hook>
	<Path>C:\Program Files (x86)\Windows Live\Mail\wlmail.exe</Path>
	<MaxWait>12</MaxWait>
	<WinName> - Windows Live Mail</WinName>
	<WinClass>Outlook Express Browser Class</WinClass>
	<InfiniteLoop>false</InfiniteLoop>
</Hook>
```
Path: <MUST HAVE> full path for the process, or only the exe file name such as "wlmail.exe"
{'fraction_non_alphanumeric': 0.08302583025830258, 'fraction_numerical': 0.0036900369003690036, 'mean_word_length': 4.395522388059701, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5463892', 'n_tokens_mistral': 657, 'n_tokens_neox': 616, 'n_words': 303}