Re: [Sikuli-driver] [Question #188027]: Autostart from OSX 10.710.6

2012-02-23 Thread Steen
Question #188027 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188027

Status: Solved = Open

Steen is still having a problem:
sadly its not working the way i intended!

i get:
TCPMs-Mac-Pro:~ tcpm$ /Users/tcpm/Desktop/start_test ; exit;
[info] Sikuli vision engine loaded.
[info] Mac OS X utilities loaded.
[info] VDictProxy loaded.
[log] ?+?+TYPE 1
[log] ?+?+TYPE 1
[log] ?+TYPE 4
[log] App.open Terminal(0)
[log] openApp: Terminal
cd /volumes/[log] TYPE 

cp -r T/t/buildserver/ /t/[log] TYPE 

cd T/icon/mac_buildserver/[log] TYPE 

hdiutil attach Icon.dmg[log] TYPE 

cd /volumes/icon[log] TYPE 

sudo cp -r /volumes/icon/ /t/[log] TYPE 


its like the terminal hogs the script and executes it in terminal mode!
i want the script to start like i have loaded the sikuli interface and pressed 
play or made a *.bat on PC

anyhelp?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #188027]: Autostart from OSX 10.710.6

2012-02-23 Thread RaiMan
Question #188027 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188027

Status: Open = Answered

RaiMan proposed the following answer:
Since I do not know, what your script is doing, I cannot say much.

It seems, that you are trying to open another Terminal session. Since
your script is already running in a Terminal session, the opening in
your script only switches to the existing session and just types there,
but with no effect, since it is not accepting command input.

If you really want to do it this way, you have to open a new Terminal window by 
typing e.g.
type(n, KeyModifier.CMD); wait(2)

then you have a command line frontmost, that will accept your type()'s.

BTW: I do not understand, why you are doing things so complicated.
Python/Jython has a powerful subprocess module, where you can do everything you 
want internally, without the need for a Terminal session.
Or even so: write your commands to a file and run it with os.popen().

If you want the primary Terminal window to be hidden:
switchApp(Terminal)
type(h, KeyModifier.CMD)

at the beginning of your script. This will hide all Terminal windows.
If you stick with your type into a Terminal session method: this window must 
be open for Sikuli to work!

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #188596]: Unit Testing: Unable to call a function that i define in the same class

2012-02-23 Thread Chan Kok Lum
Question #188596 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188596

Summary changed to:
Unit Testing: Unable to call a function that i define in the same class

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #188596]: Unit Testing: unable to call a function that i define in the same class

2012-02-23 Thread Chan Kok Lum
New question #188596 on Sikuli:
https://answers.launchpad.net/sikuli/+question/188596

Hi,

I trying to write a test script that contain a self defined function 
(go_there). They are all located under the same file. I'm not importing 
anything. The error i am getting is

Exception in thread AWT-EventQueue-0 SyntaxError: (no viable alternative at 
input 'def', ('', 42, 13, '\t run def do_it();\n'))


Everything is working fine if i commented the line run def go_there().

def setUp(self):
  # some working codes here

def go_there():
popup(I'm here)

def test_case1(self):
run def go_there()  --- take out this, the script runs well.
wait(image1)
assert exists(image1)
   

Please anyone advise me on this ?

Thanks.


-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #188596]: Unit Testing: Unable to call a function that i define in the same class

2012-02-23 Thread RaiMan
Question #188596 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188596

Status: Open = Answered

RaiMan proposed the following answer:
--1:run def go_there() 
that is not Python.
if you have a function defined somewhere as:
def go_there():
... some code here

then it has to be called as
go_there()

--2: using self defined functions in IDE test view
the test view has many quirks. It is only suitable for basic stuff. and already 
using functions is no basic stuff :-(
Before investing further: look faq 1804

If you want to stick with IDE test view:
--- put your own def's to the end of the script in reverse order as they are 
used
--- define them as:
def my_function(self):
--- call them using:
self.my_function()

in the definition you might add additional parameters after the self, that 
could be give in the call
def my_function(self, parm1):
print parm1

... calling
self.my_function(this is a test)

would print: this is a test

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #188027]: Autostart from OSX 10.710.6

2012-02-23 Thread Steen
Question #188027 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188027

Status: Answered = Open

Steen is still having a problem:
ich bin ein tester, not a programmer!...;0)...thats the easy anserv!...

i have a bunch of scripts calling other scripts if 0-1-2-3- is returned!

Vielem dank! mr. Hocke!

i need the terminal for other purposes, could i run it in anotherway?
Applescript?

instead on reprogramming to:
type(n, KeyModifier.CMD); wait(2)
and
type(h, KeyModifier.CMD); wait(2)

instead of App.close/App.open (Terminal)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Bug 939482] [NEW] When resolution is 1050 x 1680

2012-02-23 Thread Steen
Public bug reported:

i have a tilt funktion in my screens, and can change the resolution from
1680 x 1050 to 1050 x 1680.

Then the matching preview is not able to detect any thing below 1050 x
700?

work around is offcourse to turn screen back to 1680 x 1050.

** Affects: sikuli
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/939482

Title:
  When resolution is 1050 x 1680

Status in Sikuli:
  New

Bug description:
  i have a tilt funktion in my screens, and can change the resolution
  from 1680 x 1050 to 1050 x 1680.

  Then the matching preview is not able to detect any thing below 1050 x
  700?

  work around is offcourse to turn screen back to 1680 x 1050.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/939482/+subscriptions

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Bug 939482] Re: When resolution is 1050 x 1680

