Jump to content

TV Card Controls


OldCoder
 Share

Recommended Posts

I found the following script under the Example Scripts forum and left my query there. But it's been awhile since ppl have posted there, so I thought maybe the thread was dead and that I should post here.

WEBCAM\CAPTURE EXAMPLE:

CODE

$WM_CAP_START = 0x400

$WM_CAP_UNICODE_START = $WM_CAP_START +100

$WM_CAP_PAL_SAVEA = $WM_CAP_START + 81

$WM_CAP_PAL_SAVEW = $WM_CAP_UNICODE_START + 81

$WM_CAP_UNICODE_END = $WM_CAP_PAL_SAVEW

$WM_CAP_ABORT = $WM_CAP_START + 69

$WM_CAP_DLG_VIDEOCOMPRESSION = $WM_CAP_START + 46

$WM_CAP_DLG_VIDEODISPLAY = $WM_CAP_START + 43

$WM_CAP_DLG_VIDEOFORMAT = $WM_CAP_START + 41

$WM_CAP_DLG_VIDEOSOURCE = $WM_CAP_START + 42

$WM_CAP_DRIVER_CONNECT = $WM_CAP_START + 10

$WM_CAP_DRIVER_DISCONNECT = $WM_CAP_START + 11

$WM_CAP_DRIVER_GET_CAPS = $WM_CAP_START + 14

$WM_CAP_DRIVER_GET_NAMEA = $WM_CAP_START + 12

$WM_CAP_DRIVER_GET_NAMEW = $WM_CAP_UNICODE_START + 12

$WM_CAP_DRIVER_GET_VERSIONA = $WM_CAP_START + 13

$WM_CAP_DRIVER_GET_VERSIONW = $WM_CAP_UNICODE_START + 13

$WM_CAP_EDIT_COPY = $WM_CAP_START + 30

$WM_CAP_END = $WM_CAP_UNICODE_END

$WM_CAP_FILE_ALLOCATE = $WM_CAP_START + 22

$WM_CAP_FILE_GET_CAPTURE_FILEA = $WM_CAP_START + 21

$WM_CAP_FILE_GET_CAPTURE_FILEW = $WM_CAP_UNICODE_START + 21

$WM_CAP_FILE_SAVEASA = $WM_CAP_START + 23

$WM_CAP_FILE_SAVEASW = $WM_CAP_UNICODE_START + 23

$WM_CAP_FILE_SAVEDIBA = $WM_CAP_START + 25

$WM_CAP_FILE_SAVEDIBW = $WM_CAP_UNICODE_START + 25

$WM_CAP_FILE_SET_CAPTURE_FILEA = $WM_CAP_START + 20

$WM_CAP_FILE_SET_CAPTURE_FILEW = $WM_CAP_UNICODE_START + 20

$WM_CAP_FILE_SET_INFOCHUNK = $WM_CAP_START + 24

$WM_CAP_GET_AUDIOFORMAT = $WM_CAP_START + 36

$WM_CAP_GET_CAPSTREAMPTR = $WM_CAP_START + 1

$WM_CAP_GET_MCI_DEVICEA = $WM_CAP_START + 67

$WM_CAP_GET_MCI_DEVICEW = $WM_CAP_UNICODE_START + 67

$WM_CAP_GET_SEQUENCE_SETUP = $WM_CAP_START + 65

$WM_CAP_GET_STATUS = $WM_CAP_START + 54

$WM_CAP_GET_USER_DATA = $WM_CAP_START + 8

$WM_CAP_GET_VIDEOFORMAT = $WM_CAP_START + 44

$WM_CAP_GRAB_FRAME = $WM_CAP_START + 60

$WM_CAP_GRAB_FRAME_NOSTOP = $WM_CAP_START + 61

$WM_CAP_PAL_AUTOCREATE = $WM_CAP_START + 83

$WM_CAP_PAL_MANUALCREATE = $WM_CAP_START + 84

$WM_CAP_PAL_OPENA = $WM_CAP_START + 80

$WM_CAP_PAL_OPENW = $WM_CAP_UNICODE_START + 80

$WM_CAP_PAL_PASTE = $WM_CAP_START + 82

$WM_CAP_SEQUENCE = $WM_CAP_START + 62

$WM_CAP_SEQUENCE_NOFILE = $WM_CAP_START + 63

$WM_CAP_SET_AUDIOFORMAT = $WM_CAP_START + 35

$WM_CAP_SET_CALLBACK_CAPCONTROL = $WM_CAP_START + 85

$WM_CAP_SET_CALLBACK_ERRORA = $WM_CAP_START + 2

