ZTree.com  | ZTreeWiki  | ZEN  | ZEST  | About...  

 Index   Back

[Notice] ZBar Script Host ZAAP   [Notice]

By: Ian Binnie   Homepage   Sydney  
Date: Apr 14,2009 at 02:57
In Response to: [Notice] ZBar Script Host ZAAP (Martijn Coppoolse)

> It's still a bit rough round the edges, but if you have ideas or
> comments, I'll gladly hear them. Heck, I might even do
> something about them! ;-)

I tried running a vbs script (below) using the ZBar Script Host.

Unfortunately I can't seem to do anything useful.
In particular I wanted to access other WScript Methods/Properties.
Is this possible?

RegExp.js mentions objects:- zbar, File, OtherFile
zbar seems to work.

Option Explicit

Dim oShell

Function main()
Set oShell = WScript.CreateObject("WScript.Shell")
Alert("Main Called")
End Function

Function onAssist(zbar)
Dim Return
onAssist = TRUE

If ((zbar.ZtreeScreenStatus = Asc("l")) Or (zbar.ZtreeScreenStatus = Asc("r"))) And zbar.ZtreePage = Asc("F") Then
Return = oShell.Run("%#ZThome%\Tfc.exe -b " & """" & zbar.NewFilename & """" & " " & """" & zbar.OtherFilename & """", 0, True)
If Return = 0 Then onAssist = FALSE
End If
End Function

355 views      
Thread locked
 

Messages in this Thread

 
82,793 Postings in 10,445 Threads, 196 registered users, 10 users online (0 registered, 10 guests)
Index | Admin contact |   Forum Time: Sep 8, 2010 - 6:57 pm CDT  |  Hits:5,285,371  (2,768 Today )
RSS Feed