How to use the Eject Key [MAC]

Asked by Alan

Hi There,

Is there any keyDown(Key.Eject) or similar?

Regards,

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

simply no (guess it is a Mac ;-).

Revision history for this message
Tsung-Hsiang Chang (vgod) said :
#2

Try this:
run("drutil eject")

Revision history for this message
Alan (alan-ciusky) said :
#3

Hi Tsung,

Thanks..... The run cmd work if you are trying to eject a CD from the driver.

What I'm trying to do is use some of the MAC shortcut to switch the Display off (CMD+Shift+Eject) since my script run for days...

Nothing really but.... would be nice to have...

Cheers,

Alan

Can you help with this problem?

Provide an answer of your own, or ask Alan for more information if necessary.

To post a message you must log in.