commands

Asked by janani pavithra

hi
storing images in a directory works fine..
thank u..
1) Now I wanted to know how to open windows menu(start menu) without using image..
I tried the command "type(Key.ALT+"S")"..
It is not working properly..
what command should be used for opening windows or start menu..
give the cmd

2) how to call and define a function..
give some example..
i would like to have certain functions that could be used in any script..

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

Using type:
if you want to use a special key combination with the so called modifier keys (ctrl, alt, win, ...) you have to write:
type("s", KEY_ALT) # more info in the docs

functions:
the principal:
defining the function (has to be there before the first call):

def myFunction(parameter, ...):
   # some statements
   return some-return-value

call the function:
ret = myFunction(parameter, ...)

But I think you have found out already ;-) (https://answers.launchpad.net/sikuli/+question/117419)

Revision history for this message
Luiz Carlos (luizcarlospj) said :
#2

About this Question, I need know how i do to press the key "ALT RIGHT"?

Can you help with this problem?

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

To post a message you must log in.