Sign in to follow this  
Followers 0
Hooch

Highlight a "frame" on screen... ?

4 posts in this topic

I am scanning a section of my screen for a pixel....

$coord   = PixelSearch ($bLeft, $bTop, $bRight, $bBottom, $bColor, $bTolerance, 3)

...and what I want to do is put a visible frame around the box so I can get a visual representation of the area I am scanning. I expect I can use DLLCall but I was wondering if anyone had any ideas on how I would approach this.

Share this post


Link to post
Share on other sites




[quote name='d2hacker88' date='Jan 6 2005, 05:10 PM']Can someone please help me out with autoit like gimme a link on how to use it cause i have no experience with computer languages and i'd like to make a program with autoit in order to empress my computer teacher.[right][snapback]52215[/snapback][/right][/quote]

Share this post


Link to post
Share on other sites

ah, got it... thanks a bunch!

Func DrawRectangle($bLeft, $bRight, $bBottom, $bTop, $color)  
; Left Line
    For $y = $bBottom to $bTop step -1
        PixelDraw($bLeft, $y, $color)
    Next
    
; Right Line
    For $y = $bBottom to $bTop step -1
        PixelDraw($bRight, $y, $color)
    Next
    
; Top Line
    For $x = $bRight to $bLeft step -1
        PixelDraw($x, $bTop, $color)
    Next
    
; Bottom Line
    For $x = $bRight to $bLeft step -1
        PixelDraw($x, $bBottom, $color)
    Next
EndFunc

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0