I'm attempting to get this sample and CreateWindow_AVI.ahk script to work but I keep getting an error of: Call to nonexistant function on line 19. Here is the code sample that I'm trying to launch:
Code:
#Include CreateWindow_AVI.ahk
Gui +LastFound
guiID := WinExist()
Gui, Font, S10, Verdana
Gui, Add, Edit, x10 y10 Limit30 w300 h20 vSearchFileName, Readme.txt
Gui, Add, Button, x+5 y10 w75 h20 gSearch vB1 , Search
Gui, Add, Button, x+5 y10 w75 h20 +Disabled gCancel vB2 , Cancel
Gui, Add, StatusBar,,
Gui, Show, h75,File Search
Return
Search:
StopSearch=0
Gui, Submit, NoHide
GuiControl, Hide, B1
GuiControl, -Disabled, B2
FileDelete, FL.txt
hAVI := GuiAddAVI(guiID, 310, 5, 80, 40, 150) Line 19
Loop, C:\%SearchFileName%, 0, 1
{
IfEqual, StopSearch,1, Break
SplitPath, A_LoopFileLongPath, OutFileName, OutDir
SB_SetText(A_Space OutDir)
IfEqual, A_LoopFileName, %SearchFileName%
FileAppend, %A_LoopFileLongPath%`n, FL.txt
}
GuiControlDestroyAVI(hAVI)
GuiControl, Show, B1
IfExist, FL.txt, Run, FL.txt
GuiControl, +Disabled, B2
SB_SetText("Done!")
Return
Cancel:
StopSearch=1
Return
GuiClose:
ExitApp
The CreateWindow_AVI.ahk file is in the same subdirectory as this sample script. I thought I was following the example pretty well but obviously I'm missing something.
Any ideas?
Homer[/b]