Re: [Sikuli-driver] [Question #240001]: Requiring to run Sikuli as Administrator when scripts are in many modules

2013-11-29 Thread RaiMan
Question #240001 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240001

Status: Open = Needs information

RaiMan requested more information:
On Windows, there are some known situations, where it is required to run a 
script with admin rights:
- when wanting to automate management console windows
- when testing a script in the task scheduler
- some other ...???

When something worked before and does not work any longer after a
change, one has to track back the changes and check how they might have
caused the new situation.

--- However I've been developing my tests as modules, and they
communicate with each other to perform certain tasks or get specific
pictures.

So what exactly does as modules mean? 
what does they communicate with each other mean?

-- 
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 #240001]: Requiring to run Sikuli as Administrator when scripts are in many modules

2013-11-29 Thread Mark
Question #240001 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240001

Status: Needs information = Open

Mark gave more information on the question:
as modules -- I mean that the script calls different objects to
perform specific tasks.  Right now I have it set up so there is kind of
like a template object, and depending on how I instantiate that object
(with what object variants) it will perform some slightly different
tasks.

they communicate with each other -- I mean that sometimes one object
just provides an image for the other to find, click (or w.e).  Or an
object will perform some testing function for the main template object.

So, for instance:

class A(object)
def __init__(self, b)
self.b = b

def do_something(self):
 img2 = b.getimg2
 wait(img2)
 click(img2)

def do_something_else(self):
wait(img1)
click(img1)
b.perform_something()

class B(object):


If i run without administrator privileges it will work very finicky (as
in sometimes register that it click on img1 but it actually didn't).
Sometimes it will click on img1 but then fail to click img2.  When run
with administrator privileges it works fine.

-- 
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 #240001]: Requiring to run Sikuli as Administrator when scripts are in many modules

2013-11-29 Thread Mark
Question #240001 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240001

Mark gave more information on the question:
And classes A and B are in their own .sikuli scripts/folders

-- 
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 #240001]: Requiring to run Sikuli as Administrator when scripts are in many modules

2013-11-29 Thread RaiMan
Question #240001 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240001

Status: Open = Answered

RaiMan proposed the following answer:
ok, understood.

Since you say it works as expected with admin rights (supposing you run
it with run as admin), then there should not be any programmatical
problems ( like FindFailed, wrong imports, ... ).

And running normally does not produce any error messages as well
(especially FindFailed problems), as I understand, but clicks do not act
as expected.

You should run normally but with slow motion (yellow button in IDE or
setShowActions(True) at beginning of main script when running from
command line). So you can check better, if and where Sikuli intends to
click.

The only possibility left is, that the parts of the screen that you want to 
click is somehow restricted (like for mmc-console windows).
Access right problems with the file system should not be the cause, since this 
should lead to FindFailed exceptions.

When using version 1.0.1, running from command line with -d 3 could
reveal some more debugging information.

no more ideas, sorry.

-- 
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 #240001]: Requiring to run Sikuli as Administrator when scripts are in many modules

2013-11-29 Thread Mark
Question #240001 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240001

Mark posted a new comment:
I used the -d 3 option and ran in slow motion.  The target shown is on
the correct image but the mouse does not move to it.  It still logs that
it clicks the image though.

-- 
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 #240001]: Requiring to run Sikuli as Administrator when scripts are in many modules

2013-11-29 Thread RaiMan
Question #240001 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240001

RaiMan requested more information:
You might check your Java installation and possibly uninstall/reinstall.

Another option:

isolate the respective wait()'s and click()'s into a separate simple
script, run it from command line  and look what happens.

What app are you trying to click on?

what happens in the faulty script if you replace a click(target) by a
wait(target)
moveMouse(getLastMatch())
mouseDown(Button.LEFT)
mouseUp()

-- 
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 #240001]: Requiring to run Sikuli as Administrator when scripts are in many modules

2013-11-29 Thread Mark
Question #240001 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240001

Status: Answered = Solved

Mark confirmed that the question is solved:
Hey RaiMain, so after restarting and updating my JRE it seems to work
now.  That is, I don't have to start the SIkuli IDE with admin
privileges in order to get the script to run correctly.

Thanks for your help.

-- 
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 #240001]: Requiring to run Sikuli as Administrator when scripts are in many modules

2013-11-28 Thread Mark
New question #240001 on Sikuli:
https://answers.launchpad.net/sikuli/+question/240001

Hey, I'm on Windows 7 (64bit), and when my Sikuli scripts are all defined in 
one file (one .sikuli file/folder), I am able to run the script perfectly.  
However I've been developing my tests as modules, and they communicate with 
each other to perform certain tasks or get specific pictures.  Since I've 
modularized the code, I haven't been able to run Sikuli successfully without 
running it as administrator.  If i don't run the scripts as an administrator, 
it will 'phantom' the script at the beginning.  By this, I mean that it will 
say it has clicked the image but the mouse doesn't move and no click is 
performed.  Is there still a way to run my tests without having to run them as 
an administrator?

Thanks for any help.

-- 
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