예제 #1
0
파일: hp5372a.py 프로젝트: pipelie/pylt
 def screen_dump(self, fname="_.hp5372a.pbm"):
     print(self.id + " Taking a screendump into " + fname)
     self.wr("INTERFACE;PSOURCE,DISPLAY")
     self.wr("PRINT")
     x = ""
     while True:
         x = x + self.rd()
         if x[-5:] == "\033*rB\0":
             break
     pcl_util.pcl_to_pbm(x, fname)
예제 #2
0
	def screen_dump(self,fname = "_.hp5372a.pbm"):
		print(self.id + " Taking a screendump into " + fname)
		self.wr("INTERFACE;PSOURCE,DISPLAY")
		self.wr("PRINT")
		x = ""
		while True:
			x = x + self.rd()
			if x[-5:] == "\033*rB\0":
				break;
		pcl_util.pcl_to_pbm(x, fname)
예제 #3
0
 def screen_dump(self, fname="_.tds540a.pbm"):
     print(self.id + " Taking a screendump into " + fname)
     self.AOK()
     self.wr("HARDCOPY abort")
     self.AOK()
     self.wr("CLEARMenu")
     self.AOK()
     self.wr("HARDCOPY:FORMAT THINKJET")
     self.wr("HARDCOPY:LAYOUT PORTRAIT")
     self.wr("HARDCOPY:PORT GPIB")
     self.AOK()
     self.wr("HARDCOPY start")
     x = ""
     while True:
         y = self.rd()
         x = x + y
         if y[-1:] == "\014":
             break
     pcl_util.pcl_to_pbm(x, fname)
예제 #4
0
	def screen_dump(self, fname = "_.tds540a.pbm"):
		print(self.id + " Taking a screendump into " + fname)
		self.AOK()
		self.wr("HARDCOPY abort")
		self.AOK()
		self.wr("CLEARMenu")
		self.AOK()
		self.wr("HARDCOPY:FORMAT THINKJET")
		self.wr("HARDCOPY:LAYOUT PORTRAIT")
		self.wr("HARDCOPY:PORT GPIB")
		self.AOK()
		self.wr("HARDCOPY start")
		x = ""
		while True:
			y = self.rd()
			x = x + y
			if y[-1:] == "\014":
				break
		pcl_util.pcl_to_pbm(x, fname)