Skip to content

Commit 1a802b5

Browse files
authored
Add files via upload
1 parent ba36f81 commit 1a802b5

File tree

1 file changed

+96
-0
lines changed

1 file changed

+96
-0
lines changed

readme.txt

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+

2+
TIL2 - Tray Icon Launcher
3+
---------------------------
4+
5+
Launches executables and provides the minimize-to-tray functionality.
6+
Meant to be run from batch scripts or from the command prompt.
7+
If no command line program provided, attempts to start a hard-coded
8+
execuatable with the following name: "run_me_no_parameters.exe".
9+
This is for hex editing (NB. this may've been hexed alrady).
10+
11+
Using '-C1' option may be used to instruct the CMD
12+
to create its own, new command prompt.
13+
14+
https://github.com/ike9000e/tray-icon-launcher
15+
16+
Build: 2023-11-04, 64-bit
17+
18+
Features
19+
-----------
20+
* Tray-minimizes window the command creates.
21+
* Tray-minimizes the CMD console. Has options to search
22+
for CMD in the parent or child process list.
23+
* Can attach a DLL library to the starting process.
24+
* Shows icon in the system tray.
25+
* Handles Ctrl+C and auto unhides the window.
26+
27+
28+
Usage
29+
-------
30+
program.exe [OPTIONS] -- {COMMAND}
31+
32+
OPTIONS
33+
---------
34+
-T1 - Move to the tray: first CMD window from the parent process list.
35+
-T2 - Move to the tray: first CMD window from the child process list.
36+
-T3 - Move to the tray: window that the command creates.
37+
38+
-W1 - Wait for the command to finish. The default.
39+
-W0 - Don't wait for the command to finish.
40+
41+
-DL FILE
42+
- Provide a DLL file that is attached|injected to
43+
the created process.
44+
45+
-C1 - Instruct CLI program that it should recieve its
46+
own, new console window. Eg. if the command is CMD,
47+
it starts with the new command prompt.
48+
-TI - Move the window (or command prompt) to the
49+
tray, initially.
50+
51+
-WI MILLISECS
52+
Interval of how long to wait, in milliseconds, for the target process
53+
between re-tries, in case if not finding its window initially.
54+
Default: 200
55+
56+
-WN NUM
57+
Number of times to wait using the '-WI' option.
58+
Default: 8
59+
60+
-S1 - Don't hide the helper window that the program
61+
uses inernally. It's created only with
62+
the -T1 -T2 or -T3 option.
63+
-S2 - Show options being used.
64+
-AE1 - Setup an environment variable for further console attach functionality.
65+
Environment variable 'HXDW_PID_STDOUT_7LL55C3O' gets
66+
assigned to the PID of the current process.
67+
This is an internal functionality for programs created with the same library.
68+
69+
70+
Utility Mode Options
71+
------------------------
72+
In Utility mode the program only performs specified
73+
operation and exits.
74+
75+
--u_timestamp
76+
Returns POSIX timestamp value in seconds. Eg.: 1664630997
77+
--u_timestamp_ms
78+
Same as '--u_timestamp' but in milliseconds.
79+
--u_file_md5 FILE
80+
Calculates MD5 hash|digest for the file.
81+
--u_gbt3 FILE
82+
Get binary type.
83+
Returns binary type of the executable (EXE or DLL), which can be
84+
WIN32(x86), WIN64(x64) or Intel Itanium. Returned value to the
85+
shell - as the errorlevel - is either 32, 64 or 70, respectivelly.
86+
87+
88+
Examples
89+
----------
90+
program.exe -T2 -W1 -C1 -TI -S1 -- cmd
91+
program.exe -T2 -C1 -WN 8 -WI 200 -- cmd
92+
program.exe -T1 -W1 -C1 -TI -S1 -- calc
93+
program.exe -T1 -C1 -TI -S1 -- mpv.exe m.mkv
94+
program.exe -T3 -S1 -- notepad
95+
program.exe -W0 -- notepad
96+

0 commit comments

Comments
 (0)