|
Post by bishop on Mar 20, 2020 12:04:28 GMT
it's probably very trivial for most. I would like my script to be highlighting the point at which it clicks. It will be easier for me to debug then. Can any one suggest how to do it?
|
|
|
Post by Exilereven on Mar 20, 2020 16:24:35 GMT
it's probably very trivial for most. I would like my script to be highlighting the point at which it clicks. It will be easier for me to debug then. Can any one suggest how to do it? Example(this is just one way to start to learn how to use it): local _red, _white, _green = 0xffd50000, 0x66ecf0f1, 0xff27ae60 local _loc, _loc2, _loc3 = Location(500,500), Location(400,600), Location(300,700) local _highlight_timeout = 3 setHighlightStyle(_red, false) --set color to red t = Region(_loc.x - 4, _loc.y - 4, 8, 8) --set region up from original location cause you can highlight regions not locations t:highlight(_highlight_timeout) --how long do we want to highlight. if you dont set a time limit you must use highlightOff() to turn off highlight. --example for different colors setHighlightStyle(_green, false) t = Region(_loc2.x - 4, _loc2.y - 4, 8, 8) t:highlight(_highlight_timeout) setHighlightStyle(_white, false) t = Region(_loc3.x - 4, _loc3.y - 4, 8, 8) t:highlight(_highlight_timeout)
|
|