#include #include #include #include #include #include #include Opt("GUIOnEventMode", 1) Opt("GUICoordMode", 1) Global $GUILoop1 = 1 ; Register WM_NOTIFY handler $sRet = _CFF_RegMsg() If Not $sRet Then MsgBox(16, "Failure!", "Handler not registered") Exit EndIf $GUI_Main = GUICreate("PDF Scan Move & Rename - ", 808, 550, -1, -1, BitOR($WS_SYSMENU, $WS_CAPTION, $WS_CLIPCHILDREN)) GUISetBkColor(0xECECEC) GUICtrlCreateLabel(" Custom text description:", 8, 6, 534, 16) $gui_treeview1 = GUICtrlCreateTreeView(3, 28, 400, 450) $gobutton = GUICtrlCreateButton("Go", 730, 500, 60, 30, $BS_CENTER) GUICtrlSetOnEvent($gobutton, "go_button") GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClicked") GUISetState(@SW_SHOW) While $GUILoop1 = 1 Sleep(200) WEnd Func go_button() $superTest = _CFF_Embed($gui_treeview1,"D:\TestFolder","*|test1",3) ;ConsoleWrite(@error & " - " & @extended & " - " & $superTest & @CRLF) ConsoleWrite($superTest) EndFunc Func CLOSEClicked() Exit EndFunc