Autohotkey 中文论坛

完整版: WOW中的 多點監控疑問
你目前正在浏览的是简化版. 请点击这里浏览完整版
監控點1
IniRead, keyG, wow.ini, key, keyG
IniRead, key6, wow.ini, key, key6
IniRead, key7, wow.ini, key, key7
IniRead, key8, wow.ini, key, key8
IniRead, key9, wow.ini, key, key9
IniRead, key0, wow.ini, key, key0
IniRead, x, wow.ini, color, x
IniRead, y, wow.ini, color, y
IniRead, c, wow.ini, color, c
$g::
Loop
{
if not GetKeyState("g","p")
break
Random,stime,150,350
Random,btime,15,35
Send {%keyG%} ;
Send {%key6%} ;
Send {%key7%} ;
Send {%key8%} ;
Send {%key9%} ;
Sleep,stime ;
PixelGetColor, color, %x%, %y%,RGB
if color =%c%
Send {%key0%} ;
Sleep,btime ;
}
return

^s::
MouseGetPos, MouseX, MouseY
PixelGetColor, color, %MouseX%, %MouseY%,RGB
SetTimer, RemoveToolTip, 5000
ToolTip, %color% %MouseX% %MouseY%
x=%MouseX%
y=%MouseY%
c=%color%
IniWrite,%x%, wow.ini, color, x
IniWrite,%y%, wow.ini, color, y
IniWrite,%c%, wow.ini, color, c
return


RemoveToolTip:
SetTimer, RemoveToolTip, Off
ToolTip
return


[key]
KeyG=g
Key6=6
key7=7
key8=8
key9=9
key0=0
[color]
x=
y=
c=


監控點2
IniRead, keyB, wow.ini, key, keyB
IniRead, x, wow1.ini, color, x
IniRead, y, wow1.ini, color, y
IniRead, c, wow1.ini, color, c
$g::
Loop
{
if not GetKeyState("g","p")
break
Random,btime,15,35
PixelGetColor, color, %x%, %y%,RGB
if color =%c%
Send {%keyB%} ;
Sleep,btime ;
}
return

^s::
MouseGetPos, MouseX, MouseY
PixelGetColor, color, %MouseX%, %MouseY%,RGB
SetTimer, RemoveToolTip, 5000
ToolTip, %color% %MouseX% %MouseY%
x=%MouseX%
y=%MouseY%
c=%color%
IniWrite,%x%, wow.ini, color, x
IniWrite,%y%, wow.ini, color, y
IniWrite,%c%, wow.ini, color, c
return

RemoveToolTip:
SetTimer, RemoveToolTip, Off
ToolTip
return


[key]
KeyG=g
keyB=b
[color]
x=
y=
c=


如何讓這2個腳本能同時運行呢 試了好多次都沒成功 請大師們指導下
我的QQ是 250644549 在線等大師們的指導~~~
誰能教教我啊 開了2個腳本一起開 就只能運行1個
参考网址