ZTree.com  | ZEN  | About...  

 Index   Back

[Notice] ZBar Script Host ZAAP   [Notice]

By: Ian Binnie   Homepage   Sydney  
Date: Apr 14,2009 at 12: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

2,649 views      
Thread locked
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 56 users online (0 registered, 56 guests)
Index | Admin contact |   Forum Time: Mar 29, 2024 - 5:29 am UTC  |  Hits:62,393,678  (8,464 Today )
RSS Feed