I'm trying to place a transparent rectangle over an external window by having a transparent GUI on top. Everything is working except the background of the rectangle itself. What am I missing? Is there a better approach?
#include <GuiConstantsEx.au3>
#include <WindowsConstants.au3>
$Main_Gui = GUICreate("", 400, 400, -1, -1, $WS_POPUP, $WS_EX_TOOLWINDOW + $WS_EX_TOPMOST)
$exit = GUICtrlCreateButton("Exit", 200, 100, 80, 21)
GUICtrlCreateGraphic(20, 50, 200, 200)
GUICtrlSetGraph