how to get the image under File of any application

Asked by Anunaya

How to I get the image under the file Menu. If I want to use sub menu in the file Menu.
The problem that I am facing is I want to go to file Menu & in file Menu I want to open work space which does not have any keyboard short cuts.

So when I go to sikuli i use click and then when I go back the the application. The file window disappears.
How do I resolve this problem.

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
Eugene S (shragovich) said :
#1

Hi,

-- go back the the application
Can you please elaborate what do you mean?

Cheers,
Eugene

Revision history for this message
Anunaya (anunayathakur1) said :
#2

What I mean is in any tool there will be Menu & sub Menu for eg. in ms word

You go to Words Icon -> New

I want to automate New but can't figure out how to catch the image of New.

Revision history for this message
Eugene S (shragovich) said :
#3

-- can't figure out how to catch the image of New.
If you mean getting the screenshot, what about just taking a simple screenshot?

Revision history for this message
Anunaya (anunayathakur1) said :
#4

Taking screenshot also does not seems to be possible for new because the moment u come to sikuli the new window disappears.

Revision history for this message
Eugene S (shragovich) said :
#5

Why do you have to come back to Sikuli?
Just follow the procedure you wish to automate manually step by step and take a simple screenshot (for example with Print Screen button) of each step and save the images aside.
Later, edit the resulting screenshots and leave just what you need from each image.

Does that makes sense?

Cheers,
Eugene

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

@Eugene
exactly as one should do that.
But you might use the IDE for that:
- open the IDE
- save the empty tab as a new script, so it has a name
- switch to your app and do manually step by step what is needed
- just use the quick-capture-hotkey (see Preferences) to capture what you want
- the images are recorded in your script
- when finished, just go back to the IDE and save your script.
- now you might add code as needed and even optimise the images outside in the .sikuli folder

Can you help with this problem?

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

To post a message you must log in.