Rocket Software Homepage
Forum Home Forum Home > AccuTerm Knowledge Base (read only) > GUI Development
  New Posts New Posts RSS Feed - Finding AccuTerm Window Position
  FAQ FAQ  Forum Search   Register Register  Login Login

The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum.

Forum LockedFinding AccuTerm Window Position

 Post Reply Post Reply
Author
Message
iharper View Drop Down
Newbie
Newbie


Joined: October 13 2015
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote iharper Quote  Post ReplyReply Direct Link To This Post Topic: Finding AccuTerm Window Position
    Posted: February 12 2016 at 10:31am
I've got a couple of problems that I think could be related. My main issue is that the GUI forms don't display on the same monitor as the running AccuTerm instance. I've written a small subroutine that uses the following AT script to get the window position:
  SCRIPT  = ''
  SCRIPT := 'ActiveSession.InputMode = 2':EM
  SCRIPT := 'ActiveSession.Output Str(AccuTerm.Left) & " "':EM
  SCRIPT := 'ActiveSession.Output Str(AccuTerm.Width) & " "':EM
  SCRIPT := 'ActiveSession.Output Str(AccuTerm.Top) & " "':EM
  SCRIPT := 'ActiveSession.Output Str(AccuTerm.Height) & " "':EM
  SCRIPT := 'ActiveSession.Output Chr(13)':EM
  SCRIPT := 'ActiveSession.InputMode = 0':EM

  ECHO OFF
  PRINT ESC:STX:'P':SCRIPT:CR:
  INPUT OUTPUT

This works but one particular user has run into issues where the program hangs in an ATGUI call. I haven't been able to track down exactly why this happens. I was able to replicate some of the behavior by inserting a pause into the script and furiously pressing enter while it was paused. This caused the OUTPUT variable to be NULL. I'm wondering if there's a better way to communicate between the host and AT. I'm currently testing the above INPUT statement with FOR and ELSE clauses to see if they will catch erroneous input. 

My second problem is mostly just cosmetic, I think. Occasionally I've seen GUI programs display this kind of output in the terminal:
H00208^<VM>10000000752601
I first encountered it when using TANDEM to investigate some other issues. I also ran into it when doing testing for this window position problem. I'm wondering what this is. It looks like internal representation of the GUISTATE to me. Our system is a mix of green-screen and AT GUI programs so this output on the terminal can be bad if it isn't cleared by the green-screen program. I've only encountered it when a problem arises in a GUI program. 

Any information would be appreciated.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.