$WM_CAP_SET_CALLBACK_ERRORW = $WM_CAP_UNICODE_START + 2

$WM_CAP_SET_CALLBACK_FRAME = $WM_CAP_START + 5

$WM_CAP_SET_CALLBACK_STATUSA = $WM_CAP_START + 3

$WM_CAP_SET_CALLBACK_STATUSW = $WM_CAP_UNICODE_START + 3

$WM_CAP_SET_CALLBACK_VIDEOSTREAM = $WM_CAP_START + 6

$WM_CAP_SET_CALLBACK_WAVESTREAM = $WM_CAP_START + 7

$WM_CAP_SET_CALLBACK_YIELD = $WM_CAP_START + 4

$WM_CAP_SET_MCI_DEVICEA = $WM_CAP_START + 66

$WM_CAP_SET_MCI_DEVICEW = $WM_CAP_UNICODE_START + 66

$WM_CAP_SET_OVERLAY = $WM_CAP_START + 51

$WM_CAP_SET_PREVIEW = $WM_CAP_START + 50

$WM_CAP_SET_PREVIEWRATE = $WM_CAP_START + 52

$WM_CAP_SET_SCALE = $WM_CAP_START + 53

$WM_CAP_SET_SCROLL = $WM_CAP_START + 55

$WM_CAP_SET_SEQUENCE_SETUP = $WM_CAP_START + 64

$WM_CAP_SET_USER_DATA = $WM_CAP_START + 9

$WM_CAP_SET_VIDEOFORMAT = $WM_CAP_START + 45

$WM_CAP_SINGLE_FRAME = $WM_CAP_START + 72

$WM_CAP_SINGLE_FRAME_CLOSE = $WM_CAP_START + 71

$WM_CAP_SINGLE_FRAME_OPEN = $WM_CAP_START + 70

$WM_CAP_STOP = $WM_CAP_START + 68

#include <GUIConstants.au3>

Opt("GUIOnEventMode", 1)

$avi = DllOpen("avicap32.dll")

$user = DllOpen("user32.dll")

$snapfile = @ScriptDir & "\scrshot.bmp"

$moviefile = @ScriptDir & "\moviecam.avi"

$Main = GUICreate("WebCam - Ready",350,300)

GUISetOnEvent($GUI_EVENT_CLOSE, "Quit")

$cap = DllCall($avi, "int", "capCreateCaptureWindow", "str", "cap", "int", BitOR($WS_CHILD,$WS_VISIBLE), "int", 15, "int", 15, "int", 320, "int", 240, "hwnd", $Main, "int", 1)

DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_DRIVER_CONNECT, "int", 0, "int", 0)

DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_SET_SCALE, "int", 1, "int", 0)

;DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_SET_OVERLAY, "int", 1, "int", 0)

DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_SET_PREVIEW, "int", 1, "int", 0)

DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_SET_PREVIEWRATE, "int", 30, "int", 0)

$Combo = GUICtrlCreateCombo("Video Source",15,270,140,-1,$CBS_DROPDOWNLIST)

GUICtrlSetData(-1,"Video Display|Video Format|Compression","Video Source")

$Button = GUICtrlCreateButton("Show",170,270,100,21)

GUICtrlSetOnEvent(-1,"Button")

GUISetState(@SW_SHOW)

HotKeySet("{INSERT}", "SnapShot"); Press 'Insert' to make a SnapShot !

HotKeySet("{HOME}", "StartRecording"); Press 'Home' to start recording !

Func Quit()

;DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_SET_CALLBACK_FRAME, "int", 0, "int", 0)

DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_END, "int", 0, "int", 0)

DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_DRIVER_DISCONNECT, "int", 0, "int", 0)

;DllClose($avi); crashing, no one knows why...

DllClose($user)

Exit

EndFunc

Func Button()

Switch GUICtrlRead($Combo)

Case "Video Source"

DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_DLG_VIDEOSOURCE, "int", 0, "int", 0)

Case "Video Display"

DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_DLG_VIDEODISPLAY, "int", 0, "int", 0)

Case "Video Format"

DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_DLG_VIDEOFORMAT, "int", 0, "int", 0)

Case "Compression"

DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_DLG_VIDEOCOMPRESSION, "int", 0, "int", 0)

EndSwitch

EndFunc

While 1

Sleep(1)

Wend

Func SnapShot()

DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_GRAB_FRAME_NOSTOP, "int", 0, "int", 0)

DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_FILE_SAVEDIBA, "int", 0, "str", $snapfile)

EndFunc

Func StartRecording()

