Handle multiple windows, each as an object

Asked by Joe Burke

I'm using the latest Sikuli .

I have a java based app that when a specific action is clicked, it will open a new child window that emulates an SSH terminal.

I want to be able to do 2 things:
1. supply a flat file set of commands to the SSH terminal.
If I was using command line SSH, I would simply do: cat myFlatFile | ssh -i <key> user@127.0.0.5

This will simulate the user typing in set of commands into the SSH terminal.

2. I need to open multiples of the SSH terminal windows and do the action in #1 above for each one.

Higher priority is #2
how can I
a. launch the ssh terminal (done),
b. grab a hold of the whole window as its own object, then
c. pass in commands to the terminal

Thanks in advance.

Question information

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

not sure, what this has to do with SikuliX?

do you want to use SikuliX, to type the commands into the ssh window?

Revision history for this message
Joe Burke (joeburke30) said :
#2

Yes.

I will have multiple ssh windows open.

I will want to treat each ssh window as an object and then type commands
into each window.

From the docs the closest thing I could see was a region, but the region
seemed more associated to the screen rather than a window.

Unfortunately I only have a single app running and it is spawning the
multiple ssh windows, so the app object will not work either.

On Thu, Apr 19, 2018, 3:13 AM RaiMan <email address hidden>
wrote:

> Your question #668061 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/668061
>
> Status: Open => Needs information
>
> RaiMan requested more information:
> not sure, what this has to do with SikuliX?
>
> do you want to use SikuliX, to type the commands into the ssh window?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/sikuli/+question/668061
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Sikuli is just simulating key presses and mouse actions and doing screen image comparison.
So whatever problem you have, the first thing you should think about is: How would I do this manually?

Consider how you would act with two ssh windows open on your screen; how would you identify the different ones; how would you switch from one to the other ...

Revision history for this message
Joe Burke (joeburke30) said :
#4

Thank you for your help!

On Thu, Apr 19, 2018, 10:03 AM Manfred Hampl <
<email address hidden>> wrote:

> Your question #668061 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/668061
>
> Manfred Hampl posted a new comment:
> Sikuli is just simulating key presses and mouse actions and doing screen
> image comparison.
> So whatever problem you have, the first thing you should think about is:
> How would I do this manually?
>
> Consider how you would act with two ssh windows open on your screen; how
> would you identify the different ones; how would you switch from one to
> the other ...
>
> --
> You received this question notification because you asked the question.
>

Revision history for this message
Launchpad Janitor (janitor) said :
#5

This question was expired because it remained in the 'Open' state without activity for the last 15 days.