2012-02-23 Thread Steen
MAC OSX 10.6.8  Sikuli Rc3

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/939482

Title:
  When resolution is 1050 x 1680

Status in Sikuli:
  New

Bug description:
  i have a tilt funktion in my screens, and can change the resolution
  from 1680 x 1050 to 1050 x 1680.

  Then the matching preview is not able to detect any thing below 1050 x
  700?

  work around is offcourse to turn screen back to 1680 x 1050.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/939482/+subscriptions

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #188621]: Sikuli is installed in Machine A , but i need to run the code in Machine B and C

2012-02-23 Thread balakrishnan
New question #188621 on Sikuli:
https://answers.launchpad.net/sikuli/+question/188621

Hi

I have Sikuli installed and have some scripts in Machine A, Now i need to run 
these scripts in Machine B and Machine C simultaneously. All Machines have 
Windows xp operating systems.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #188027]: Autostart from OSX 10.710.6

2012-02-23 Thread RaiMan
Question #188027 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188027

Status: Open = Answered

RaiMan proposed the following answer:
ich bin kein tester AND not a programmer ;-)

--1. testing
when testing with Sikuli on the Python level (Sikuli IDE), serious testing 
should be done with unit test (see faq 1804). 
Or even use something like RobotFramework.

--2. programming
to run some stuff, that would usually be done in a Terminal window, it is much 
easier from Sikuli to use the Python possibilities (os-popen or subprocess), 
ideally together with some bash scripting. To integrate Applescript (via 
osascript) is principally possible, but for most things more complicated.

--3. instead on reprogramming to:
Sikuli is a visual testing and automation tool, so why not use what it has?

If you need more specific help, feel free, to mail me directly.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Bug 939482] Re: When resolution is 1050 x 1680

2012-02-23 Thread RaiMan
--- work around is off course
No, not really.

The screens are only checked at startup. So if you make this tilt
switch, you have to restart the IDE.

And you cannot do this during the time a script is running, if it should
know about it.

** Summary changed:

- When resolution is 1050 x 1680
+ Changing screen setup is not recognized by Sikuli

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/939482

Title:
  Changing screen setup is not recognized by Sikuli

Status in Sikuli:
  New

Bug description:
  i have a tilt funktion in my screens, and can change the resolution
  from 1680 x 1050 to 1050 x 1680.

  Then the matching preview is not able to detect any thing below 1050 x
  700?

  work around is offcourse to turn screen back to 1680 x 1050.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/939482/+subscriptions

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #188621]: Sikuli is installed in Machine A , but i need to run the code in Machine B and C

