Is there any Way to get the value of Current focused Region

Asked by Saorabh Singh

Hi,

Can i get the value of a focused region??

Actully Scenario is:

i have a page with few text-boxes, Search them from a reference Region,
But as type in that box...Screen Scrolls up...So the refrence value gets changed..

So Basically i want to get the Region value of Current/focoused text box in which i just finished entering data, so that i can make this as a refrence point to search for another textbox which is just below the current one....

Question information

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

Tricky thing that:

If you do not know, how many pixels the image moves during your type() action, then you have to search your reference region again.

Sikuli does not "see" things moving on the screen, everything is based on the resulting match of a find(). If things have moved meanwhile: Sikuli itself does not realize.

Sorry.

Revision history for this message
Saorabh Singh (kunnu30) said :
#2

No there is no way to get Region Value for Current Focoused Region???

On Fri, Jun 24, 2011 at 12:11 AM, RaiMan <
<email address hidden>> wrote:

> Your question #162468 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/162468
>
> Status: Open => Answered
>
> RaiMan proposed the following answer:
> Tricky thing that:
>
> If you do not know, how many pixels the image moves during your type()
> action, then you have to search your reference region again.
>
> Sikuli does not "see" things moving on the screen, everything is based
> on the resulting match of a find(). If things have moved meanwhile:
> Sikuli itself does not realize.
>
> Sorry.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/sikuli/+question/162468/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/sikuli/+question/162468
>
> You received this question notification because you asked the question.
>

Revision history for this message
Saorabh Singh (kunnu30) said :
#3

So there is no way to get the value of current focused Region??
If not,then
Can we post this as Requirement or change/Enhancement Request for Future Releases..

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

I know, that in the upcoming version of extension Guide there will be some "tracking" feature (internally a sequence of background find operation).

So you might either wait for rc3 or post a request bug.