1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
| #uselib "user32.dll"
#func global GetWindowLong "GetWindowLongA" sptr, sptr
#func global FindWindowEx "FindWindowExA" sptr, sptr, sptr, sptr
#func global PostMessage "PostMessageA" sptr, sptr, sptr, sptr
#define WS_VISIBLE 0x10000000
#define WS_CAPTION 0x00C00000
#define WS_SYSMENU 0x00080000
#define WS_MINIMIZEBOX 0x00020000
#define WM_SYSCOMMAND 0x0112
#define SC_MINIMIZE 0xF020
hwndCA=0
*main
repeat
FindWindowEx 0 ,hwndCA, 0, 0
hwndCA=stat
if hwndCA=0 : break
GetWindowLong hwndCA, -8
if stat!=0 : continue
GetWindowLong hwndCA, -16
if (stat & 0x10CA0000)!=0x10CA0000 : continue
PostMessage hwndCA, WM_SYSCOMMAND, SC_MINIMIZE, 0
loop
wait 0
|