2012-02-23 Thread RaiMan
Question #188621 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188621

Status: Open = Answered

RaiMan proposed the following answer:
Not possible with the basic features of Sikuli.

You need some external synchronization tool.

e.g. XML-RPC

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #186974]: sikuli in dual monitor in Linux

2012-02-23 Thread ravi
Question #186974 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/186974

Status: Answered = Solved

ravi confirmed that the question is solved:
Thanks RaiMan, that solved my question.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #188555]: OpenCV Error on starting event observer

2012-02-23 Thread Terence Cooper
Question #188555 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188555

Status: Needs information = Open

Terence Cooper gave more information on the question:
The openCV error message appears with the 2nd call to mapSubMenu.  Also
the changed area found in the 1st call to mapSubMenu is highlighted
again when the 2nd call is made, ie. targetChanged is returning the same
match for different changes in the observed region.  When I run this, I
first see the TxDev menu area highlighted, then the pointer moves to
click on the *Search* menu, and then just as it begins to move again the
the stack is dumped.

 Plz don't hesitate to let me know if you need more info.  Thx in
advance.  Terry.

    static void mapSubMenu(String mainMenuLabel, String[] subMenuLabels)
    throws FindFailed, InterruptedException {

    monitoredR = subMenusR;
    changedM = null;
    getChangedAreaMatch();
    // click the menu...
    mainMenu.click(mainMenuLabel);
    //mainThread.wait();
    Thread.currentThread().sleep(2000);
    Region menuR = changedM;
    menuR.highlight(1);

    try{
    double ms =  Settings.MinSimilarity;
    Settings.MinSimilarity = .4;
    for(String  menuLabel: subMenuLabels){
    menuR.highlight(1);
    Match menuItemM = menuR.wait(menuLabel, 30);
    menuR.h = menuR.h+menuR.y - (menuItemM.y+menuItemM.h);
    menuR.y = menuItemM.y + menuItemM.h;
    menuItemM.highlight(1);
    MenuItem subMenuItem = new MenuItem(menuLabel, );
    subMenuItem.setMatch(menuItemM);
    subMenuItem.setParent(mainMenu);
    subMenuItem.setHighlighted(false);
    subMenuItem.setOnDisplay(false);   
    mainMenu.getChild(mainMenuLabel).addChild(menuLabel, 
subMenuItem);
    }
    Settings.MinSimilarity = ms;
    }
    catch(FindFailed findFailedExcptn){
    scrpt.popup(Failed to map +mainMenuLabel+ menu\n - 
+findFailedExcptn.getMessage());
    exit(0);
    }
    mainMenu.click(mainMenuLabel);   // close menu

    }

    static void getChangedAreaMatch()
    throws FindFailed{
    

    monitoredR.onChange(50, new SikuliEventObserver(){
    public void targetChanged(ChangeEvent evnt) {
    System.out.println(targetChanged called);

    for (Match m : evnt.changes) {
    changedM = m;
    m.highlight(1);
    break;
    }
System.out.println(stopping observer);
    evnt.region.stopObserver();
    System.out.println(stopped observer);
    //monitoredR.stopObserver();   // which one?

    }

    public void targetAppeared(AppearEvent e) {
    scrpt.popup(targetAppeared called);
    }

    public void targetVanished(VanishEvent e) {
    scrpt.popup(targetVanished called);
    }
    });

    // start the observation...
    monitoredR.observeInBackground(30);

    }

    
   
    public static void main(String[] args)
    throws InterruptedException,
    java.awt.AWTException,
    org.sikuli.script.FindFailed{

    scrpt = new SikuliScript();
    scrn = new Screen();

BLAH, BLAH, BLAH

    mapMainMenu();
// (doesn't use the observer and onChange event handler)

    mapSubMenu(TXDev ,txDevMenuLabels);

    mapSubMenu(Search, searchMenuLabels);


BLAH, BLAH, BLAH


    }

}

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #188555]: OpenCV Error on starting event observer

