You don’t have the event object for client event scripts. They only exist on event handlers on components. You should either put a timer component on the window or try to get the window first:z= fpmi.tag.getTagValue('[]pc')
y= fpmi.tag.getTagValue('[]print_lock')
print y,z
if z == 1 and y==1:
fpmi.tag.writeToTag('[]pc',0)
fpmi.tag.writeToTag('[]print_lock',0)
rc = fpmi.gui.getWindow("WindowThatReportIsOn").getRootContainer()
job = fpmi.print.createPrintJob(rc.getComponent('Report'))
job.print(none,0)
job1 = fpmi.print.createPrintJob(rc.getComponent('Report1'))
job1.print(none,0)
else:
print "no"