Welcome, Guest. Please login or register.
May 16, 2012, 04:29:37 pm
Home Help Search Login Register
News: When replying to a specific statement be sure to quote the previous post.

+  TurboCAD Forums
|-+  SDK Corner
| |-+  Sample SDK Projects
| | |-+  VBScript
| | | |-+  Scripcenter David Bell with Win7-64
« previous next »
Pages: [1] Go Down Print
Author Topic: Scripcenter David Bell with Win7-64  (Read 288 times)
ibruethsch
Jr. Member
**
Posts: 85

Bernd


« on: February 04, 2012, 04:35:03 am »

I had Problems using the Scriptcenter from David Bell with Win7-64.
http://www.bcitool.com/TCDRC/DRScriptCentre.htm
There has to be little change applied.

In palette.html und AutoScriptIndex.vbs
-------------------------------------------------------------
 Sub OpenFile
 dim ObjFSO, InitFSO
 Set ObjFSO = CreateObject("UserAccounts.CommonDialog")
 ObjFSO.Filter = "HTML Pages|*.htm*|VBScripts|*.vbs|All Files|*.*"
 if left(document.location, Cool = "file:///" and right(document.location, 12) = "palette.html" then
 ObjFSO.InitialDir = replace(unescape(mid(document.location, 9, len(document.location) - 20)), "/", "\") & "\VBScripts"
 end if

 InitFSO = ObjFSO.ShowOpen
 document.location = ObjFSO.FileName
 End Sub
-----------------------------------------------------------------
exchange to:
-----------------------------------------------------------------------
 Sub OpenFile
dim ObjFSO
dim InitFSO
Set ObjFSO=CreateObject("MSComDlg.CommonDialog.1") 
const cdlCancel = 32755 
const cdlOFNHideReadOnly = 4 
const cdlOFNAllowMultiselect = 512 
const cdlOFNFileMustExist = 4096 
Const cdlOFNExplorer = 524288 
ObjFSO.Flags = cdlOFNHideReadOnly + cdlOFNAllowMultiselect + cdlOFNExplorer + cdlOFNFileMustExist 
ObjFSO.Filter = "HTML Pages|*.htm*|VBScripts|*.vbs|All Files|*.*" 
objFSO.FilterIndex = 1 
objFSO.InitDir = "" 
objFSO.maxfilesize=8000
'25 'dim ObjFSO, InitFSO
 'Set ObjFSO = CreateObject("UserAccounts.CommonDialog")
 'ObjFSO.Filter = "HTML Pages|*.htm*|VBScripts|*.vbs|All Files|*.*"
 if left(document.location, Cool = "file:///" and right(document.location, 12) = "palette.html" then
 ObjFSO.InitDir = replace(unescape(mid(document.location, 9, len(document.location) - 20)), "/", "\") & "\VBScripts"
 end if

 InitFSO = ObjFSO.ShowOpen
 document.location = ObjFSO.FileName
 End Sub
--------------------------------------------------------------------------
then the "open script file" will work again
but the autoload-function still donīt work.

If someone with more sophisticated skilles please have a look to the
"Sub WritePage" in the "AutoScriptIndex.vbs"
any help is appreciated.
best regards
Bernd
Logged
ibruethsch
Jr. Member
**
Posts: 85

Bernd


« Reply #1 on: February 09, 2012, 09:10:40 am »

Now the scriptcenter works in Win7-64 (for me)  in the way it does with WinXP.
I found the hint:
http://www.itexperience.net/error-80070005-cant-create-object-scripting-filesystemobject-in-windows-script-host/

run the "Eingabeaufforderung" (donīt know the english word , this DOS lookalikewindow) as an administrator
in C:\Windows\System32\
type
regsvr32.exe scrrun.dll

best regards
Bernd

Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.065 seconds with 17 queries.