Want to call Sidebar to Front in Win 7

Asked by Alag

I trying to click on an icon in the sidebar. The click works fine.
I have tried to use switchApp(sidebar) but it returns NameError: sidebar

I think this due the fact that sidebar has no titlebar.

If I type <WIN + G >it pops up.

I seem to be unable to get Sikuli to generate a <WIN+g>
type("g", KEY_WIN) generates an error
[sikuli] type: 'g' +4
[sikuli] [Error] source lineNo: 1
[sikuli] [Error] Traceback (innermost last):
  File "C:\Users\Andy\AppData\Local\Temp\sikuli-tmp3636297939847732829.py", line 1, in ?
  File "C:\Users\Andy\Downloads\Sikuli-IDE\sikuli-ide-full.jar\Lib/python/edu/mit/csail/uid/Sikuli.py", line 517, in type
 at sun.awt.windows.WRobotPeer.keyPress(Native Method)
 at java.awt.Robot.keyPress(Unknown Source)
 at edu.mit.csail.uid.SikuliScript.type(SikuliScript.java:625)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)

java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Invalid key code

Any Ideas?
Thiis only a 2 Line script.

Thanks in advance,
-Andy-

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
Sergey Darovskih (darovskih) said :
#1

you're right, looks like it's an error in Sikuli

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

tried KEY_META??

Revision history for this message
Alag (robinson-an) said :
#3

Yes I did. Same Result
-Andy-

On Thu, Feb 4, 2010 at 4:33 PM, RaiMan
<email address hidden>wrote:

> Your question #99863 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/99863
>
> RaiMan posted a new comment:
> tried KEY_META??
> ep
> --
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Alag (robinson-an) said :
#4

Yes exact same result.
-Andy-

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

ok, sorry I'm a Mac - KEY_CMD works ;-)
there are other options to get the sidebar visible I guess.

added info to bug-report.

Can you help with this problem?

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

To post a message you must log in.