做了一個錄像程式,出現了2個問題:
1.點擊錄像時視窗會卡住未回應,要點擊幾下視窗,才能點停止按鈕.
2.能錄像,但是不能保存到我設定的路徑里面,而且檔案命名只是一個盤符,沒后綴.
請各位幫忙看一下是什么問題.
string videoname
cb_stop.enabled = true
enabled = false
videoname = gs_cd_path + string(datetime(today(),now()),"yyyymmddhhmmss") + ".avi"
if lhand <> 0 then
send(lhand,wm_cap_file_set_capture_filea,0,videoname)
send(lhand,wm_cap_sequence,0,0)
end if
uj5u.com熱心網友回復:
試試把路徑設定為c:\1.avi懷疑是轉義字符的問題
uj5u.com熱心網友回復:
pb中的轉義字符為~,可能那個avi里的為\引起的,如果用c:\1.avi 不行,你試試用c:\\1.avi轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/46531.html
標籤:API 調用
