Re: [nbos] [AS] AlienAPI Widget Questions
"David Loman"
Thu Oct 25th, 2007
Okay, found solutions to:

WScript.CreateObject
and
WScript.ScriptFullName.

Just going to use:
appldir = AstroDirectory() + "Plugins\"
set ie = CreateObject("internetexplorer.application")

Now the issue is:

Without access to the WScript object, how does one put the thread to sleep?

This will not work as the WScript object is intentionally NOT available to
applications envoking a VBScript Enviornment:

do
WScript.Sleep(100)
ProcessAstroScriptEvents
loop until bExit = True

Any ideas? Anyone? I need a sleep function that does NOT lock the CPU, so
Wait() and Delay() calls won't work, nor will a custom function like:

Sub Sleep(intSecs)
Dim dtStart, boolDone
dtStart = now()
boolDone = False
While Not boolDone
If DateDiff("s",dtStart,now()) >= cint(intSecs) Then
boolDone = True
End If
Wend
End Sub



-Help!




On 10/25/07, David Loman <dloman77-at-gmail.com> wrote:
>
> Well since the widgets available via the AlienAPI are kinda limited, aka
> no button widget, no treeview widget, etc, then I was thinking of
> instantiating a InternetExplorer.Application object using:
> WScript.SreateObject(" InternetExplorer.Application")
> And utilizing an HTML form to submit information, have VBS process it
> (since you can bind events to the page ( onLoad, onQuit, etc) Basicly
> using IE as a UberAstroscriptGUI.
>
> -Dave Loman
>
>
> On 10/25/07, NBOS Support <support2-at-nbos.com> wrote:
> >
> > At 08:15 AM 10/23/2007, you wrote:
> > >How do you / is it possible to access the WScript object from inside
> > an
> > >.astroscript ?
> > >Specificly, I am needing to use:
> > >
> > >WScript.SreateObject()
> > >and
> > >WScript.ScriptFullName()
> >
> > I'm not sure how you'd do that, or if you can. The scripting engine
> > doesnt
> > use WSH - it calls the interfaces directly. So I dont know if a WScript
> > object is available. What are you trying to do? There may be
> > alternative
> > methods.
> >
> > Ed
> >
> >
> >
> > _______________________________________________
> > Nbossoftware mailing list
> >
> >
> >
>
>

_______________________________________________
Nbossoftware mailing list



Copyright © 2003-2007, NBOS Software. All rights reserved. 'Fractal Mapper', 'ScreenMonkey', 'Character Sketcher', 'Inspiration Pad', 'Fractal World Explorer', 'Goblin API', 'AstroSynthesis' are trademarks of NBOS Software. 'Dwarven Beserker' art by V. Shane.
Member contributed resources