Quote:
Originally Posted by xbbshampoo
erh..
is like when i hover the mouse over an icon, i can get to know the icon's color value so that i can easily add buff to myself @@..
and the icon dissappeared, it will auto buff back
just like the chicken head of trapper @@
|
Code:
;HotKey for terminating the script
HotKeySet("{F11}", "Terminate")
;Window title for dragonica should be changed after every patch
$WinTitle = "Dragonica (Client Ver : 0.1.27)"
;Force focus on game
WinActivate($WinTitle)
;Continuous Loop
While 1
Local $MouseTrack = MouseGetPos() ;Get Mouse Position
Local $size = WinGetPos($WinTitle) ;Get X,Y and Size of Game
;If game is active, display X,Y co-ordinates and color hex.
;NOTE THAT X,Y CO-ORDINATES INFORMATION ARE RELATIVE TO THE WINDOW POSITION
If(WinActive($WinTitle)) Then
ToolTip("X Pos: " & $MouseTrack[0]-$size[0] & @CRLF & "Y Pos: " & $MouseTrack[1]-$size[1] & @CRLF & Hex(PixelGetColor($MouseTrack[0],$MouseTrack[1]),6), $MouseTrack[0], $MouseTrack[1])
EndIf
WEnd
Func Terminate()
Exit 0
EndFunc
Dragonica must be active and a tooltip with the X,Y value and hex color value will be shown.
Note that X,Y value are relative to the game window.