WinSetTitle($Main, "", "WebCam - Capturing...")

HotKeySet("{HOME}", "StopRecording")

DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_FILE_SET_CAPTURE_FILEA, "int", 0, "str", $moviefile)

DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_SEQUENCE, "int", 0, "int", 0)

EndFunc

Func StopRecording()

DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_STOP, "int", 0, "int", 0)

WinSetTitle($Main, "", "WebCam - Ready")

HotKeySet("{HOME}", "StartRecording")

DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_FILE_SAVEDIBA, "int", 0, "str", $moviefile)

EndFunc

MY QUERY IN THE EXAMPLE SCRIPTS FORUM:

Hi,

I'm new, so be gentle. I have been coming to this forum and using AutoIt for some time now and must say that I am quite impressed with both.

Now, with the back-slapping out of the way, I'd like to ask a question. The WebCam script posted here is really quite good and has opened some avenues for me. However, I am not a C++ programmer and am a bit lost in the whole workings of it. I am using a TV card instead of a cam with this script and I'd like to take the script and be able to change the actual resolution of the output, (to say 640 x 480 or 1024 x 768). Not change the scale, (which one could do on this line:

$cap = DllCall($avi, "int", "capCreateCaptureWindow", "str", "cap", "int", BitOR($WS_CHILD,$WS_VISIBLE), "int", 15, "int", 15, "int", 320, "int", 240, "hwnd", $Main, "int", 1) )

but the actual resolution.

Also, I'd like to be able to get/set the channel and get/set capture device info. Any help anyone could give me would be greatly appreciated. :P

I'd also like to point out that the recording side of this script didn't work with my TV card. I fixed this by changing the last line of the StopRecording() function from:

DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_FILE_SAVEDIBA, "int", 0, "str", $moviefile)

to:

DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_FILE_SAVEASA, "int", 0, "str", $moviefile)

if this is at all helpful to anyone.

Thanks in advance. (Should this have been posted in the General Support part of this forum or under this thread)? Hope to hear from anyone soon.

To clarify, I know that you can bring up a dialog and set these things manually, however I'd like to do it from the script. I hope someone can help me out. Thanks.
"Intelligence is the ability to adapt to change."                                      - Stephen Hawking                                        "...not the ability to exploit others."                                                  - OldCoder
Link to comment
Share on other sites

<REPOST>

(Forgot to make my email available...oops)

I found the following script under the Example Scripts forum and left my query there. But it's been awhile since ppl have posted there, so I thought maybe the thread was dead and that I should post here.

WEBCAM\CAPTURE EXAMPLE:

