Application crash if I use sikuli

Asked by Vadivelan on 2017-01-09


I am trying to automate a windows application ( in Windows 10). Application has a login dialog ,upon success a security question dialog will be shown. Once success, will show the application's main window. Everything works properly when I do manually.

If I try to automate through sikuli, able to process login screen, but upon hitting submit in the security question form ( ie when about to open the applications main window ) the program crashes. The first two windows are looks like dialog, can't maximize..
simplified code:

def process_form(myapp):
     region = myapp.window()
     #necessary code to fill the login textbox and hit submit. No issues, next form comes up
     region = myapp.window()
     #necessary code to fill the security answers textbox and hit submit. Program crashes

def open_myapp(myapp_path):
    myapp =
    if not myapp.window():
        popError("open failed")
        return False

#program start

Error dialog - Microsoft .NET Framework:
Unhandled exception has occured in a component in your application. If you click Continue, the application will ignore this error and attempt to continue.
Could not find file 'C:\sikuli\client.ini'
in Details:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.FileNotFoundException: Could not find file 'C:\sikuli\client.ini'.
File name: 'C:\sikuli\client.ini'


To debug, I opened the application through sikuli but done everything else manually ( ie filling forms, hit submit etc ) .. again program crashes upon hitting submit button in the security questions form, with the above said error.
myapp =

Pls help, whats going wrong. Thanks

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Last query:
Last reply:
RaiMan (raimund-hocke) said : #1

What is this file for?
Where and when is tried to open it?

Vadivelan (velan) said : #2

Upon further examination, I found out that client.ini is a file present in the exe application folder which I try to automate.
If I copy that file to my sikuli installation folder(c:\sikuli\), everything works properly. For information, my sikuli script don't try open that client.ini.

Even thought it works now, I wonder whats happening behind. Why would the exe program that I automate, expects one of its file to be present in from where we automate it ( sikuli installation folder ). For information, there are 100s of other files in that exe folder other than client.ini.


Vadivelan (velan) said : #3

client.ini seems used to store various configuration needed for that exe file
When in automation through sikuli, that exe is creating various log & temp files, which are being created inside Sikuli installation folder.

Can you help with this problem?

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

To post a message you must log in.