Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- toggle := false
- #MaxThreadsPerHotkey 2
- #IfWinActive, Diablo III
- {
- *`::
- toggle := !toggle
- if toggle {
- SetScrollLockState, on
- } else {
- SetScrollLockState, off
- }
- counterA:=0
- while toggle {
- if WinActive("Diablo III") {
- ;PixelGetColor, color, 955, 64
- ;if (color = "0x1F4C72" || color = "0x7B706B") ; 0x1F4C72=Yellows 0x7B706B=blues
- ;{
- ; Send *{RButton}
- ;}
- PixelSearch, , , 1381, 931, 1381, 931, 0x53531A, 10, Fast ; If resource about like 90%?
- if (ErrorLevel = 0)
- {
- PixelSearch, , , 936, 34, 973, 34, 0xFF6969, 0, Fast ;0x793232 ;?0xFF6969
- if (ErrorLevel = 0)
- {
- Send *{RButton}
- }
- else
- {
- ErrorLevel:= 0
- PixelSearch, , , 935, 34, 973, 34, 0x00FFFF, 0, Fast ; YELLOW
- if !ErrorLevel
- Send *{RButton}
- }
- }
- ErrorLevel:= 0
- if (!GetKeyState("Space") && !GetKeyState("F1") && !GetKeyState("1") && !GetKeyState("RButton"))
- {
- if (counterA > 1)
- {
- ControlClick,x960 y509,Diablo III,,L,,pos ; Clicking Waypoint
- counterA := 0
- }
- else
- {
- ControlClick,x960 y507,Diablo III,,L,,pos ; Clicking Waypoint
- counterA := counterA+1
- }
- ;ControlClick,x960 y508,Diablo III,,L,,pos ; Clicking Waypoint
- ;ControlClick,x959 y507,Diablo III,,,,pos ; Clicking Waypoint
- ;ControlClick,x961 y508,Diablo III,,,,pos ; Clicking Waypoint
- ;ControlClick,x960 y507,Diablo III,,,,pos ; Clicking Waypoint
- }
- Send {F3}
- } else {
- toggle := !toggle
- SetScrollLockState, off
- }
- }
- return
- }
- RandomSleep(min, max) {
- Random, rand, min, max
- Sleep rand
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement