스크립트
#NoEnv
#NoTrayicon
#SingleInstance force
SetKeyDelay, -1
SetWinDelay,-1
SetBatchLines,-1
SetControlDelay,-1
CoordMode, Pixel, Screen
FileMoveDir, Otc, C:\Khna\Otc, 2
Gui, +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Add, Picture, x0 y0 BackgroundTrans, C:\Khna\Otc\1n.png
Gui, Add, Button, x12 y10 w70 h16 gBst, Start
Gui, Add, Edit, x12 y35 w70 h16 vE1, 메일 개수
Gui, Add, Edit, x100 y35 w70 h16 vE55, 확장 개수
Gui, Add, Edit, x12 y60 w100 h20 vE2,
Gui, Add, Edit, x12 y90 w100 h20 vE3,
Gui, Show, x500 y200 w213 h254, Otc
OnMessage(0x201, "WM_LBUTTONDOWN")
WM_LBUTTONDOWN()
{
PostMessage, 0xA1, 2,,, A
}
WinSet, Transparent, 190 , Otc
WinSet, Region, R35-35 W213 H254 0-0
return
F1::
Gui, Submit, Nohide
WinGetActiveTitle, TitleName1
GuiControl,,E2, %TitleName1%
return
F2::
Gui, Submit, Nohide
WinGetActiveTitle, TitleName2
GuiControl,,E3, %TitleName2%
return
`::
Pause
return
Bst:
Gui, Submit, Nohide
WinWait, %E2%
IfWinNotActive, %E2%, , WinActivate, %E2%
WinWaitActive, %E2%,
WinMove,0,0
Sleep, 1000
goto,a1
return
a1:
Gui, Submit, Nohide
Thread, NoTimers
Imagesearch, vx, vy, 1, 10, 500, 850, *100 C:/Khna/Otc/1.bmp
If Errorlevel = 0
{
va:=vx-72
vb:=vy+12
a:= (vb*65536)+va
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep,1000
}
Imagesearch, vx, vy, 1, 10, 500, 850, *100 C:/Khna/Otc/2.bmp
If Errorlevel = 0
{
va:=vx-72
vb:=vy+12
a:= (vb*65536)+va
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep,1000
}
Imagesearch, vx, vy, 1, 10, 500, 850, *100 C:/Khna/Otc/3.bmp
If Errorlevel = 0
{
goto, a2
}
If Errorlevel = 1
{
goto, a1
}
return
a2:
Gui, Submit, Nohide
Thread, NoTimers
Sleep,1000
z:= (810*65536)+28
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
PostMessage, 0x202, 0, %z%, , %E2%
Sleep, 1000
z:= (500*65536)+120
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
PostMessage, 0x202, 0, %z%, , %E2%
Sleep, 1000
z:= (500*65536)+350
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
PostMessage, 0x202, 0, %z%, , %E2%
Sleep, 1000
z:= (88*65536)+30
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
PostMessage, 0x202, 0, %z%, , %E2%
Sleep, 1000
goto, a3
return
a3:
Gui, Submit, Nohide
Thread, NoTimers
Imagesearch, vx, vy, 1, 10, 500, 850, *100 C:/Khna/Otc/2.bmp
If Errorlevel = 0
{
va:=vx-72
vb:=vy+12
a:= (vb*65536)+va
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 1000
}
Imagesearch, vx, vy, 1, 10, 500, 850, *100 C:/Khna/Otc/3.bmp
If Errorlevel = 0
{
z:= (230*65536)+120
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
PostMessage, 0x202, 0, %z%, , %E2%
Sleep, 1000
goto, a4
}
if Errorlevel = 1
{
goto, a3
}
return
a4:
Gui, Submit, Nohide
Thread, NoTimers
Sleep, 1000
z:= (810*65536)+28
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
PostMessage, 0x202, 0, %z%, , %E2%
Sleep, 1000
z:= (440*65536)+120
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
PostMessage, 0x202, 0, %z%, , %E2%
Sleep, 1000
z:= (735*65536)+18
PostMessage, 0x200, 0, %z%, , %E3%
PostMessage, 0x201, 1, %z%, , %E3%
PostMessage, 0x202, 0, %z%, , %E3%
Sleep, 1000
goto, gin
return
b0:
Gui,Submit,nohide
am=%E1%
if am>0
{
Sleep,500
a:= (280*65536)+250
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 2000
gosub, ok
}
if am>1
{
Sleep,500
a:= (380*65536)+250
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 2000
gosub,ok
Sleep, 2000
gosub, amp
}
if am>2
{
Sleep,500
a:= (480*65536)+250
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 2000
gosub,ok
}
if am>3
{
Sleep,500
a:= (580*65536)+250
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 2000
gosub,ok
}
if am>4
{
Sleep,500
a:= (680*65536)+250
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 2000
gosub,ok
}
if am>5
{
Sleep,500
z:= (330*65536)+200
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
z:= (315*65536)+200
PostMessage, 0x200, 0, %z%, , %E2%
Sleep, 500
PostMessage, 0x202, 0, %z%, , %E2%
Sleep,1000
a:= (680*65536)+250
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 2000
gosub,ok
}
if am>6
{
Sleep,500
z:= (330*65536)+200
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
z:= (315*65536)+200
PostMessage, 0x200, 0, %z%, , %E2%
Sleep, 500
PostMessage, 0x202, 0, %z%, , %E2%
Sleep,1000
a:= (680*65536)+250
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 2000
gosub,ok
}
if am>7
{
Sleep,500
z:= (330*65536)+200
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
z:= (315*65536)+200
PostMessage, 0x200, 0, %z%, , %E2%
Sleep, 500
PostMessage, 0x202, 0, %z%, , %E2%
Sleep,1000
a:= (680*65536)+250
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 2000
gosub,ok
}
if am>8
{
Sleep,500
z:= (330*65536)+200
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
z:= (315*65536)+200
PostMessage, 0x200, 0, %z%, , %E2%
Sleep, 500
PostMessage, 0x202, 0, %z%, , %E2%
Sleep,1000
a:= (680*65536)+250
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 2000
gosub,ok
}
if am>9
{
Sleep,500
z:= (330*65536)+200
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
z:= (315*65536)+200
PostMessage, 0x200, 0, %z%, , %E2%
Sleep, 500
PostMessage, 0x202, 0, %z%, , %E2%
Sleep,1000
a:= (680*65536)+250
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 2000
gosub,ok
}
if am>10
{
Sleep,500
z:= (330*65536)+200
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
z:= (315*65536)+200
PostMessage, 0x200, 0, %z%, , %E2%
Sleep, 500
PostMessage, 0x202, 0, %z%, , %E2%
Sleep,1000
a:= (680*65536)+250
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 2000
gosub,ok
}
if am>11
{
Sleep,500
z:= (330*65536)+200
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
z:= (315*65536)+200
PostMessage, 0x200, 0, %z%, , %E2%
Sleep, 500
PostMessage, 0x202, 0, %z%, , %E2%
Sleep,1000
a:= (680*65536)+250
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 2000
gosub,ok
}
if am>12
{
Sleep,500
z:= (330*65536)+200
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
z:= (315*65536)+200
PostMessage, 0x200, 0, %z%, , %E2%
Sleep, 500
PostMessage, 0x202, 0, %z%, , %E2%
Sleep,1000
a:= (680*65536)+250
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 2000
gosub,ok
}
if am>13
{
Sleep,500
z:= (330*65536)+200
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
z:= (315*65536)+200
PostMessage, 0x200, 0, %z%, , %E2%
Sleep, 500
PostMessage, 0x202, 0, %z%, , %E2%
Sleep,1000
a:= (680*65536)+250
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 2000
gosub,ok
}
goto, b1
return
ok:
Gui, Submit, Nohide
Imagesearch, vx, vy, 100, 300, 400, 850, *100 C:/Khna/Otc/e.bmp
If Errorlevel = 0
{
a:= (vy*65536)+vx
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
}
If Errorlevel = 1
{
Controlsend,,{Esc}, %E2%
}
Sleep, 1000
return
amp:
Gui, Submit, Nohide
a:= (765*65536)+250
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 2000
Loop, %E55%
{
Sleep, 1000
a:= (570*65536)+130
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 2000
a:= (544*65536)+184
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 2000
a:= (525*65536)+250
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 2000
}
a:= (770*65536)+350
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 1500
a:= (380*65536)+350
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 1500
return
b1:
Gui, Submit, Nohide
Thread, NoTimers
Imagesearch, va, vb, 1, 10, 500, 850, *100 C:/Khna/Otc/b.bmp
If Errorlevel = 0
{
a:= (vb*65536)+va
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
}
Imagesearch, va, vy, 10, 720, 100, 850, *100 C:/Khna/Otc/h.bmp
If Errorlevel = 0
{
vx:=va+200
a:= (vy*65536)+vx
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 3000
z:= (505*65536)+410
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
PostMessage, 0x202, 0, %z%, , %E2%
Sleep, 1200
goto, b2
}
If Errorlevel = 1
{
goto, b1
Sleep,50
}
Imagesearch, vx, vy, 1, 10, 500, 850, *100 C:/Khna/Otc/5.bmp
If Errorlevel = 0
{
va:=vx-135
vb:=vy+190
a:= (vb*65536)+va
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 3000
z:= (505*65536)+410
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
PostMessage, 0x202, 0, %z%, , %E2%
Sleep, 1200
goto, b2
}
If Errorlevel = 1
{
goto, b1
Sleep,50
}
return
b2:
Gui, Submit, Nohide
Thread, NoTimers
Imagesearch, vx, vy, 1, 10, 500, 850, *100 C:/Khna/Otc/6.bmp
If Errorlevel = 0
{
a:= (vy*65536)+vx
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 2000
}
Imagesearch, vx, vy, 1, 10, 500, 850, *100 C:/Khna/Otc/7.bmp
If Errorlevel = 0
{
z:= (770*65536)+433
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
PostMessage, 0x202, 0, %z%, , %E2%
Sleep, 1500
goto, b3
}
If Errorlevel = 1
{
a:= (280*65536)+250
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
a:= (420*65536)+250
PostMessage, 0x200, 0, %a%, , %E2%
Sleep, 500
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 3000
a:= (280*65536)+250
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 3000
a:= (280*65536)+250
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 3770
Controlsend,, {Ctrl down}, %E2%
Controlsend,, {2}, %E2%
Controlsend,, {Ctrl up}, %E2%
Sleep, 3770
a:= (280*65536)+250
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 3000
a:= (280*65536)+250
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 3000
goto, b2
}
return
b3:
Gui, Submit, Nohide
Thread, NoTimers
z:= (705*65536)+250
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
PostMessage, 0x202, 0, %z%, , %E2%
Sleep, 1000
z:= (450*65536)+250
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
PostMessage, 0x202, 0, %z%, , %E2%
Sleep, 1000
z:= (290*65536)+250
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
PostMessage, 0x202, 0, %z%, , %E2%
Sleep, 1000
z:= (680*65536)+250
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
PostMessage, 0x202, 0, %z%, , %E2%
Sleep, 3770
Controlsend,, {Ctrl down}, %E2%
Controlsend,, {2}, %E2%
Controlsend,, {Ctrl up}, %E2%
Sleep, 3770
z:= (775*65536)+18
PostMessage, 0x200, 0, %z%, , %E3%
PostMessage, 0x201, 1, %z%, , %E3%
PostMessage, 0x202, 0, %z%, , %E3%
Sleep, 2000
a:= (755*65536)+370
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
a:= (755*65536)+201
PostMessage, 0x200, 0, %a%, , %E2%
Sleep, 500
PostMessage, 0x202, 0, %a%, , %E2%
Sleep, 1000
z:= (740*65536)+248
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
PostMessage, 0x202, 0, %z%, , %E2%
Sleep, 1500
z:= (83*65536)+35
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
PostMessage, 0x202, 0, %z%, , %E2%
Sleep, 1500
z:= (230*65536)+120
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
PostMessage, 0x202, 0, %z%, , %E2%
Sleep, 1000
goto, a1
return
gin:
Gui, Submit, Nohide
Thread, NoTimers
Imagesearch, va, vb, 1, 10, 500, 850, *100 C:/Khna/Otc/4.bmp
If Errorlevel = 0
{
a:= (vb*65536)+va
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
}
Sleep, 3000
Imagesearch, va, vb, 1, 10, 500, 850, *100 C:/Khna/Otc/a.bmp
If Errorlevel = 0
{
a:= (vb*65536)+va
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
Goto, gin2
}
If Errorlevel = 1
{
z:= (735*65536)+18
PostMessage, 0x200, 0, %z%, , %E3%
PostMessage, 0x201, 1, %z%, , %E3%
PostMessage, 0x202, 0, %z%, , %E3%
goto,gin
}
return
gin2:
Gui, Submit, Nohide
Thread, NoTimers
Imagesearch, va, vb, 1, 10, 200, 300, *70 C:/Khna/Otc/ttt.bmp
If Errorlevel = 0
{
Settimer, Err, 2000
}
else
{
Sleep, 2000
z:= (650*65536)+250
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
PostMessage, 0x202, 0, %z%, , %E2%
goto, gin2
}
return
Err:
Gui, Submit, Nohide
Thread, NoTimers
Imagesearch, va, vb, 1, 10, 500, 850, *100 C:/Khna/Otc/d.bmp
If Errorlevel = 0
{
Settimer, Err, off
goto, b0
}
Imagesearch, va, vb, 1, 10, 500, 850, *100 C:/Khna/Otc/b.bmp
If Errorlevel = 0
{
a:= (vb*65536)+va
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
}
Imagesearch, va, vb, 1, 10, 500, 850, *100 C:/Khna/Otc/ukr.bmp
If Errorlevel = 0
{
a:= (vb*65536)+va
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
}
Imagesearch, va, vb, 1, 10, 500, 850, *100 C:/Khna/Otc/kkkk.bmp
If Errorlevel = 0
{
a:= (vb*65536)+va
PostMessage, 0x200, 0, %a%, , %E2%
PostMessage, 0x201, 1, %a%, , %E2%
PostMessage, 0x202, 0, %a%, , %E2%
}
z:= (570*65536)+370
PostMessage, 0x200, 0, %z%, , %E2%
PostMessage, 0x201, 1, %z%, , %E2%
z:= (665*65536)+370
PostMessage, 0x200, 0, %z%, , %E2%
Sleep, 500
PostMessage, 0x202, 0, %z%, , %E2%
Sleep, 500
return
GuiClose:
ExitApp
return
GuiContextMenu:
ExitApp
return