$WM_CAP_START = 0x400
$WM_CAP_UNICODE_START = $WM_CAP_START +100
$WM_CAP_PAL_SAVEA = $WM_CAP_START + 81
$WM_CAP_PAL_SAVEW = $WM_CAP_UNICODE_START + 81
$WM_CAP_UNICODE_END = $WM_CAP_PAL_SAVEW
$WM_CAP_ABORT = $WM_CAP_START + 69
$WM_CAP_DLG_VIDEOCOMPRESSION = $WM_CAP_START + 46
$WM_CAP_DLG_VIDEODISPLAY = $WM_CAP_START + 43
$WM_CAP_DLG_VIDEOFORMAT = $WM_CAP_START + 41
$WM_CAP_DLG_VIDEOSOURCE = $WM_CAP_START + 42
$WM_CAP_DRIVER_CONNECT = $WM_CAP_START + 10
$WM_CAP_DRIVER_DISCONNECT = $WM_CAP_START + 11
$WM_CAP_DRIVER_GET_CAPS = $WM_CAP_START + 14
$WM_CAP_DRIVER_GET_NAMEA = $WM_CAP_START + 12
$WM_CAP_DRIVER_GET_NAMEW = $WM_CAP_UNICODE_START + 12
$WM_CAP_DRIVER_GET_VERSIONA = $WM_CAP_START + 13
$WM_CAP_DRIVER_GET_VERSIONW = $WM_CAP_UNICODE_START + 13
$WM_CAP_EDIT_COPY = $WM_CAP_START + 30
$WM_CAP_END = $WM_CAP_UNICODE_END
$WM_CAP_FILE_ALLOCATE = $WM_CAP_START + 22
$WM_CAP_FILE_GET_CAPTURE_FILEA = $WM_CAP_START + 21
$WM_CAP_FILE_GET_CAPTURE_FILEW = $WM_CAP_UNICODE_START + 21
$WM_CAP_FILE_SAVEASA = $WM_CAP_START + 23
$WM_CAP_FILE_SAVEASW = $WM_CAP_UNICODE_START + 23
$WM_CAP_FILE_SAVEDIBA = $WM_CAP_START + 25
$WM_CAP_FILE_SAVEDIBW = $WM_CAP_UNICODE_START + 25
$WM_CAP_FILE_SET_CAPTURE_FILEA = $WM_CAP_START + 20
$WM_CAP_FILE_SET_CAPTURE_FILEW = $WM_CAP_UNICODE_START + 20
$WM_CAP_FILE_SET_INFOCHUNK = $WM_CAP_START + 24
$WM_CAP_GET_AUDIOFORMAT = $WM_CAP_START + 36
$WM_CAP_GET_CAPSTREAMPTR = $WM_CAP_START + 1
$WM_CAP_GET_MCI_DEVICEA = $WM_CAP_START + 67
$WM_CAP_GET_MCI_DEVICEW = $WM_CAP_UNICODE_START + 67
$WM_CAP_GET_SEQUENCE_SETUP = $WM_CAP_START + 65
$WM_CAP_GET_STATUS = $WM_CAP_START + 54
$WM_CAP_GET_USER_DATA = $WM_CAP_START + 8
$WM_CAP_GET_VIDEOFORMAT = $WM_CAP_START + 44
$WM_CAP_GRAB_FRAME = $WM_CAP_START + 60
$WM_CAP_GRAB_FRAME_NOSTOP = $WM_CAP_START + 61
$WM_CAP_PAL_AUTOCREATE = $WM_CAP_START + 83
$WM_CAP_PAL_MANUALCREATE = $WM_CAP_START + 84
$WM_CAP_PAL_OPENA = $WM_CAP_START + 80
$WM_CAP_PAL_OPENW = $WM_CAP_UNICODE_START + 80
$WM_CAP_PAL_PASTE = $WM_CAP_START + 82
$WM_CAP_SEQUENCE = $WM_CAP_START + 62
$WM_CAP_SEQUENCE_NOFILE = $WM_CAP_START + 63
$WM_CAP_SET_AUDIOFORMAT = $WM_CAP_START + 35
$WM_CAP_SET_CALLBACK_CAPCONTROL = $WM_CAP_START + 85
$WM_CAP_SET_CALLBACK_ERRORA = $WM_CAP_START + 2
$WM_CAP_SET_CALLBACK_ERRORW = $WM_CAP_UNICODE_START + 2
$WM_CAP_SET_CALLBACK_FRAME = $WM_CAP_START + 5
$WM_CAP_SET_CALLBACK_STATUSA = $WM_CAP_START + 3
$WM_CAP_SET_CALLBACK_STATUSW = $WM_CAP_UNICODE_START + 3
$WM_CAP_SET_CALLBACK_VIDEOSTREAM = $WM_CAP_START + 6
$WM_CAP_SET_CALLBACK_WAVESTREAM = $WM_CAP_START + 7
$WM_CAP_SET_CALLBACK_YIELD = $WM_CAP_START + 4
$WM_CAP_SET_MCI_DEVICEA = $WM_CAP_START + 66
$WM_CAP_SET_MCI_DEVICEW = $WM_CAP_UNICODE_START + 66
$WM_CAP_SET_OVERLAY = $WM_CAP_START + 51
$WM_CAP_SET_PREVIEW = $WM_CAP_START + 50
$WM_CAP_SET_PREVIEWRATE = $WM_CAP_START + 52
$WM_CAP_SET_SCALE = $WM_CAP_START + 53
$WM_CAP_SET_SCROLL = $WM_CAP_START + 55
$WM_CAP_SET_SEQUENCE_SETUP = $WM_CAP_START + 64
$WM_CAP_SET_USER_DATA = $WM_CAP_START + 9
$WM_CAP_SET_VIDEOFORMAT = $WM_CAP_START + 45
$WM_CAP_SINGLE_FRAME = $WM_CAP_START + 72
$WM_CAP_SINGLE_FRAME_CLOSE = $WM_CAP_START + 71
$WM_CAP_SINGLE_FRAME_OPEN = $WM_CAP_START + 70
$WM_CAP_STOP = $WM_CAP_START + 68


#include <GUIConstants.au3>
Opt("GUIOnEventMode", 1)
$avi = DllOpen("avicap32.dll")
$user = DllOpen("user32.dll")
$snapfile = @ScriptDir & "\scrshot.bmp"
$moviefile = @ScriptDir & "\moviecam.avi"

