Running via batch file showing passwords

Asked by Huko K on 2018-07-19

Good morning - Is there any way to disable/hide the command prompt windows that shows what the script is doing? My concern is that it shows the log of what it's doing including passwords!

I'm using version 1.1.2

Here's the batch file I'm using (Win 7 user)

\\nas1\remote$\Programs\scripts\siqulix\runsikulix.cmd -r,u "\\nas1\remote$\Programs\scripts\siqulix\scripts\UnknownClient.sikuli"


I've tried the following within the script:

OpsPassword = input("Please enter your OPS password", hidden = True)

It still shows it in the cmd prompt windows.
Thanks again for this amazing software (I'm still very very new to it)

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Last query:
Last reply:

I think you may try redirecting STDout to nul, as described here:

That is run the script as
\nas1\remote$\Programs\scripts\siqulix\runsikulix.cmd -r,u "\\nas1\remote$\Programs\scripts\siqulix\scripts\UnknownClient.sikuli" > nul 2>&1

RaiMan (raimund-hocke) said : #2

I checked with the latest 1.1.3:
A script simply containing this line:

OpsPassword = input("Please enter your OPS password", hidden = True)

does not print the entered password when run from commandline (even not in the IDE and even not with debug level set to 3).

Can you help with this problem?

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

To post a message you must log in.