Hooch Posted February 11, 2005 Share Posted February 11, 2005 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 More sharing options...
gosu Posted February 11, 2005 Share Posted February 11, 2005 http://www.autoitscript.com/forum/index.php?showtopic=8321 [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 More sharing options...
Hooch Posted February 12, 2005 Author Share Posted February 12, 2005 http://www.autoitscript.com/forum/index.php?showtopic=8321<{POST_SNAPBACK}>mmm very close with that one in that it writes the rectangle but I just want a frame and your drawRectangle() fills in every pixel in the rectangle. I'll play with it and see what I can do, thanks Link to comment Share on other sites More sharing options...
Hooch Posted February 12, 2005 Author Share Posted February 12, 2005 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now