Connecting to a server

Asked by XonarC

I am trying to connect to a server using the command "type("k", KEY_CMD)" and it does not work. any ideas or suggestions of a better command.

thanks in advance

G

Question information

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

more info about system and application you are using.

paste the script here.

Revision history for this message
RaiMan (raimund-hocke) said :
#2

OK, you are a Mac ;-)

here we go:
switchApp("Finder") # give focus to finder
sleep(0.5) # wait a little
type("k", KEY_CMD)

you should see the dialog to fill in servername (type("server\n")).

or use
type (KEY_TAB)
type (KEY_TAB)

to get to the list of preferred servers

ans so on ....

Revision history for this message
XonarC (grant-dryden) said :
#3

Excellent , thanks that worked.

Revision history for this message
RaiMan (raimund-hocke) said :
#4

Sorry, type(KEY_TAB) should read: type(Key.TAB)