New question #288521 on Sikuli:
https://answers.launchpad.net/sikuli/+question/288521

I am trying to create a custom report system and I would like to incorporate 
the current time each time an event is logged.

I am using this code 

import datetime
CurrentTime = datetime.datetime

LogEvents = switchApp("InfoLog - Word")
wait("image.png")
type("Bot Started"+str(CurrentTime))
type(Key.ENTER)
click("image.png")


However the the below is whats returning in the Word document

Bot Started<class ‘datetime.datetime’>

I am on Windows 10 using the most recent Sikulix available. Is it possible 
there is a setting in Sikulix or my PC that I am not seeing that will affect 
the resulting "date and time"?


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

Reply via email to