Jump to content

Highlight a "frame" on screen... ?


Hooch
 Share

Recommended Posts

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.

Link to comment
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]

Link to comment
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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...