Friday, July 30, 2010

#1 2005-06-06 08:05:25 am

zebdaag
Member
Registered: 2005-05-26
Posts: 9

error

Hi,
i have some quenstions!

1ste
I had this error what does it mean/ or can I do about it??
nsreceiverevaluationscript error: 4
It happens when I try to use this script:
click button "Vervang"

2nd
And then who can I find out what the name is of some keys when using keystroke:
i know keystroke return
and keystroke tab
but how can i do keystrok "arrow down"


Greetings Zebdaag

Offline

 

#2 2005-06-06 09:14:05 am

Bruce Phillips
Administrator
Registered: 2004-07-15
Posts: 2647

Re: error

zebdaag wrote:

I had this error what does it mean/ or can I do about it??
nsreceiverevaluationscript error: 4
It happens when I try to use this script:
click button "Vervang"

You'll have to tell us more than that.

zebdaag wrote:

how can i do keystrok "arrow down"

Try this:

Applescript:


key code 123 -- Left
key code 124 -- Right
key code 125 -- Down
key code 126 -- Up

-- or…
keystroke (ASCII character 28) -- Left
keystroke (ASCII character 29) -- Right
keystroke (ASCII character 30) -- Up
keystroke (ASCII character 31) -- Down

Offline

 

#3 2005-06-06 05:50:18 pm

tugboat666
Member
From: Marysville, OH
Registered: 2003-01-20
Posts: 92

Re: error

You can use ASCIISeek X to determine the ascii code of any key on the keyboard

http://www.tucows.com/preview/207388

tug

Model: G4 (Digital Audio) 1.4 GHz (GigaDesigns) 768 MB RAM
AppleScript: 2.0 (v43.1)
Browser: Safari 312
Operating System: Mac OS X (10.4)

Offline

 

#4 2005-06-07 02:25:38 pm

dnc253
Member
Registered: 2004-02-09
Posts: 98

Re: error

I've gotten that error a bunch, and I don't know exactly what it means, but it's usually when I try doing something with a UI element that the script doesn't recognize. In your example, make sure that the button is where you think it is. It could be nested in other UI elements, like windows, outlines, etc.

Offline

 

Board footer

Powered by FluxBB

[ Generated in 0.119 seconds, 8 queries executed ]

RSS (new topics) RSS (active topics)