2012-02-23 Thread Terence Cooper
Question #188555 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188555

Terence Cooper posted a new comment:
Looks like 1. stopObserver isn't stopping the observation immediately
(maybe the observeInBackground timeout is being respected despite the
call to stopObserver) and 2. subsequent calls to targetChanged after
reregistering a SikuliEventObserver are returning matches made in the
previous (extended) observation period.  (This may be pure fantasy!!).
Terry.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #188694]: Adding Sikuli script in Task Scheduler

2012-02-23 Thread Jason Yoo
New question #188694 on Sikuli:
https://answers.launchpad.net/sikuli/+question/188694

I did see few problems related to this topic, but none of them solved my 
problem...

I'm trying to add a batch file that launches Sikuli in the task scheduler and 
run it. When I run the batch file by double clicking it myself, it works 
perfectly fine, but when it's added to the scheduler, nothing happens. From the 
Task Scheduler, it says the task is running, but nothing is happening. Is it 
because my sikuli script contains actions like click, type and etc? 

This is what my batch file has:
C:\Program Files (x86)\Sikuli X\Sikuli-IDE.bat -r %~dp0Test.sikuli

https://answers.launchpad.net/sikuli/+question/166785 - is this the same issue?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Bug 940086] [NEW] Sikuli close automatically when try to capture screenshot

2012-02-23 Thread Chang
Public bug reported:

Version:Sikuli-X-1.0rc3 (r905)
OS: Windows XP x32
JRE 6

This is the first time i use Sikuli, so maybe that my issues

But i just want to know why

I can write sample function ,like--popup()..

Steps to reproduce :
1.open Sikuli
2.Click 'Take Screenshot'

result: Sikuli closed itself

** Affects: sikuli
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/940086

Title:
  Sikuli close automatically when try to capture screenshot

Status in Sikuli:
  New

Bug description:
  Version:Sikuli-X-1.0rc3 (r905)
  OS: Windows XP x32
  JRE 6

  This is the first time i use Sikuli, so maybe that my issues

  But i just want to know why

  I can write sample function ,like--popup()..

  Steps to reproduce :
  1.open Sikuli
  2.Click 'Take Screenshot'

  result: Sikuli closed itself

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/940086/+subscriptions

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #188721]: This script doesn't work dofus game help!

2012-02-23 Thread george
New question #188721 on Sikuli:
https://answers.launchpad.net/sikuli/+question/188721

iron = Pattern(1330030896672.png).similar(0.74)
iron2 = Pattern(1329980545422.png).similar(0.89)  
copper = Pattern(nA.png).similar(0.91)
copper2 = Pattern(1329980670115.png).similar(0.89)
bronze = Pattern(1330030708790.png).similar(0.90)
bronze2 = Pattern(1330030666167.png).similar(0.95)   

gamezone = Region(0,19,1280,750)  
myself = L.png
waittime = 10

mineiron = True   
minecopper = True 
minebronze = True 
minetin = True

global lastroom
global currentroom
global noore

def mine9_m23)():
global lastroom
global currentroom
global noore
if gamezone.exists(Pattern(Q.png).similar(0.87), 0):
currentroom = 1
gamezone.click(1330056004176-1.png, 0)
lastroom = 1
wait (2)

if gamezone.exists(Pattern(1330057093507.png).similar(0.88), 0):
currentroom = 2
if lastroom == 1:
gamezone.click(Pattern(1330056261522.png).similar(0.83), 0)   
 
lastroom = 2
wait (2)
else:
if currentroom == lastroom:
lastroom = lastroom - 1


if gamezone.exists(Pattern(Fr.png).similar(0.83), 0):
currentroom = 3
if lastroom == 2:
gamezone.click(1330056367548.png, 0)
lastroom = 3
wait (2)
else:
if currentroom == lastroom:
lastroom = lastroom - 1


