Sikulix type() is printing double wuotes

Asked by Bri

When using type() it prints double quotes.

Example:

def samples(self,password):
        print (type(password))

If the password is 123

This prints ""123""

Why do I run into this error

Question information

Language:
English Edit question
Status:
Expired
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

  • by Bri
Revision history for this message
RaiMan (raimund-hocke) said :
#1

type() from SikuliX does either return integer 0 or 1.
So you apparently do not use the SikuliX type() method in this case.

To be sure:
def samples(self,password):
        print (SCREEN.type(password))

have you the
from sikuli import *

in your script, when this is an imported subscript or when you are running with pure Jython?

Revision history for this message
Bri (rebelslin) said :
#2

I added the changes and it still prints double quotes.

Also this is pure python

Revision history for this message
Bri (rebelslin) said :
#3

I added the changes and it still prints double quotes.

Also this is pure python

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Open' state without activity for the last 15 days.