BlueZone Object Method "SendKeys"

772 Views Asked by At

I am using BlueZone Script Host to automate repetitive mainframe tasks and I am trying to use Sendkeys method to pass in Shift F6. The documentation on IBM's website says . Not sure why only my PF6 is working but not shift. Any ideas?

https://www3.rocketsoftware.com/bluezone/help/v51/en/bzsh/APPENDIX/IBM_Send_Key_Table.htm

code:

    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>")
1

There are 1 best solutions below

2
cschneid On

Try sending PF18, that should be equivalent to shift-PF6.