This is by no means perfect... This was only meant for personal use..
Download AutoHotkey
Make a new .ahk file (text file extension renamed.)
Ctrl+Shift+C to get the color and mouse coords
Ctrl+V to paste color and mouse coords after the previous command
F12 to run script once you're looking at the home screen.
$^+C::
MouseGetPos mx, my
PixelGetColor color, %mx%, %my%
clipboard = %color%, %mx%, %my%
MsgBox, Color: %color%`nMouse X/Y: %mx%, %my%
return
+^S::Suspend
#IfWinActive Counter-Strike: Global Offensive
F12::
Loop
{
PixelGetColor,homescreen, 348, 292 ;;0x87B2BD a color on your steam profile picture you will need to change this part
PixelGetColor,gobutton, 1430, 950
If homescreen = 0x87B2BD ;;change this!
{
Click 1047, 672 ;;disconnected ok button
click 1149, 282 ;;payback button
Soundbeep
Sleep 15000
click 1476, 947 ;;go button
Sleep 15000
click 972, 972 ;;auto select
}
else
{
If gobutton = 0x000000
{
click 1476, 947 ;;go button
Sleep 15000
click 972, 972 ;;auto select
}
else
{
Send {w down} ;;anti away from keyboard stuff
Send {3}
Click
Sleep 1000
Send {w up}
Send {5}
Send {g}
}
Sleep 100000
}
}
return