Question #689265 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/689265

    Status: Answered => Open

lvp is still having a problem:
Yeah, I agree its not good to store password in a file, but for my
requirement I believe it is fine to do it :)

so, i included the bracket [user1 ] in config file and included paste( )
in the script . still get the below error.


[error] script [ Trial ] stopped with error at line --unknown--
[error] Error caused by: Traceback (most recent call last): File 
"C:\Users\lvp\Desktop\Trial.sikuli\Trial.py", line 11, in <module> pin = 
config.get('user1','pin') File 
"C:\Users\lvp\Downloads\sikulix.jar\Lib\ConfigParser.py", line 607, in get 
ConfigParser.NoSectionError: No section: 'user1' 


**Edited script:

click( screenshot )
click (Screenshot)

import ConfigParser
config = ConfigParser.ConfigParser()
config.read('config.ini')
password = config.get('user1','password')
paste()

click (screenshot)
wait(2)
click(Screenshot)

>>config.ini file
[user1]
password = xxxxxx

-- 
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     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to