|
|
|
This code is for 1024x768 rez, and has HP pot in 1st slot, and FP pot in 2nd slot.
[code]Opt("MouseCoordMode", 2)
Opt("PixelCoordMode", 2)
$health = 0
$force = 0
While 1
If WinActive("RF Online") == 1 Then
$health = PixelGetColor(145, 20)
$force = PixelGetColor(145, 35)
If $health <> 14092553 Then
Send("{F1}")
EndIf
If $force <> 1118679 Then
Send("{F2}")
EndIf
EndIf
WEnd[/code]
If you want to use a different rez, use this code. It'll tell you the x,y location and color value of any pixel youre cursor is over:
[code]Opt("MouseCoordMode", 2)
Opt("PixelCoordMode", 2)
While 1
$pos = MouseGetPos()
$x = $pos[0]
$y = $pos[1]
$x_str = String($x)
$y_str = String($y)
$color = String(PixelGetColor($x, $y))
ToolTip($x_str & " " & $y_str & @LF & Hex($color,8), 0, 0)
WEnd
[/code]
|
|