|
-
Mar 22nd, 2008, 09:44 AM
#1
Thread Starter
New Member
How to call javascript in vb
I have developed javascript(.js) for adobe illustrator. Now i need to know how to call javascript from vb6.
Regards,
Maria
-
Mar 22nd, 2008, 09:54 AM
#2
Fanatic Member
Re: How to call javascript in vb
-
Mar 22nd, 2008, 09:58 AM
#3
Re: How to call javascript in vb
What do you mean call JavaScript from VB? JavaScript is a language written for web browsers, and it uses the browser's object model, ie: DOM (Document Object Model).
Can you give an example what you want to do?
-
Mar 22nd, 2008, 06:01 PM
#4
Re: How to call javascript in vb
If I'm remembering correctly, Illustrator can work with JavaScript, accept certain commands, etc. What I don't know is how Illustrator accepts the .js (or .vbs for that matter). It may be a commandline argument, but you will need to consult the Illustrator documentation on how this can be invoked via command line. Once you get that, I'm sure VB6's Shell can help you.
-
Mar 24th, 2008, 02:54 AM
#5
Thread Starter
New Member
Re: How to call javascript in vb
 Originally Posted by mendhak
If I'm remembering correctly, Illustrator can work with JavaScript, accept certain commands, etc. What I don't know is how Illustrator accepts the .js (or .vbs for that matter). It may be a commandline argument, but you will need to consult the Illustrator documentation on how this can be invoked via command line. Once you get that, I'm sure VB6's Shell can help you.
I called the javascript(.js) file through visual Basic for Adobe illustrator CS. Its working nice. But some times javascript runtime error occured. But if i run the .js file directly, it does not throws any error. Could you please advice me.
code:
Dim docref As Illustrator.Document
Dim appRef As New Illustrator.Application
appRef.DoJavaScriptFile ("C:\HH.js")
Thanks,
Maria
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|