Thanks to both of you.
I got it! 
I'm not used to this type of syntax, The last programming I did was with
the Apple II e many years ago with "Applesoft Basic!"
Jeff Weiss

-----Original Message-----
From: Tom Kingston [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 26, 2008 2:21 PM
To: [email protected]
Subject: Re: Syntax error

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
>
> 

Reply via email to