[jawsscripts] Re: compile problem

  • From: "Martin Slack" <m.g.slack@xxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Tue, 7 Apr 2009 00:09:00 +0100

Hi,

  The first problem is in the line:

If StringContains (inbox - Courier, sc_SW) then

  The first parameter of the function StringContains should be a string, but 
you have made it the difference between two variables, which lacks meaning. 
Either inbox and Courier are integers, so that they can be subtracted, which 
makes them the wrong type for this function, or they are both strings, when 
the subtraction operation cannot be performed.  What are you trying to 
represent by inbox - Courier?

  Martin


----- Original Message ----- 
From: "Desyree Vaughn" <desyree@xxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Monday, April 06, 2009 10:10 PM
Subject: [jawsscripts] compile problem


> having trouble getting this script to compile:
> include "Hjconst.jsh"
>
> include "HjHelp.jsh"
>
> include "Hjglobal.jsh"
>
> include "common.jsm"
>
> Int Function MessageBody ()
>
> var
>
> string RealName
>
> Let RealName = GetWindowName (GetRealWindow (GetCurrentWindow ()))
>
> If StringContains (inbox - Courier, sc_SW) then
>
> Return true
>
> Else
>
> Return false
>
> EndIf
>
> EndFunction
>
> Int Function HandleCustomWindows (handle FocusWindow)
>
> Int Function HandleCustomWindows ()
>
> If MessageBody () then
>
> SetJCFOption (OPT_VIRTUAL_PC_CURSOR, 1)
>
> EndIf
>
>
>
> EndFunction
>
>
>
>
>
>
>
>
>
> EndScript
>
>
>
> thanks
>
> Desyree
>
>
>
> __________
> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
> View the list's information and change your settings at
> //www.freelists.org/list/jawsscripts
>
> 


__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts

Other related posts: