Archive for September, 2006

Handle ActiveX event in VBScript

Friday, September 29th, 2006

The shell VBScript can handle ActiveX event as well. The following is an example on how to handle the events from our Active TTS  component.

 Save it and click to run on your desktop after installing our component.

 

Dim tts
Set tts = WScript.CreateObject(“TTSObj.TextToSpeech.1″, “tts_”)
tts.Speak “Hello world”, 0
sub tts_OnTTSStart
msgBox “start”
end sub

sub tts_OnTTSEnd
msgBox “end”
end sub

Exchange links?

Saturday, September 23rd, 2006

Anyone want to exchange links with us?

Feel free to send email to us

 

SnapWebBrowser method

Saturday, September 23rd, 2006

Recently we add a new method called SnapWebBrowser to htmlsnapshot which allows you to capture the html page loaded in an existing webbrowser.

Check it out.

Check snap errors with htmlsnapshot

Wednesday, September 13th, 2006

htmlsnapshot supports reporting error code for SnapUrl function. This can help you decide the problem of failing to snap certain pages.

 It works like this:

snap.SnapUrl(…..) 

 iErrorCode=snap.GetErrorCode()

The error code is an interger value which has following values:

0: The normal state.

1: The snapshot is successfully taken.

-1: Fail to take the snapshot of the page, check if your html image is too big to be fit into memory,

-2: Fail to save to file, check if you can write to the output image path

-3: Fail to open the URL. check network please

-4: Time is out before taking a snapshot, use a larger time out value or call SetForceSnap before snapping.