katzyaakov66 Posted December 26, 2012 Share Posted December 26, 2012 i want to make program that will measure betwen 2 points on exist opened window and make line betwen this 2 line and put the distance but this shuld be direct (as layer) on the opened window not on anew window thanks yaakov Link to comment Share on other sites More sharing options...
JohnOne Posted December 26, 2012 Share Posted December 26, 2012 Thanks for sharing, good luck. stormbreaker 1 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
stormbreaker Posted December 27, 2012 Share Posted December 27, 2012 (edited) Thanks for sharing, good luck. Made me LOL, but as a helper I'd suggest the OP to use something called GDI+, like: #include <GUIConstantsEx.au3> #include <GDIPlus.au3> _Main() Func _Main() Local $hGUI, $hGraphic, $hPen ; Create GUI $hGUI = GUICreate("GDI+", 400, 300) GUISetState() ; Draw line _GDIPlus_Startup() $hGraphic = _GDIPlus_GraphicsCreateFromHWND($hGUI) $hPen = _GDIPlus_PenCreate() _GDIPlus_GraphicsDrawLine($hGraphic, 10, 150, 390, 150, $hPen) ; Loop until user exits Do Until GUIGetMsg() = $GUI_EVENT_CLOSE ; Clean up resources msgbox(64, 'Distance', 'The distance b/w the pts. is: ' & Round(Sqrt(380^2 + 0^2))) _GDIPlus_PenDispose($hPen) _GDIPlus_GraphicsDispose($hGraphic) _GDIPlus_Shutdown() EndFunc ;==>_Main No more comments... from my side. Best of luck ahead. Edited December 27, 2012 by MKISH ---------------------------------------- :bye: Hey there, was I helpful? ---------------------------------------- My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1 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