Sending an email

Asked by Alberto Benbunan

I'm trying to automate and email or login to facebook with my email address. When I'm trying to do so I write in the code:

.....
wait(5)
type("<email address hidden>" + Key.TAB)
type("Esto es una prueba de Sikuli" + Key.TAB)
-----

When the script type in the email address types the following: xxxx"ie.edu.

Not @ sign.

How can i do to type the @ sign?

Thanks!

Question information

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

use paste() instead.

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

use paste(), to type text into the input field that has the focus.
use type() only to type keys that are defined in class key or any keys, that are common on all qwerty keyboards (US standard layout is the reference, no localization yet for type())

Revision history for this message
Alberto Benbunan (alberto-benbunan) said :
#3

Thanks rainman.

I did it with:
type("alberto")
type("2", KEY_ALT)
type("gmail.com")

and typed: <email address hidden>

Thanks!

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

ok, you got the way - the hard way ;-)

nevertheless I find this more elegant:
paste("<email address hidden>")

have fun with Sikuli ;-)

Revision history for this message
Alberto Benbunan (alberto-benbunan) said :
#5

oooh!! I see... thanks for your help!