Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <imageSearch.au3>
- #include <Misc.au3>
- HotKeySet ("{^}","startstop")
- HotKeySet ("{F6}","start")
- HotKeySet ("{F7}","pause")
- HotKeySet ("{F8}","stop")
- $x = 0
- $y = 0
- $z = 0
- While 1
- Sleep (1000)
- WEnd
- Func startstop()
- If $z = 0 Then
- Call ("start")
- Else
- call ("pause")
- EndIf
- EndFunc
- Func start()
- $z = 1
- While 1
- $res1 = _ImageSearchArea( "fury\1.png", 1, 260, 740, 340, 810, $x, $y, 70 )
- if $res1 = 1 Then
- Send ("{NUMPAD1}")
- EndIf
- $res2 = _ImageSearchArea( "fury\2.png", 1, 260, 740, 340, 810, $x, $y, 70 )
- if $res2 = 1 Then
- Send ("{NUMPAD2}")
- EndIf
- $res3 = _ImageSearchArea( "fury\3.png", 1, 260, 740, 340, 810, $x, $y, 70 )
- if $res3 = 1 Then
- Send ("{NUMPAD3}")
- EndIf
- $res4 = _ImageSearchArea( "fury\4.png", 1, 260, 740, 340, 810, $x, $y, 70 )
- if $res4 = 1 Then
- Send ("{NUMPAD4}")
- EndIf
- $res5 = _ImageSearchArea( "fury\5.png", 1, 260, 740, 340, 810, $x, $y, 70 )
- if $res5 = 1 Then
- Send ("{NUMPAD5}")
- EndIf
- $res6 = _ImageSearchArea( "fury\6.png", 1, 260, 740, 340, 810, $x, $y, 70 )
- if $res6 = 1 Then
- Send ("{NUMPAD6}")
- EndIf
- $res7 = _ImageSearchArea( "fury\7.png", 1, 260, 740, 340, 810, $x, $y, 70 )
- if $res7 = 1 Then
- Send ("{NUMPAD7}")
- EndIf
- WEnd
- EndFunc
- func pause()
- $z = 0
- While 1
- Sleep(1000)
- WEnd
- EndFunc
- func stop ()
- Exit
- EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement