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

Shawn Robertson posted a new comment:
ok i have to update i was incorrect in my explanation I apologize.

if i do this:

timeslip = App(os.path.join(r"C:\tssmoketest", Settings.Version, 
"timeslip.exe"))
timeslip.open()
timeslip.close()
timeslip.open()
timeslip.close()
timeslip.open()
timeslip.close()

it works and I get:
[log] App.open [6920:Timeslip.exe]

[log] App.close: [6920:Timeslip.exe]

[log] App.open [2812:Timeslip.exe]

[log] App.close: [2812:Timeslip.exe]

[log] App.open [8660:Timeslip.exe]

[log] App.close: [8660:Timeslip.exe]



i can no longer do this method now because we made code changes to our core EXE 
application and Killing the process leaves TIMESLIP.EXE running as aproecss 
because Threads are running in the back ground.

so that  is why I had to make a new method of:
def TSAppClose():
    type(Key.F4, KeyModifier.ALT)
    wait(IMG_timeslips_exit_dialog_popup, 30)
    type('y', KeyModifier.ALT)
    waitVanish(IMG_timeslips_exit_dialog_popup)
    if exists(IMG_Win10BackupCurrentDBonExit):
        type('n', KeyModifier.ALT)
        waitVanish(IMG_Win10BackupCurrentDBonExit)

and i had to change my code in the script to this:

timeslip = App(os.path.join(r"C:\tssmoketest", Settings.Version, 
"timeslip.exe"))
timeslip.open()
TSAppClose()
timeslip.open()


when i do this new script code... that is when it fails and i get:

[error] App.open failed: C:\tssmoketest\2019\timeslip.exe not found so I
have to changemy code to this to make it work:


timeslip = App(os.path.join(r"C:\tssmoketest", Settings.Version, 
"timeslip.exe"))
timeslip.open()
TSAppClose()

timeslip = App(os.path.join(r"C:\tssmoketest", Settings.Version, 
"timeslip.exe"))
timeslip.open()
TSAppClose()

timeslip = App(os.path.join(r"C:\tssmoketest", Settings.Version, 
"timeslip.exe"))
timeslip.open()
TSAppClose()


I apologize for not explaining myself properly the first time.

thank you for any advice or help

-- 
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     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to