Hi guys
what i am trying to do is have My Gui LIve update Out of focus, so i can have this on a 2nd monitor streaming live updates while i continue to work on other screen,
i have been googling and looking at other threads about focus and stuff , but they do not seem to match what I'm after,

to be clear - i am not wanting to put focus on the GUI for it to auto update values,

if you have any positive feed back on the script while you read - i would be more then happy to accept - as im still building my Knowledge of this coding,
and stream line is always better Garbage code writing,

Hi all,
I've been looking around the forum and testing different ways of getting a 'drop zone' to work in my script, but I can't seem to get any response from the event listener. Code compiles perfectly. Chaning the control from a label to an input- or edit-field doesn't change its behaviour, still no response when a file is dropped on there...
It might just be that I am overlooking a simple detail, so I'm hoping for an extra pair of eyes here or there who can spot why this isn't working as it should.
I have another 3500+ lines script where I have basically the same bit of code, and it seems to work in there without problems.
So, here it goes:
Global $DD_GUI = GUICreate("DicomDrop",200,200,-1,-1,BitOR($WS_SYSMENU,$WS_POPUP),$WS_EX_ACCEPTFILES)
GUISetBkColor(0x030303,$DD_GUI)
$DD_GUI_DRAGLABEL = GUICtrlCreateLabel("",0,0,32,32,-1, $GUI_WS_EX_PARENTDRAG)
$DD_GUI_DRAGIMAGE = GUICtrlCreateIcon(@ScriptFullPath,201,0,0,32,32)
$DD_GUI_TITLELABEL = GUICtrlCreateLabel("DicomDrop",50,10,100,20,$SS_CENTER)
GUICtrlSetFont($DD_GUI_TITLELABEL,8,$FW_SEMIBOLD,$GUI_FONTNORMAL,"Verdana")
GUICtrlSetColor($DD_GUI_TITLELABEL,0xFFFFFF)
$DD_GUI_CLOSE = GUICtrlCreateButton("X",174,4,24,24,$BS_FLAT)
GUICtrlSetBkColor($DD_GUI_CLOSE,0x030303)
GUICtrlSetColor($DD_GUI_CLOSE,0xFFFFFF)
Global $DD_GUI_DROPZONE = GUICtrlCreateLabel("",10,42,180,148)
GUICtrlSetState(-1,8)
GUICtrlSetBkColor($DD_GUI_DROPZONE,0x181818)
GUISetState(@SW_SHOW,$DD_GUI)
Local $DD_MSG = 0
While 1
$DD_MSG = GUIGetMsg()
Select
Case $DD_MSG = $GUI_EVENT_CLOSE
ConsoleWrite(@CRLF & "Debug -- Closed by GUI_EVENT_CLOSE")
DD_EXIT()
Case $DD_MSG = $GUI_EVENT_DROPPED
If @GUI_DropId = $DD_GUI_DROPZONE Then
Local $DroppedFile = @GUI_DragFile
GUIDelete()
ConsoleWrite(@CRLF & "Debug -- Dropped file : " & $DroppedFile)
EndIf
Case $DD_MSG = $DD_GUI_CLOSE
ConsoleWrite(@CRLF & "Debug -- Closed by DD_GUI_CLOSEIMAGE")
DD_EXIT()
EndSelect
WEnd
Func DD_EXIT()
GUIDelete($DD_GUI)
Exit
EndFunc
If anyone has any idea whatsoever, please let me know 🙂
Thanks in advance and kind regards,
Jan

Hi AutoIters!
Here is my new UDF about GUIs: it's an enhanced mixture of Advanced InputBox (deprecated) and KODA Parser (deprecated), with additional functions.
What you can do with it:
Parse KODA files and directly create GUIs (_GUIUtils_CreateFromKODA)
Parse a simple JSON form definition to simply create advanced InputBoxes with any amount/type of input controls (_GUIUtils_CreateFromJSON)
Created GUIs are returned as Scripting.Dictionary objects, and you have helper functions to access GUIs controls by their names (_GUIUtils_HWnd, _GUIUtils_CtrlID, _GUIUtils_HCtrl ...)
A function that can make a GUI created from KODA/JSON (defined by it's $oForm object) and make it a modal InputDialogBox (just like InputBox, but returns all entered data as Scripting.Dictionary object)
Functions are documented, and there are some examples.
Consider this UDF as beta, but since I'm currently using it in a small commercial project, it should become production ready in near future.
To always get the latest code version, get it from Github (more up to date than this topic).
Update 04/02/2020:
New simple application example
Fixed focused control handling in _GUIUtils_InputDialog
Reset input values before returning from _GUIUtils_InputDialog
Fixed CloseOnEsc in _GUIUtils_InputDialog
Fixed Input not reset
Fixed all ListBox items are selected
Project now on GitHub https://github.com/matwachich/autoit-guiutils/
Update 05/02/2020:
Support for nodate for Date and Time input controls (pass null value)
New handling of focused control _GUIUtils_InputDialog: Now, you can specify the focused control in $oInitialData by setting "controlName:focus" = True
Updated documentation of _GUIUtils_InputDialog
Update 07/02/2020:
Bug corrected when setting Data input control
Added: abillity to read a single input control
New functions (_GUIUtils_GetInputs, _GUIUtils_WriteInputs), documentation completion.
Readme file and screenshots on Github Page
GUIUtils.zip

I am not able to use the $GUI_READ_EXTENDED with the Metro UDF, any work around ?
Local $aPos[2] = [$Radio1, $Radio2]
For $Radio In $aPos
If GUICtrlRead($Radio) = $GUI_UNCHECKED Then ContinueLoop
IniWrite($sGUIstate_IniFile, "Data", "POS", GUICtrlRead($Radio, $GUI_READ_EXTENDED)) ;; return the text of the menu item
ExitLoop
Next