The following demo works only if the v-variables are set as global. How this could be avoided?
(Instead of the label inside this function another function could be used; no labels outside a frunction should be used.)
Code: Select all
MakeGui()
RETURN
MakeGui() {
Global vEdit1, vEdit2
Gui Test: Default
Gui Test: Add, Edit, w570 vvEdit1, Something
Gui Test: Add, Edit, w570 vvEdit2, Else
Gui Test: Show, w600
TestGuiDropFiles:
If !A_GuiEvent
Return
MsgBox %A_GuiEvent%
If A_GuiControl in vEdit1 ; ,vEdit2
GuiControl Test: , %A_GuiControl%, %A_GuiEvent%
Return
}