Hi ppl, fine? I'm trying to draw rectangles like this: I'm trying to draw rectangles on my screen the same way I draw rectangles in paint! I click somewhere and drag the mouse to another place, and the rectangle will be drawn! how can I do this? I tried it with graphics, but I could not and I would like to draw them on my screen, not in a GUI... if someone can help me, i'll be very grateful!
darkshark,
Perhaps this will help?
#include <GuiConstantsEx.au3>
#include <WindowsConstants.au3>
#Include <ScreenCapture.au3>
#Include <Misc.au3>
Global $iX1, $iY1, $iX2, $iY2, $aPos, $sMsg, $sBMP_Path
; Create GUI
$hMain_GUI = GUICreate("Select Rectangle", 240, 50)
$hRect_Button = GUICtrlCreateButton("Mark Area", 10, 10, 80, 30)
$hCancel_Button = GUICtrlCreateButton("Cancel", 150, 10, 80, 30)
GUISetState()
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_C