There are a few places where VBScript is case-sensitive, but in method
and function calls, it doesn't care.
Aaron
Tom Kingston wrote:
----- Original Message ----- From: "Ron Parker" <[EMAIL PROTECTED]>
For what it's worth, VBScript doesn't treat function names
case-sensitively.
And an object method is included in that? I'd check but I don't have
time to right now. But I'm really curious.
Thanks,
Tom
Tom Kingston wrote:
Note also the difference between right, RegisterHotkey, and wrong,
RegisterHotKey, is a stickler for speech. Even Ron missed it in his
correction.
Hth,
Tom
----- Original Message ----- From: "Ron Parker" <[EMAIL PROTECTED]>
The second line is broken in a couple places. It needs to look like
this:
SetRegisteredKey =
Keyboard.RegisterHotKey("Control-Shift-Windows-R", "SpeakHelloWorld" )
The close parenthesis was in the wrong place, and the bit after the
comma should have been the name of the function in quotes. (All of
which sounds exactly the same, so it's an easy mistake to make.)
Jeff Weiss wrote:
I am trying to take examples from the scripting manual and making
them run.
I seem to have the syntax of this one wrong.
Any suggestions welcome!
' Create a hot key using a string
SetRegisteredKey =
Keyboard.RegisterHotKey("Control-Shift-Windows-R"), Speak "HelloWorld"
Sub SpeakHelloWorld()
Speak "Hello world!"
End Sub
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 3389 (20080826) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 3389 (20080826) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
--
To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.
Aaron Smith
GW Micro
Phone: 260/489-3671
Fax: 260/489-2608
WWW: http://www.gwmicro.com
FTP: ftp://ftp.gwmicro.com
Technical Support & Web Development