Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
There's a balance between the mouse and sleep settings to maintain consistency. Somehow clicking twice made everything vastly more stable. Anyhow, I left in the debug and other stuff I was using in case somebody wants to mod it further, a couple of years from now:
-----
#InstallKeybdHook
#InstallMouseHook
CoordMode, Window
PixelX := 925
PixelY := 256
PixelX2 := 938
PixelY2 := 283
FrameSleepTime := 100
MouseSleepTime := 50
MouseSpeed := 3
MouseClicks := 2
NextButtonX := 939
NextButtonY := 551
F1::
loop
{
Sleep, FrameSleepTime
;PixelGetColor, color, PixelX, PixelY, RGB ; Stops on a 1 or 2 in the 10's place
PixelGetColor, color, PixelX2, PixelY2, RGB ; Stops on a 2 in the 10's place
If (color = 0x59493F)
{
MouseClick, Left, NextButtonX-5, NextButtonY, MouseClicks, MouseSpeed
Sleep, MouseSleepTime
MouseClick, Right, NextButtonX+5, NextButtonY, MouseClicks, MouseSpeed
Sleep, MouseSleepTime
}
else
{
MsgBox "Got it. Color = %color%"
Reload
}
}
F2::Reload
F3::
{
MouseGetPos, MouseX, MouseY
PixelGetColor, color, %MouseX%, %MouseY%
MsgBox The color at the current cursor position is %color%.
}
----
#InstallKeybdHook
#InstallMouseHook
CoordMode, Window
F1::
loop
{
PixelGetColor, color, 1374, 380, RGB ; Stops on a 1 or 2 in the 10's place
;PixelGetColor, color, 1243, 373, RGB ; Stops on a 2 in the 10's place
If (color = 0x4F493F)
{
Click down, 1425, 525
Sleep 100
Click up
Sleep 100
SendInput {Enter, down}
Sleep 1000
}
else
{
Reload
}
}
F2::Reload
I still have an issue though.. It keeps putting the mouse cursor back on the reroll button regularly but it doesn't seem to actualy lick, it just moves the cursor there.. Any idea why?
Thank you very much.