$Main = GUICreate("WebCam - Ready",350,300)
GUISetOnEvent($GUI_EVENT_CLOSE, "Quit")
$cap = DllCall($avi, "int", "capCreateCaptureWindow", "str", "cap", "int", BitOR($WS_CHILD,$WS_VISIBLE), "int", 15, "int", 15, "int", 320, "int", 240, "hwnd", $Main, "int", 1)

DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_DRIVER_CONNECT, "int", 0, "int", 0)
DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_SET_SCALE, "int", 1, "int", 0)
;DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_SET_OVERLAY, "int", 1, "int", 0)
DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_SET_PREVIEW, "int", 1, "int", 0)
DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_SET_PREVIEWRATE, "int", 30, "int", 0)

$Combo = GUICtrlCreateCombo("Video Source",15,270,140,-1,$CBS_DROPDOWNLIST)
GUICtrlSetData(-1,"Video Display|Video Format|Compression","Video Source")
$Button = GUICtrlCreateButton("Show",170,270,100,21)
GUICtrlSetOnEvent(-1,"Button")

GUISetState(@SW_SHOW)
HotKeySet("{INSERT}", "SnapShot"); Press 'Insert' to make a SnapShot !
HotKeySet("{HOME}", "StartRecording"); Press 'Home' to start recording !

Func Quit()
;DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_SET_CALLBACK_FRAME, "int", 0, "int", 0)
DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_END, "int", 0, "int", 0)
DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_DRIVER_DISCONNECT, "int", 0, "int", 0)
;DllClose($avi); crashing, no one knows why...
DllClose($user)
Exit
EndFunc

Func Button()
Switch GUICtrlRead($Combo)
Case "Video Source"
DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_DLG_VIDEOSOURCE, "int", 0, "int", 0)
Case "Video Display"
DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_DLG_VIDEODISPLAY, "int", 0, "int", 0)
Case "Video Format"
DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_DLG_VIDEOFORMAT, "int", 0, "int", 0)
Case "Compression"
DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_DLG_VIDEOCOMPRESSION, "int", 0, "int", 0)
EndSwitch
EndFunc

While 1
Sleep(1)
Wend

Func SnapShot()
DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_GRAB_FRAME_NOSTOP, "int", 0, "int", 0)
DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_FILE_SAVEDIBA, "int", 0, "str", $snapfile)
EndFunc

Func StartRecording()
WinSetTitle($Main, "", "WebCam - Capturing...")
HotKeySet("{HOME}", "StopRecording")
DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_FILE_SET_CAPTURE_FILEA, "int", 0, "str", $moviefile)
DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_SEQUENCE, "int", 0, "int", 0)
EndFunc

Func StopRecording()
DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_STOP, "int", 0, "int", 0)
WinSetTitle($Main, "", "WebCam - Ready")
HotKeySet("{HOME}", "StartRecording")
DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_FILE_SAVEDIBA, "int", 0, "str", $moviefile)
EndFunc

MY QUERY IN THE EXAMPLE SCRIPTS FORUM:

Hi,

I'm new, so be gentle. I have been coming to this forum and using AutoIt for some time now and must say that I am quite impressed with both.

Now, with the back-slapping out of the way, I'd like to ask a question. The WebCam script posted here is really quite good and has opened some avenues for me. However, I am not a C++ programmer and am a bit lost in the whole workings of it. I am using a TV card instead of a cam with this script and I'd like to take the script and be able to change the actual resolution of the output, (to say 640 x 480 or 1024 x 768). Not change the scale, (which one could do on this line:

$cap = DllCall($avi, "int", "capCreateCaptureWindow", "str", "cap", "int", BitOR($WS_CHILD,$WS_VISIBLE), "int", 15, "int", 15, "int", 320, "int", 240, "hwnd", $Main, "int", 1) )

but the actual resolution.

Also, I'd like to be able to get/set the channel and get/set capture device info. Any help anyone could give me would be greatly appreciated. :P

I'd also like to point out that the recording side of this script didn't work with my TV card. I fixed this by changing the last line of the StopRecording() function from:

DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_FILE_SAVEDIBA, "int", 0, "str", $moviefile)

to:

DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_FILE_SAVEASA, "int", 0, "str", $moviefile)

if this is at all helpful to anyone.

Thanks in advance. (Should this have been posted in the General Support part of this forum or under this thread)? Hope to hear from anyone soon.

To clarify, I know that you can bring up a dialog and set these things manually, however I'd like to do it from the script. I hope someone can help me out. Thanks.
"Intelligence is the ability to adapt to change."                                      - Stephen Hawking                                        "...not the ability to exploit others."                                                  - OldCoder
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...