我正在使用BlueZone脚本主机自动执行重复的大型机任务,并试图使用Sendkey方法传递Shift F6。IBM网站上的文档显示。不知道为什么只有我的PF6在工作,而不是换档。有什么想法吗?
https://www3.rocketsoftware.com/bluezone/help/v51/en/bzsh/APPENDIX/IBM_Send_Key_Table.htm
代码:
pythoncom.CoInitialize()
bzo = win32com.client.Dispatch("BZWhll.WhllObj")
bzo.Connect('')
for x in range(9, 20):
a = bzo.ReadScreen('buff', '10', x, 7)
excr_amt = Decimal(a[1].strip().replace(",",""))
if len(str(excr_amt)) == 5:
bzo.PSCursorPos = pos - 9
bzo.SendKeys("x")
bzo.Wait(2)
bzo.SendKeys("<shifton><PF6>")发布于 2022-01-07 04:01:25
尝试发送PF18,这应该等同于shift-PF6。
https://stackoverflow.com/questions/70616136
复制相似问题