Page 1 of 1

Runtime Error 91

PostPosted: Mon Aug 13, 2007 6:22 pm
by ARTFULDodgerOSU
I installed vac on my system which has vista ultimate 64. Whenever I try to run the vac builder I get and error that says 'Runtime error 91, Object variable not set or with block variable not set'. Is there any way to fix this?

PostPosted: Tue Aug 14, 2007 7:43 pm
by Shift_E
Hi ARTFULDodgerOSU,

It's an install issue, probably one of these files didn't get installed or registered in \Windows\System32:

RICHTX32.OCX
MCI3.,OCX
MSCOMCT2.OCX
MSINET.OCX
Mscomctl.ocx
GbDirBrowser.ocx
Dwspeak.dll
Dwutilities.dll

The install may have been stopped by incorrect VAC version, anti-virus, spyware, Windows UAC or any number of reasons. Make sure you have downloaded the correct version of VAC for the Windows OS you are using and try to re-install.

PostPosted: Wed Oct 03, 2007 10:29 pm
by Amfohr
I have the same OS and indeed the MSCOMCT2.OCX is missing.

Microsoft also stated that this file was not included during Vista install.

Efforts to download and register it have not been succesfull yet.

Anybody solved this?

Cheers.

PostPosted: Thu Oct 04, 2007 1:18 am
by Shift_E
Hi Amfohr,

I've included all the files I listed in the install for VAC.

This may or may not help, right-click the installation icon for the program, and then click Run as administrator.

PostPosted: Thu Oct 04, 2007 1:39 am
by Amfohr
I noticed the file has been copied to the SysWOW64 directory but apparently didn't register.

Could it be not compatible with a 64-bits OS or could it be caused by the present files MSCOMCT3N.OCX and MSCOMCTL32.OCX?

PostPosted: Thu Oct 04, 2007 12:14 pm
by Shift_E
Hi Amfohr,

No, it's compatible with Vista 64. SysWOW64 is the system root directory for Vista 64, so that is also the correct location for the files.

Did you register the file? Does VAC work now?

PostPosted: Thu Oct 04, 2007 1:56 pm
by Amfohr
The problem is caused by the language versioin I use in Vista. Speech recognition is only supported in English. After installation of the English Language pack the Speech recoginition is up and the VAC program runs. Next problem is it says my 30 day evaluation period is over when in fact I havent tested it for a day but I dont mind purchasing it so I guess it will work out now.

Cheers.

PostPosted: Fri Oct 05, 2007 12:52 am
by Amfohr
I bought the program and need a profile for BF2. I found the navigation stuff for the COMMOROSE Q so I can call the messages.

For me the COMMOROSE is not Q but G and therefor I made the following code:

version="1.0"?><profile>
<!--Battlefield 2 command Set-->
<command name="COMMOROSE Q - I'm Sorry" phrase="Sorry" successphrase="" sndok="">
<key value="g" extended="NONE" pause="100" repeat="1" duration="200" toggle="-1"/>
<key extended="NumPad 6" pause="100" repeat="1" duration="200"/>
<key extended="NumPad 5" pause="100" repeat="1" duration="200"/>
<key value="g" extended="NONE" pause="100" repeat="1" duration="200" toggle="-1"/>
</command>

<!--Voice Activation Command Set-->
<set key="NONE" key1="NONE" vackey1="NONE" vackey2="NONE" ptamode="default" vacoffsnd="C:\Program Files (x86)\VAC System\Sounds\offline.wav" vaconsnd="C:\Program Files (x86)\VAC System\Sounds\working.wav" off="NONE" off1="NONE" off2="NONE" off3="NONE">

</set>
</profile>

I thought the toggle had to be used to press and release the 'G'-key but it doesnt work. Executed in Notepad its shows just '65'. What am I doing wrong?

Cheers.

PostPosted: Fri Oct 05, 2007 12:06 pm
by Shift_E
Hi Amfohr,

Only use toggle once on the 'G' key, then press 'G' again to release.

<key value="g" extended="NONE" pause="100" repeat="1" duration="200" toggle="-1"/>
<key extended="NumPad 6" pause="100" repeat="1" duration="200"/>
<key extended="NumPad 5" pause="100" repeat="1" duration="200"/>
<key value="g" extended="NONE" pause="100" repeat="1" duration="200"/>

Another way to work with the 'G' key is use duration which is the length of time the key is depressed. 1000=1 second, so if you wanted the key depressed for 3 and a half seconds, set the duration to 3500.

PostPosted: Fri Oct 05, 2007 2:15 pm
by Amfohr
Well the 'G'-key does not seem to respond to the toggle. Without toggle it does respond but then it waits till release and numpad 6 and numpad 5 are executed afterwards.

Another option is I operate the 'G'-key myself and then make the call but that would of course be semi-voice activated. This does work btw.

Any other suggestions?

Cheers.

PostPosted: Sat Oct 06, 2007 3:42 am
by Amfohr
Well I actually found the answer in another Voice activation program I have and that program stated clearly that 'normal' keys, in this case of the type value, are not suitable to toggle. That program only used the special keys. So the answer is, assign the commorose to a secondary special key like Numpad Enter. Use this key of the extended type to toggle and it works :wink:

Furthermore the timing is important to get proper operation.