How to hold and move my image to top right corner using sikuli

Asked by Bhanu Chaitanya

I have an image and half of the image is being displayed in the below of the window task bar. I want to hold and move it to top right corner . I tried drag and drop method which is not working as it is not holding the object. I am new to sikuli and bit confused with Region. Can you please help with that.

OS: Windows
Browser: Chrome
Programing language: Java

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

you have to try with the low level mouse actions

move, wait, button down, move, wait, button up

and find out which wait times are needed for the GUI to react as wanted
usually 0.1 to 0.5 are sufficient.

Doing this manually very slowly and watch the reaction of the GUI might help, to understand the flow.

Revision history for this message
Bhanu Chaitanya (bhanu1987) said :
#2

Thanks RaiMan, would it possible to provide an example code as I got hanged for creating Region object. It's always throwing an error and not able to create an object for region class.

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

so paste here what you have done so far.

--- It's always throwing an error
does not help, you have to give specific info about the error you get

... and you should tell details about your system and dev environment

Can you help with this problem?

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

To post a message you must log in.