#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include "CoProc.au3"
#Region ### START Koda GUI section ### Form=
Global $Label1,$Label2,$arry[10]
$Form1 = GUICreate("Form1", 623, 444, 192, 124)
$Button1 = GUICtrlCreateButton("OK", 168, 248, 249, 73)
$Label1 = GUICtrlCreateLabel("This is for test 1!", 10, 60, 230, 81)
GUICtrlSetFont(-1, 24, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
$Label2 = GUICtrlCreateLabel("This is for test 2!", 350, 60, 230, 81)
GUICtrlSetFont(-1, 24, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
$Label3 = GUICtrlCreateLabel("This is for test 3!", 10, 150, 250, 81)
GUICtrlSetFont(-1, 24, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
$Label4 = GUICtrlCreateLabel("This is for test 4!", 350, 150, 250, 81)
GUICtrlSetFont(-1, 24, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_CoProc("test1",$Label1&"|"&$Label2)
_CoProc("test2",$Label3&"|"&$Label4)
EndSwitch
WEnd
Func Test1($tt)
Local $aa
$aa=StringSplit($tt,"|")
ControlSetText("Form1","",Number($aa[1]),"Hi,one change!")
ControlSetText("Form1","",Number($aa[2]),"Hi,two change!")
MsgBox(0,"message1",$tt)
EndFunc
Func Test2($ss)
Local $bb
$bb=StringSplit($ss,"|")
ControlSetText("Form1","",Number($bb[1]),"Hi,third change!")
ControlSetText("Form1","",Number($bb[2]),"Hi,four change!")
MsgBox(0,"message2",$ss)
EndFunc