[1.1.0] Windows using VNC to a Mac 10.10 Yosemite: enter special characters -- paste does not seem to work

Asked by Armel

Hy,

Sikuli is running on windows. I've need to send special caracter like @ on Mac session (in proxy combo Firefox).

How can I do it ?

I've tried different solution since 2 days with find issue .....

Please help me....

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

use paste()

Revision history for this message
Armel (armel-francoise) said :
#2

Hy,

Paste doesn't work with yosemite.

Le 29 juin 2015 10:37:02 CEST, RaiMan <email address hidden> a écrit :
>Your question #268640 on Sikuli changed:
>https://answers.launchpad.net/sikuli/+question/268640
>
> Status: Open => Answered
>
>RaiMan proposed the following answer:
>use paste()
>
>--
>If this answers your question, please go to the following page to let
>us
>know that it is solved:
>https://answers.launchpad.net/sikuli/+question/268640/+confirm?answer_id=0
>
>If you still need help, you can reply to this email or go to the
>following page to enter your feedback:
>https://answers.launchpad.net/sikuli/+question/268640
>
>You received this question notification because you asked the question.

--
Envoyé de mon appareil Android avec K-9 Mail. Veuillez excuser ma brièveté.

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

--- Paste doesn't work with yosemite.

please be more specific.

what version of Sikuli?
what Java version?

Revision history for this message
Armel (armel-francoise) said :
#4

Hy,

Sikuli : 1.1.0-20150626.231021.115

Java : 1.8.0.31-b13

When I use paste, nothing is send to Mac OS X Yosemite.

It's seem OK on windows (I work actually to validate windows 10 with own
products)

My solution today is use the virtual keyboard in Yosemite and "click" each
special key, but it's very hard ......

2015-06-30 8:21 GMT+02:00 RaiMan <email address hidden>:

> Your question #268640 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/268640
>
> Status: Open => Needs information
>
> RaiMan requested more information:
> --- Paste doesn't work with yosemite.
>
> please be more specific.
>
> what version of Sikuli?
> what Java version?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/sikuli/+question/268640
>
> You received this question notification because you asked the question.
>

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

ok, thanks. I will make some tests on my Yosemite.

--- virtual keyboard ??
the small overlay window with the clickable keys in a keyboard layout image, that can be activated from the menu bar after having set the "show…" option in the preferences?

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

just tested:
paste principally works (checked with Textedit)

So could you give me some more details (locale, what special characters, where did you try to paste).

BTW: sure, that the app has focus at time of paste() ?

Revision history for this message
Armel (armel-francoise) said :
#7

a) virtual keyboard : in preference system, i use "Visualiseur de clavier"
. Sorry, i use a french configuration !!!

b) I use Firefox 38.0.5. The focus is correctly in URL area. type is ok
(except @ caracter for example), paste don't work.

I'am with a french keyboard configuration ...

2015-06-30 11:16 GMT+02:00 RaiMan <email address hidden>:

> Your question #268640 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/268640
>
> Status: Open => Answered
>
> RaiMan proposed the following answer:
> just tested:
> paste principally works (checked with Textedit)
>
> So could you give me some more details (locale, what special characters,
> where did you try to paste).
>
> BTW: sure, that the app has focus at time of paste() ?
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/sikuli/+question/268640/+confirm?answer_id=5
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/sikuli/+question/268640
>
> You received this question notification because you asked the question.
>

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

just tested with Firefox 38…

switchApp("Firefox")
type("l", Key.CMD) # switch to address entry field
paste("<email address hidden>")

simply works.

Revision history for this message
Armel (armel-francoise) said :
#9

Ooops, i've just forgot on think : Sikuli 1.1.0 is running on a PC (windows
7 ) and I use uvnc to access Mac.

So, your script doesn't work with me :(

If I adapt like this :

click("Firefox.png")
type("l", Key.CMD)
paste("<email address hidden>")

a) Firefox is correctly open
b) the URL access bar isn't selected. I've just à "l" in search box

If I use Mac keybord abd select URL access bar :

paste don't write anythink ....

[?]

2015-06-30 12:31 GMT+02:00 RaiMan <email address hidden>:

> Your question #268640 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/268640
>
> Status: Open => Answered
>
> RaiMan proposed the following answer:
> just tested with Firefox 38…
>
> switchApp("Firefox")
> type("l", Key.CMD) # switch to address entry field
> paste("<email address hidden>")
>
> simply works.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/sikuli/+question/268640/+confirm?answer_id=7
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/sikuli/+question/268640
>
> You received this question notification because you asked the question.
>

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

ok, that changes things a bit ;-)

… nevertheless: forgot to mention, that FF should be started before running my snippet.

click("Firefox.png") # guess the icon on your desktop
wait(3) # give FF time to come up
# now still the focus is on the desktop, despite the fact that it might be visible
switchApp("Firefox") # to give focus to FF
type("l", Key.CMD)
paste("<email address hidden>")

