This script causes an invalid window handle error but I can't see why. Can anyone show me what's wrong? #include <GUIConstants.au3>
Const $FLOODFILLBORDER = 0, $FLOODFILLSURFACE = 1
$gg = GUICreate("floods",100,100,10,10)
$pic1 = GUICtrlCreatePic(@Systemdir & "\oobe\images\merlin.gif",0,0, 0,0)
If $pic1 = 0 Then _GetLastErrorMessage("error from create pic")
$hpic1 = ControlGetHandle("floods","",$pic1)
If $hpic1 = '' Then _GetLastErrorMessage("erro from controlgethandle")
;$hpic1