← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #694520]: Tesseract

 

Question #694520 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/694520

    Status: Answered => Open

Jeff_Vallis is still having a problem:
It would have done if I had read it properly

Tesseract now working ok

You have told me before that I need items at the top of my script does it matter what order they are in
I now have :-

# -*- coding: utf-8 -*-
import java.lang.System as JS
JS.setProperty("jna.library.path", "/usr/local/lib")
from sikuli import *

import Generator_Global
import datetime
import time
import os
import re
import os.path
from os import path


Thy reason I reformatted my Mac is :-
In Dec 2019 I got a new Mac and set it up from the Time Machine Backup of my previous Machine and of course getting 10 years of Rubbish
This time I did not dot that just loaded Big Sur and set it up again without all the Rubbish
It now  seems to be running faster

My main problem for doing this was that Drag and Drop was not working and I felt that my Mac setup may be the cause
But it is still not working consistently.

It may or it may not try to do the drag drop

e.g.
the dragregion is found from an image on the screen

Drag_Drop_From_To dragregion 956 449 dropregion 1104 272 v_Wait,v_Mouse_Delay 1 3
Drag_Drop_From_To dragregion 956 449 dropregion 1104 272 v_Wait,v_Mouse_Delay 1 3
        so it didn't move dragregion unchanged
Drag_Drop_From_To dragregion 956 449 dropregion 1104 272 v_Wait,v_Mouse_Delay 1 3
       same again so it didn't move dragregion unchanged
Drag_Drop_From_To dragregion 956 449 dropregion 1104 272 v_Wait,v_Mouse_Delay 1 3
       same again so it didn't move dragregion unchanged
Drag_Drop_From_To dragregion 956 449 dropregion 1104 272 v_Wait,v_Mouse_Delay 1 3
       same again so it didn't move dragregion unchanged
Drag_Drop_From_To dragregion 956 449 dropregion 1104 272 v_Wait,v_Mouse_Delay 1 3
       same again so it didn't move dragregion unchanged
Drag_Drop_From_To dragregion 956 449 dropregion 1104 272 v_Wait,v_Mouse_Delay 1 3
       same again so it didn't move dragregion unchanged
Drag_Drop_From_To dragregion 956 449 dropregion 1104 272 v_Wait,v_Mouse_Delay 1 3
       same again so it didn't move dragregion unchanged
Drag_Drop_From_To dragregion 956 449 dropregion 1104 272 v_Wait,v_Mouse_Delay 1 3
       same again so it didn't move dragregion unchanged

v_Wait (1second) is a seconds to wait between Drag and Drop
 I do  Settings.MoveMouseDelay = v_Mouse_Delay (set at 3)
before trying the Drag and Drop


in the same run :
Drag_Drop_From_To dragregion 997 356 dropregion 1104 272 v_Wait,v_Mouse_Delay 1 3
Drag_Drop_From_To dragregion 997 356 dropregion 1104 272 v_Wait,v_Mouse_Delay 1 3
so it didn't move dragregion unchanged 
Drag_Drop_From_To dragregion 1016 342 dropregion 1104 272 v_Wait,v_Mouse_Delay 1 3
       Partial move
       so it moved a bit  dragregion instructed it to move to 1104 272 and it moved to 1016 342
Drag_Drop_From_To dragregion 1042 322 dropregion 1104 272 v_Wait,v_Mouse_Delay 1 3
       Partial move
       so it moved a bit  dragregion instructed it to move to 1104 272 and it moved to  1042 322
Drag_Drop_From_To dragregion 1042 322 dropregion 1104 272 v_Wait,v_Mouse_Delay 1 3
       same again so it didn't move dragregion unchanged

I am still messing about with this 
I fell sure that I have focus before the drag and and drop but am now looking for a safe image on screen that I can click just before doing the drag drop then I will play again with different waits and mouse speeds

If you have any suggestions I would be pleased to hear them

if not just mark this as solved as the tesseract problem no longer
exists

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.