Sign in to follow this  
Followers 0
myspacee

Drawn small red cross (view-finder) around desktop...

5 posts in this topic

Hello,

made a tool that help my office user to snapshot photos and documents,

to easily prepare for upload our www site. (dimension are important :D )

All fine, but now i need to suggest where to click, because introduce

resize/crop and i must ovoid counter-effect of this activity.

I 've original x,y so i can calc other point to mantain proportions.

Is possible to drawn small cross around screen (maybe with some info)

and delete them after selection ?

Thank you all for any suggestion,

m.

Share this post


Link to post
Share on other sites



thank you for reply but,

function name and comment are not in englishi

so i can't find anything about small cross present in your http://www.autoitscript.com/fileman/users/Zedna/radar.gif

Can you add some information, or isolate function?

thank you !

Myspacee

Share this post


Link to post
Share on other sites

thank you but write mu little func

#include <WindowsConstants.au3>
#include <WinAPI.au3>
#Include <GDIPlus.au3>


mycross(500,400,20)

func mycross($start_x,$start_y,$mylenght)
    _GDIPlus_Startup ()
    $hDC = _WinAPI_GetWindowDC(0)

    $hGraphic = _GDIPlus_GraphicsCreateFromHDC($hDC)
    $Color = 0xFF000000
    $hPen = _GDIPlus_PenCreate($Color,2)


    For $y = 0 to 3000



            _GDIPlus_GraphicsDrawLine($hGraphic, $start_x - $mylenght, $start_y, $start_x - 5, $start_y, $hPen) ;orizzontale dx
            _GDIPlus_GraphicsDrawLine($hGraphic, $start_x  + $mylenght , $start_y, $start_x + 5, $start_y, $hPen) ;orizzontale dx
            _GDIPlus_GraphicsDrawLine($hGraphic, $start_x, $start_y - $mylenght, $start_x, $start_y - 5, $hPen) ;verticale up
            _GDIPlus_GraphicsDrawLine($hGraphic, $start_x, $start_y + $mylenght, $start_x, $start_y + 5, $hPen) ;verticale down
            $Color += Hex(2)
            _GDIPlus_PenSetColor($hPen, $Color)
    Next


    _WinAPI_RedrawWindow(_WinAPI_GetDesktopWindow(), 0, 0, $RDW_INVALIDATE+$RDW_ALLCHILDREN)
    _WinAPI_ReleaseDC(0, $hDC)
    _GDIPlus_Shutdown()

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