Rocket Terminal Emulator

 View Only
  • 1.  TE screen freezes after script sendkey

    Posted 04-08-2024 04:36

    Hi Folks, I hope someone can help me out with this weird issue.  I have a script that has been working fine up until the last Update to v10.2.1.4931.  Now, after sending a PF3 command to the session, it freezes the screen.  Can't move the cursor, can't send input, etc.  I know exactly where it is occurring in my script, at line 1081:

    bzhao.SendKey "<PF3>"

    Up to that point it does a few other sendkey statements, like bzhao.SendKey "<Enter>", no problem.

    If it put this instead:

    MsgBox ("Hit F3 key")

    I run script in debug mode, and it works fine (as long as I hit the F3 key manually, and click on OK).

    I have tried putting disconnect and connect statements right after the sendkey, but it completely disregards them.  

    Anyone seen this before, or know how to fix this?

    Thanks.



    ------------------------------
    Daniel Hayden
    Middleware Infrastructure specialist
    Syniverse Technologies Inc.
    COMMERCE CA US
    ------------------------------


  • 2.  RE: TE screen freezes after script sendkey

    Posted 04-12-2024 11:09

    Seems like the script doesn't know what PF3 is.  Check the keyboard settings for the pc and TE. See if PF3 is defined as PF3.  In debug more manually hitting PF3 works since the script has stopped.  



    ------------------------------
    Anthony Mckenzie
    analyst
    Arizona Health Care Cost Cont.
    ------------------------------



  • 3.  RE: TE screen freezes after script sendkey

    Posted 04-15-2024 05:53

    See if PF3 is defined as PF3

    Did you possibly mean that PF3 was defined as PF03?



    ------------------------------
    Michael Simpson
    Rocket Forum Shared Account
    ------------------------------



  • 4.  RE: TE screen freezes after script sendkey

    Posted 04-15-2024 10:01

    yes



    ------------------------------
    Anthony Mckenzie
    analyst
    Arizona Health Care Cost Cont.
    ------------------------------



  • 5.  RE: TE screen freezes after script sendkey

    Posted 04-16-2024 08:58

    yes, keyboard on session has the PF03 key assigned:

    I created a test script that just does a PF3:

    Sub Main
     
      set bzhao = CreateObject("BZWhll.WhllObj")
      bzhao.Connect ""
     
      bzhao.SendKey "<PF3>"
      bzhao.WaitReady 10, 1
     
     
     
    End Sub

    And it runs fine.

    I did a trace on the problem script, working with Rocket support.  They say it shows a disconnect from the network after the F3 command is sent.  No clue why it would do that, as this script has been working fine for quite awhile now.  Now, the only way I can get it to work is if I put a pause where the send F3 command used to be, and then when it gets to that part in the script, I manually issue the F3 key.



    ------------------------------
    Daniel Hayden
    Middleware Infrastructure specialist
    Verizon Communications
    COMMERCE CA US
    ------------------------------



  • 6.  RE: TE screen freezes after script sendkey

    Posted 04-16-2024 10:40

    mmm...I'm at a loss as to why.  Possibly replace the PF3 with another PF function to see what happens.  It's picking up something in the unseen code or setup to bump off the network.  Copy the code into a text file so it doesn't pickup any hidden characters, delete the program, then readd it & copy/paste from the text file.  Good luck.



    ------------------------------
    Anthony Mckenzie
    analyst
    Arizona Health Care Cost Cont.
    ------------------------------



  • 7.  RE: TE screen freezes after script sendkey

    Posted 04-17-2024 02:32

    And if you do find the answer, don't forget to post it here so others can benefit from your experience.



    ------------------------------
    Michael Simpson
    Rocket Forum Shared Account
    ------------------------------



  • 8.  RE: TE screen freezes after script sendkey

    Posted 05-02-2024 03:14

    I found the issue behind this.  Rocket labs had me put in a paramter into the global.ini file:  AutoWaitTimeout=2.  It is actually already there, I just uncommented it and changed the value.  After adding this parameter, the script no longer causes the 3270 session to freeze.



    ------------------------------
    Daniel Hayden
    Middleware Infrastructure specialist
    Verizon Communications
    COMMERCE CA US
    ------------------------------



  • 9.  RE: TE screen freezes after script sendkey

    Posted 07-01-2024 13:05

    FYI, I found the solution for this issue.    Uncommented AutoWaitTimeout=2 in the global.ini file under C:\Program Files\BlueZone\10.2 directory.  Works great now.



    ------------------------------
    Daniel Hayden
    Middleware Infrastructure specialist
    Verizon Communications
    COMMERCE CA US
    ------------------------------