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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
-
|
!
-
|
!
-
|
!
-
|
|
|
|
|
|
|
|
|
|
!
| #include "llmod.as"
#include "hspext.as"
wndname="HSPスクリプトエディタ"
aplsel "HSPスクリプトエディタ"
if stat{
title "stop" : stop
}
wndname=refstr
prm.0=0
getptr prm.1,wndname
dllproc "FindWindowA",prm,2,D_USER
if dllret=0{
title "stop" : stop
}
hsped=dllret
prm.0=hsped
getptr prm.1,rc
dllproc "GetWindowRect",prm,2,D_USER
if dllret=0{
title "stop" : stop
}
repeat
dllproc "GetForegroundWindow",prm,0,D_USER
title "監視中"
if hsped=dllret{
title "捕獲中"
prm.0=hsped
prm.1=dispx-200/2
prm.2=dispy-200/2
prm.3=200
prm.4=200
prm.5=1
dllproc "MoveWindow",prm,6,D_USER
}
wait 100
loop
stop
|