I am editing code in VB that needs to automatically save an image from a webcam without having the file name prompt dialogue box to appear. The program should just accept the default filename.
<b>The file name prompt cannot appear</b> because the program is to be controlled without a user present at the desktop.
Here is the code:
Private Sub mnuSaveFrame_Click()
Dim FileName As String
Dim retVal As Boolean
Dim i As String
Dim j As Integer
j = NumberOfFiles("E:\My docs\Semester 4\Project\Pictures\")
FileName = CStr(j)
retVal = VBGetSaveFileName(FileName, _
InitDir:="E:\My Docs\semester 4\project\pictures\", _
DlgTitle:="Save Single Frame", _
If False <> retVal Then
retVal = capFileSaveDIB(hCapWnd, FileName)
If True <> retVal Then
MsgBox "Problem saving frame", vbInformation, App.Title
Thank you very much for your help, and it is anticipated!