if gamezone.exists(Pattern(1330057294326.png).similar(0.87), 0):
currentroom = 4
if lastroom == 3:
gamezone.click(1330056435973.png, 0)
lastroom = 4
wait (2)
else:
if currentroom == lastroom:
lastroom = lastroom - 1


if gamezone.exists(Pattern(Fr.png).similar(0.83), 0):
currentroom = 5
if lastroom == 4:
gamezone.click(1330056367548.png, 0)
lastroom = 5
wait (2)
else:
if currentroom == lastroom:
lastroom = lastroom - 1 
if gamezone.exists(Pattern(1330057093507.png).similar(0.88), 0):
currentroom = 6
if lastroom == 5:
gamezone.click(Pattern(1330056261522.png).similar(0.83), 0)   
 
lastroom = 6
else:
if currentroom == lastroom:
lastroom = lastroom - 1
if gamezone.exists(Pattern(Q.png).similar(0.87), 0):
currentroom = 1
if lastroom == 6:
   gamezone.click(1330056004176-1.png, 0)

def fightover():
if gamezone.exists(Pattern(Close-2.png).similar(0.86), 0): 
gamezone.click(Pattern(Close-2.png).similar(0.86), 0)
wait(2)
else:
pass

def fight(): #Fight module
while gamezone.exists(Pattern(1330033988160.png).similar(0.76), 0): 
if gamezone.exists(IIFr.png, 0): 
if gamezone.exists(Pattern(1330034086473.png).similar(0.78), 0): 
gamezone.click(Pattern(1330034086473.png).similar(0.78), 0) 
gamezone.click(IIFr.png, 0) 
wait(1)
else:
if gamezone.exists(myself, 0):
type(skill1) #hotkey for skill to kill resource protector.

gamezone.hover(Pattern(1327510524930.png).similar(0.76).targetOffset(0,20)) 
#Hover over the protector so we can see if it possible target it.
if gamezone.exists(Pattern(1326907907791.png).similar(0.67), 
0): # if we see this image while hoverin target that mean we cant target.:
type(skill2) #now lets try another skill with longer range 
or skill that doesnt need line of sight.

gamezone.hover(Pattern(1327510524930.png).similar(0.76).targetOffset(0,20)) # 
hover over protector again and lets see if we can target it.
if 
gamezone.exists(Pattern(1326907907791.png).similar(0.67), 0): #Still not 
range or vision to target.
type(skill3)
if gamezone.exists(1330034753277.png, 0): #(resim 
degisti)
gamezone.click(1330034753277.png, 0)  #(resim 
degisti)
wait(0.5)
gamezone.click(1330034845030.png, 0) #lets skip 
turn and wait protector come closer. (resim degisti)
else:
pass
else:
if 
gamezone.exists(Pattern(1327510524930.png).similar(0.76).targetOffset(0,20), 
0):

gamezone.click(Pattern(1327510524930.png).similar(0.76).targetOffset(0,20), 
0) #click ptotector with skill in hotkey 1
wait(1)
fightover()
wait(2)
pass
else: #if we have vison and not seeing that not allowed image 
we gona do targeting.
if 

[Sikuli-driver] [Bug 939482] Re: Changing screen setup is not recognized by Sikuli

2012-02-23 Thread Steen
Does not help to restart og reopen Sikuli even reboot of the MAC does not solve 
the problem.
the screen is a Samsung Syncmaster 2243 that has the capability to tilt 90 
degrees.
when tilted to the upright position, and in matching preview mode only half the 
screen is shown.
*Could offcours be Nvidia 7300gt related, MAC 1.1 2006*

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/939482

Title:
  Changing screen setup is not recognized by Sikuli

Status in Sikuli:
  New

Bug description:
  i have a tilt funktion in my screens, and can change the resolution
  from 1680 x 1050 to 1050 x 1680.

  Then the matching preview is not able to detect any thing below 1050 x
  700?

  work around is offcourse to turn screen back to 1680 x 1050.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/939482/+subscriptions

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp