פורסם 2007 באפריל 2418 שנים שלום חבריי. אני באמצע פרויקט. ניסיתי לשפר את הנגישות בתוכנית ע"י ה- voice recognitionאבל משום מה זה לא פועל לי.הקוד שצירפתי זה הקוד שהשתמשתי בו בפרויקט וה-vb לא אומר שיש בעיה בקימפול או משהו,פשוט התוכנית לא מחליטה לאיזה case להיכנס ולא מבצעת את מה שנדרש. מה לא עשיתי בסדר? פליז תעזרו לי!!Option Explicit Dim totaldata As StringPrivate Declare Function ShellExecute Lib "shell32.dll" _Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal _lpOperation As String, ByVal lpFile As String, ByVal _lpParameters As String, ByVal lpDirectory As String, _ByVal nShowCmd As Long) As LongPrivate Sub DirectSR1_PhraseFinish(ByVal flags As Long, ByVal beginhi As Long, ByVal beginlo As Long, ByVal endhi As Long, ByVal endlo As Long, ByVal Phrase As String, ByVal parsed As String, ByVal results As Long)Dim sFile As StringDim noth As LongSelect Case PhraseCase "home" MsgBox ("1")Case "chair" MsgBox ("2")Case "phone"MsgBox ("3")End SelectEnd SubPrivate Sub Form_Load() totaldata = "[Grammar]" & vbCrLf & _ "langid = 1033" & vbCrLf & _ "type=cfg" & vbCrLf & _ "[<Start>]" & vbCrLf & _ "<start>=Notepad" & vbCrLf & _ "<start>=Volume" & vbCrLf & _"<start>=Media Player" & vbCrLf DirectSR1.GrammarFromString (totaldata) DirectSR1.ActivateEnd Sub
פורסם 2007 באפריל 2418 שנים הייתי ממליץ לשנות ב totaldata את Notepad / Volume / Media PLayer ב home / chair / phone
ארכיון
דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.