Aaron and others:

Why does this simple script crash the 8.1 toolkit?

It, and several of my other scripts which use message boxes are crashing
the toolkit.

When I get rid of the error, my script is still running, so I am at a
loss to figure out what happened.

 

Here is the short script:

 

' Message

 

Dim myHotkey : Set myHotkey =
Keyboard.RegisterHotkey("Alt-Control-Shift-I","Funct")

 

Sub Funct()

Mess = "This is a test message."

Message Mess

End Sub

 

Function Message(Mess)

 

Dim MyMessageBox

Set MyMessageBox = SharedObjects("com.GWMicro.GWToolkit.MessageBox",
90000).NewDialog

MyMessageBox.Title = "Test Message"

MyMessageBox.Message = Mess

MyMessageBox.UseReadOnlyEdit = False

MyMessageBox.TextAlign = "left"

MyMessageBox.AddButton "Ok", "enter"

MyMessageBox.DefaultButton = "Ok"

 

MyMessageBox.Show

Keyboard.InsertKey vk_W, kmControl + kmShift

 

End Function

 

Here is the toolkit error:

 

An error occurred in script gwtoolkit.vbs at 10:46:01 AM on Wednesday,
January 13, 2010.

Name: gwtoolkit.vbs

Version: 8.1

Source: Microsoft VBScript runtime error

Description: Object doesn't support this property or method:
'dObj.Control(...).SelectionStart'

Column: 3

Line: 2345

Path: C:\Documents and Settings\jnweiss.LWSB\Application Data\GW
Micro\Window-Eyes\Users\Default

Error Code: 800A01B6

Script Context:
dObj.Control("messageText").SelectionStart = 0

Active Window Overlap Class: Notepad

Active Window Title: Message.vbs - Notepad

Active Window Module: NOTEPAD

Active Window Class: Notepad

Active Window Original Class: Notepad

Active Window Type: 1

Active Window Original Type: 1

Active Window Is Valid: True

Active Window Set File: NOTEPAD.000

Focused Window Overlap Class: Edit

Focused Window Module: NOTEPAD

Focused Window Class: Edit

Focused Window Original Class: Edit

Focused Window Type: 12

Focused Window Original Type: 12

Focused Window Is Valid: True

Window-Eyes Application Path: C:\Program Files\GW Micro\Window-Eyes

Window-Eyes User Profile Path: C:\Documents and
Settings\jnweiss.LWSB\Application Data\GW
Micro\Window-Eyes\Users\Default\

Window-Eyes Version: 7.11

Window-Eyes Language: 0

Active Synthesizer: DECtalk Access32 (Window-Eyes)

Active Braille Display: None

Run in System Tray: True

Run at Login Screen: True

OS Version: 5.1 (2600) SP: 3.0

WSH Version: VBScript 5.7.18066

Internet Explorer: 7.0.5730.11

GW Toolkit: 8.1

XML Language: 1033

System Start Time: 1/13/2010 10:31:18 AM

Total Disk Space: 40.02GB

Free Disk Space: 28GB

Total Memory: 2.14GB

Available Memory: 1505.66MB

Resolution: 1024x768 (32bit)

Process Information: 

System Idle Process ID:0, CPU Time:679.42, MEM:0MB, VM:0MB

System ID:4, CPU Time:19.53, MEM:84.3MB, VM:0MB

smss.exe ID:608, CPU Time:0.03, MEM:0.4MB, VM:0.2MB

csrss.exe ID:672, CPU Time:3.81, MEM:3.2MB, VM:1.6MB

winlogon.exe ID:696, CPU Time:2.2, MEM:3.7MB, VM:7.6MB

services.exe ID:744, CPU Time:3.12, MEM:35.1MB, VM:2.4MB

lsass.exe ID:756, CPU Time:1.69, MEM:7.5MB, VM:4.1MB

svchost.exe ID:936, CPU Time:0.36, MEM:5.2MB, VM:2.8MB

svchost.exe ID:1004, CPU Time:1.05, MEM:4.6MB, VM:2.4MB

svchost.exe ID:1048, CPU Time:4.45, MEM:20.1MB, VM:12.2MB

svchost.exe ID:1128, CPU Time:0.14, MEM:3.8MB, VM:1.8MB

svchost.exe ID:1192, CPU Time:0.11, MEM:4.2MB, VM:2.1MB

spoolsv.exe ID:1428, CPU Time:0.12, MEM:5.1MB, VM:3.8MB

svchost.exe ID:1512, CPU Time:0.09, MEM:3.7MB, VM:1.7MB

avgwdsvc.exe ID:1560, CPU Time:3.41, MEM:2.7MB, VM:5.1MB

FaxMan4.exe ID:1608, CPU Time:0.33, MEM:3.9MB, VM:1.5MB

AgentMon.exe ID:1684, CPU Time:0.95, MEM:5.8MB, VM:2.7MB

KasAVSrv.exe ID:1708, CPU Time:1.59, MEM:16.2MB, VM:12.6MB

MDM.EXE ID:1744, CPU Time:0.14, MEM:3.2MB, VM:1.5MB

SMSvcHost.exe ID:1812, CPU Time:0.55, MEM:12.4MB, VM:19.4MB

locator.exe ID:1936, CPU Time:0.03, MEM:3MB, VM:1.5MB

svchost.exe ID:216, CPU Time:0.41, MEM:4.6MB, VM:2.5MB

weserv.exe ID:340, CPU Time:0.08, MEM:2.2MB, VM:1.1MB

WinVNC4.exe ID:324, CPU Time:0.08, MEM:3.3MB, VM:1.4MB

avgam.exe ID:1340, CPU Time:0.67, MEM:1.6MB, VM:3.4MB

avgrsx.exe ID:1356, CPU Time:32.45, MEM:0.2MB, VM:14.1MB

alg.exe ID:2612, CPU Time:0.09, MEM:3.8MB, VM:1.7MB

explorer.exe ID:3544, CPU Time:7.27, MEM:20.4MB, VM:13.7MB

wineyes.exe ID:3776, CPU Time:76.55, MEM:110.5MB, VM:110.6MB

hkcmd.exe ID:3860, CPU Time:0.31, MEM:4MB, VM:2.3MB

WZCSLDR.exe ID:4020, CPU Time:0.12, MEM:3.9MB, VM:1.7MB

KaUsrTsk.exe ID:4088, CPU Time:0.09, MEM:3.4MB, VM:1.6MB

fipragent.exe ID:260, CPU Time:0.02, MEM:1.8MB, VM:1MB

ctfmon.exe ID:464, CPU Time:0.08, MEM:3.5MB, VM:1.4MB

bdisplay.exe ID:164, CPU Time:0.09, MEM:2.2MB, VM:1.2MB

notepad.exe ID:396, CPU Time:0.22, MEM:4MB, VM:1.7MB

wmiprvse.exe ID:3756, CPU Time:0.09, MEM:4.8MB, VM:2.8MB

wmiprvse.exe ID:2260, CPU Time:0.28, MEM:6.6MB, VM:2.5MB

Appended

Reply via email to