Revision history for this message
Armel (armel-francoise) said :
#11

I think my problem is link whit a combo proxy ... Finally, I don't know
exactly where is the focus ???

And, switchApp("Firefox") failled .....

????

2015-06-30 13:51 GMT+02:00 RaiMan <email address hidden>:

> Your question #268640 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/268640
>
> Status: Open => Answered
>
> RaiMan proposed the following answer:
> ok, that changes things a bit ;-)
>
> … nevertheless: forgot to mention, that FF should be started before
> running my snippet.
>
> click("Firefox.png") # guess the icon on your desktop
> wait(3) # give FF time to come up
> # now still the focus is on the desktop, despite the fact that it might be
> visible
> switchApp("Firefox") # to give focus to FF
> type("l", Key.CMD)
> paste("<email address hidden>")
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/sikuli/+question/268640/+confirm?answer_id=9
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/sikuli/+question/268640
>
> You received this question notification because you asked the question.
>

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

you might try with
click()

to activate the window and to give focus to a GUI element in that window.

Revision history for this message
Armel (armel-francoise) said :
#13

Goog Morning !!!

still no solution !

I've tested with Firefox and Safari same result.
can not use the command : 'paste'

in fact, when I test :

type("l",KEY_CMD)
or
type("l",KeyModifier.META)

I've just the letter "l" in the URL area.... and the command paste('test@//')
no give result.

I tested with textedit and I have the same problem ....

2015-06-30 17:21 GMT+02:00 RaiMan <email address hidden>:

> Your question #268640 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/268640
>
> Status: Open => Answered
>
> RaiMan proposed the following answer:
> you might try with
> click()
>
> to activate the window and to give focus to a GUI element in that
> window.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/sikuli/+question/268640/+confirm?answer_id=11
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/sikuli/+question/268640
>
> You received this question notification because you asked the question.
>

Revision history for this message
Armel (armel-francoise) said :
#14

News !!!!

I've just make the same operation directly on the Mac, with sikuli install
on it ....

It's running ....

So, the problem is clearly with access via VNC between Windows and Mac .....

can you test with a such configuration ???

Thanks in advance

Armel

2015-07-01 11:07 GMT+02:00 Armel <email address hidden>:

> Your question #268640 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/268640
>
> Status: Answered => Open
>
> You are still having a problem:
> Goog Morning !!!
>
> still no solution !
>
> I've tested with Firefox and Safari same result.
> can not use the command : 'paste'
>
> in fact, when I test :
>
> type("l",KEY_CMD)
> or
> type("l",KeyModifier.META)
>
> I've just the letter "l" in the URL area.... and the command paste('test@
> //')
> no give result.
>
>
> I tested with textedit and I have the same problem ....
>
>
> 2015-06-30 17:21 GMT+02:00 RaiMan
> <email address hidden>:
>
> > Your question #268640 on Sikuli changed:
> > https://answers.launchpad.net/sikuli/+question/268640
> >
> > Status: Open => Answered
> >
> > RaiMan proposed the following answer:
> > you might try with
> > click()
> >
> > to activate the window and to give focus to a GUI element in that
> > window.
> >
> > --
> > If this answers your question, please go to the following page to let us
> > know that it is solved:
> >
> https://answers.launchpad.net/sikuli/+question/268640/+confirm?answer_id=11
> >
> > If you still need help, you can reply to this email or go to the
> > following page to enter your feedback:
> > https://answers.launchpad.net/sikuli/+question/268640
> >
> > You received this question notification because you asked the question.
> >
>
> --
> You received this question notification because you asked the question.
>

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

what about
System Preferences -> Security & Privacy -> Privacy -> Accessibility

are SikuliX.app and Terminal.app listed and activated?

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

... and the VNC app in this case ?

--- can you test with a such configuration ???
sorry, no - at least not within the next 2 weeks.

But latest beginning mid August with version 2, I will focus a bit more on remote processing including VNC.

Revision history for this message
Armel (armel-francoise) said :
#17

Thanks a lot.

I'am standing now for the new version.

2015-07-01 11:26 GMT+02:00 RaiMan <email address hidden>:

> Bug #1470424 status changed in Sikuli:
>
> New => In Progress
>
> https://bugs.launchpad.net/sikuli/+bug/1470424
> "[1.1.0] Windows using VNC to a Mac 10.10 Yosemite: enter special
> characters -- paste does not seem to work"
>
> This bug is linked to #268640.
> [1.1.0] Windows using VNC to a Mac 10.10 Yosemite: enter special
> characters -- paste does not seem to work
> https://answers.launchpad.net/sikuli/+question/268640
>
> --
> You received this question notification because you asked the question.
>

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

I do not really understand:

question or confirmation?

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

see related bug