Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB6 and Javascript- how do i control a script from an application?

Status
Not open for further replies.

Toastie

Programmer
May 19, 2001
123
AU
I wrote this application and what it does is it plays flash cartoons.
It is a carrtoon viewer.
Currently i have over 100 minutes of play list.

One problem is that the user has no control over which cartoons he/she wants to play they are just a play list.

when one cartoon finishes - advert - play the next cartoon

i want to be able to pick a javascript array element from outside the web page.
Like have a button on my app which says skip cartoon.

at the moment if the users connention drops out the user has to start watching the cartoons right from the begining

a fairly tall task to ask but i just want to know if it can be done and maybe rescources as to how to go about it

cheers from MATT the programmer.
Not Paul the living holiday
 
hello there

VBScripts/Jscripts are executed using WScript.exe which takes in parameter a script file. try to execute that command using SHELL command.

thanx

ComputerJin
 
i dont think wscript can help me
i have been searching for solutions within vbs js and i think it is not quite the right thing
maybe asp or dhtml or something
 
If you doing this from a vb app, i know that you can recieve events from a webbrowser object. If you load your flash page into the webbrowser then you can recieve events and call client side functions from VB. This way you can provide a full set of controls for your viewer
 
i thought of getting rid of the web browser and just having a flash component in my veiwer but i heard a roumor that it would cost hundreds of thousands of dollars a year in royalties to macromedia

i guess i am just going to be writing hundreds of html web pages

but there is always some sort of work around or solution right?
 
helo

u can set a reference to Microsoft script library in ur vb app then u can use that object to call scripts, either in vbscript or jscript, from within ur application. this way u need not to use web browser.
it is a fast, quick n small solution, i think. :)
thanx
ComputerJin
 
getting tyred now

i have looked at another angle:

capturing the current code in vb with inet changing it in vb saving it localy and running it localy
a fairly heavy and slow process i think but hey slow computers suck anyhow
i dont know anyone that dosent have at least a 300mhz with ata 66 hard drives so should be ok
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top