Re: [Sikuli-driver] [Question #255885]: "Super" key in Linux?

2018-01-30 Thread RaiMan
Question #255885 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/255885

Description changed to:
 possible solution form comment #9
I know this answer is over 3 years old at this point, however it's one of 
Google's top search results for this issue and wasn't very helpful to me.

I have an alternative workaround to this problem: xdotool. I installed
xdotool and added these lines to my scripts:

# Type WIN
run("xdotool key super")

# Type WIN+1
run("xdotool keydown super")
wait(0.2)
type("1")
run("xdotool keyup super")

These worked for my application. I hope it helps someone else!



Is there a way to trigger the "Super" key with Sikuli in Linux. 
I tried using Key.WIN which doesn't seem to do anything, and using Key.META 
actually uses the Meta key in Linux (which is same as Alt). Reason I ask is I 
want to use the default keyboard shortcuts for maximizing/restoring windows in 
Ubuntu, which use Ctrl + Super + Up / Down.

-- 
You received this question notification because your team Sikuli Drivers
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 #255885]: "Super" key in Linux?

2018-01-29 Thread John Holmstadt
Question #255885 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/255885

John Holmstadt proposed the following answer:
I know this answer is over 3 years old at this point, however it's one
of Google's top search results for this issue and wasn't very helpful to
me.

I have an alternative workaround to this problem: xdotool. I installed
xdotool and added these lines to my scripts:

# Type WIN
run("xdotool key super")

# Type WIN+1
run("xdotool keydown super")
wait(0.2)
type("1")
run("xdotool keyup super")


These worked for my application. I hope it helps someone else!

-- 
You received this question notification because your team Sikuli Drivers
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 #255885]: "Super" key in Linux?

2014-10-21 Thread RaiMan
Question #255885 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/255885

Status: Open => Answered

RaiMan proposed the following answer:
I just read a little about the Super-key.

If you do not get it to work with Sikuli, you should redefine the Super-
key in your keyboard prefs until you get a working setup.

Maybe that can be done on the fly with some command line command, that
could be called before and after running a respective script.

-- 
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 #255885]: "Super" key in Linux?

2014-10-21 Thread RaiMan
Question #255885 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/255885

RaiMan posted a new comment:
Not sure, wether this makes a difference:

keyDown(Key.WIN)
keyDown(Key.CTRL)
type(Key.UP)
keyUp()

or even

keyDown(Key.WIN)
keyDown(Key.CTRL)
keyDown(Key.UP)
keyUp()

-- 
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 #255885]: "Super" key in Linux?

2014-10-21 Thread Zed Zulu
Question #255885 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/255885

Status: Needs information => Open

Zed Zulu gave more information on the question:
I'm trying to use the WIN button to trigger the Super button in Linux, so that 
I can reliable the Maximize/Restore Window keyboard shortcut. 
For example, I want to do something like this:

# Open Application
App.open("someapp")
# Maximize Window (CTRL + Super + Up)
keyDown(Key.WIN)
type(Key.UP, KeyModifier.CTRL)
keyUp()
wait(1)
# Restore Window (CTRL + Super + Down)
keyDown(Key.WIN)
type(Key.DOWN, KeyModifier.CTRL)
keyUp()

-- 
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 #255885]: "Super" key in Linux?

2014-10-21 Thread Eugene S
Question #255885 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/255885

Status: Open => Needs information

Eugene S requested more information:
Can I ask in what context you are using the WIN button in Linux?

-- 
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 #255885]: "Super" key in Linux?

2014-10-21 Thread Zed Zulu
Question #255885 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/255885

Status: Needs information => Open

Zed Zulu gave more information on the question:
Yes I tried something like that before, it didn't work. Somehow it seems like 
the I don't think Key.WIN is recognized at all in Linux. 
I actually tried using these key commands with the Keyboard Layout view in 
focus; when I do a keyDown with Key.WIN, none of keys light up. Key.META lights 
up the Meta L/Alt L key.

-- 
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 #255885]: "Super" key in Linux?

2014-10-21 Thread RaiMan
Question #255885 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/255885

Status: Open => Needs information

RaiMan requested more information:
ok, what happens if you do this for the above example:

keyDown(Key.CTRL)
keyDown(Key.WIN)
type(Key.UP)
keyUp()

-- 
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 #255885]: "Super" key in Linux?

2014-10-20 Thread Zed Zulu
Question #255885 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/255885

Status: Needs information => Open

Zed Zulu gave more information on the question:
It seems to maps to the Windows/CMD key when I'm using a physical
keyboard.

-- 
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 #255885]: "Super" key in Linux?

2014-10-18 Thread RaiMan
Question #255885 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/255885

Status: Open => Needs information

RaiMan requested more information:
what is the "Super" key on your keyboard?

-- 
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 #255885]: "Super" key in Linux?

2014-10-17 Thread Zed Zulu
New question #255885 on Sikuli:
https://answers.launchpad.net/sikuli/+question/255885

Is there a way to trigger the "Super" key with Sikuli in Linux. 
I tried using Key.WIN which doesn't seem to do anything, and using Key.META 
actually uses the Meta key in Linux (which is same as Alt). Reason I ask is I 
want to use the default keyboard shortcuts for maximizing/restoring windows in 
Ubuntu, which use Ctrl + Super + Up / Down.

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