← Back to team overview

sikuli-driver team mailing list archive

Re: [Bug 1406254] Re: On some dialog boxes in Windows, Sikuli doesn't works

 

On Mac we do not have this annoying admin problems (if a dialog box here
is showing a clickable button, it can be clicked. If you need admin
rights to do the things in a dialog, the related buttons are shown
inactive and are not clickable at all, until you unlock the dialog as
admin).

On Windows especially all dialogs belonging to the admin toolset might work or not (they might be blocked against automated clicking).
Therefor in these cases it normally helps to start a command prompt in the admin mode () and then run the script in this context.

So it is not enough, that you have admin rights on the machine.
You have to start a command line in the admin context:
- right click on the command line tile
- click "Run as admin..."
- confirm the security popup

the opened command line should have the title "Administrator: Command
Prompt".

In such a command window you then have to run the script, that opens and clicks the dialog box using
runsikulix.cmd -r myScript.sikuli

For the version that wants to use Windows command netsh, you might try to issue the command from the script running in an admin prompt using
run("netsh .....")

Raimund

> On 30 Dec 2014, at 20:04, Shubham Soin <s.soin99@xxxxxxxxx> wrote:
> 
> I take the point that Sikuli is not the right scripting tool to administer
> a system.
> But why it is not working on that area, i recently saw a tutorials(video)
> on youtube and i guess its there on sikuli.org as well, about
> changing/setting the ip on Mac OS. It works like a charm, but why not on
> windows then. If you say about the CMD with admin rights, but its just a
> dialog box.
> 
> 
> On Tue, Dec 30, 2014 at 9:41 PM, RaiMan <rmhdevelop@xxxxxx> wrote:
> 
>> I do not think, that Sikuli is the right scripting tool, to administer
>> a system.
>> 
>> Since you have Windows 8, you definitely should use the powershell for
>> that.
>> 
>> ** Changed in: sikuli
>>       Status: New => Invalid
>> 
>> ** Changed in: sikuli
>>     Assignee: Shubham Soin (s-soin99) => (unassigned)
>> 
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https://bugs.launchpad.net/bugs/1406254
>> 
>> Title:
>>  On some dialog boxes in Windows, Sikuli doesn't works
>> 
>> Status in Sikuli:
>>  Invalid
>> 
>> Bug description:
>>  I was testing sikuli to make a script that automatically sets ip in
>>  windows. The whole process goes well till the time the "Wi-Fi
>>  properties" dialog box appears. There is no error shown in the message
>>  section of sikuli ide, and every line is executed(as shown in the
>>  message section), but there is no movement of mouse or the keyboard on
>>  this dialog box. It do identifies the images selected(when i tried
>>  running it using slow motion), but actually there is no mouse
>>  movement. The script runs successfully virtually, but no output is
>>  shown.
>> 
>>  Except for my code of setting ip, i have tested working on all the
>>  buttons and parts of the dialog box, but sikuli isn't responding.
>> 
>>  I'm using windows 8.1 64 bit , sikuli version 1.0.1
>> 
>>  Kindly find the attachment of the screenshots of the dialog box and
>>  the sikuli ide message section with the code.
>> 
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/sikuli/+bug/1406254/+subscriptions
>> 
> 
> -- 
> You received this bug notification because you are subscribed to Sikuli.
> https://bugs.launchpad.net/bugs/1406254
> 
> Title:
>  On some dialog boxes in Windows, Sikuli doesn't works
> 
> Status in Sikuli:
>  Invalid
> 
> Bug description:
>  I was testing sikuli to make a script that automatically sets ip in
>  windows. The whole process goes well till the time the "Wi-Fi
>  properties" dialog box appears. There is no error shown in the message
>  section of sikuli ide, and every line is executed(as shown in the
>  message section), but there is no movement of mouse or the keyboard on
>  this dialog box. It do identifies the images selected(when i tried
>  running it using slow motion), but actually there is no mouse
>  movement. The script runs successfully virtually, but no output is
>  shown.
> 
>  Except for my code of setting ip, i have tested working on all the
>  buttons and parts of the dialog box, but sikuli isn't responding.
> 
>  I'm using windows 8.1 64 bit , sikuli version 1.0.1
> 
>  Kindly find the attachment of the screenshots of the dialog box and
>  the sikuli ide message section with the code.
> 
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/sikuli/+bug/1406254/+subscriptions

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

Title:
  On some dialog boxes in Windows, Sikuli doesn't works

Status in Sikuli:
  Invalid

Bug description:
  I was testing sikuli to make a script that automatically sets ip in
  windows. The whole process goes well till the time the "Wi-Fi
  properties" dialog box appears. There is no error shown in the message
  section of sikuli ide, and every line is executed(as shown in the
  message section), but there is no movement of mouse or the keyboard on
  this dialog box. It do identifies the images selected(when i tried
  running it using slow motion), but actually there is no mouse
  movement. The script runs successfully virtually, but no output is
  shown.

  Except for my code of setting ip, i have tested working on all the
  buttons and parts of the dialog box, but sikuli isn't responding.

  I'm using windows 8.1 64 bit , sikuli version 1.0.1

  Kindly find the attachment of the screenshots of the dialog box and
  the sikuli ide message section with the code.

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


References