Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-19-2008, 12:10 AM
Senior Member
 
Join Date: Nov 2007
Posts: 128
Default How to use ScriptHost?

I want to run this vb script:

Code:
Private Declare Function ShellExecute _
              Lib "shell32.dll" _
              Alias "ShellExecuteA"( _
              ByVal hwnd As Long, _
              ByVal lpOperation As String, _
              ByVal lpFile As String, _
              ByVal lpParameters As String, _
              ByVal lpDirectory As String, _
              ByVal nShowCmd As Long) _
              As Long

  Dim r As Long
  r = ShellExecute(0, "open", "http://www.microsoft.com", 0, 0, 1)
Reply With Quote
  #2 (permalink)  
Old 01-19-2008, 10:24 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: How to use ScriptHost?

Code:
var scriptHost = new ScriptHost;
scriptHost.open("vbscript");
scriptHost.runScriptFile("c:\\test.vbs");
var so = scriptHost.getScriptObject();
trace(so.r);
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:53 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.