The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum. |
Finding AccuTerm Window Position |
Post Reply |
Author | |
iharper
Newbie Joined: October 13 2015 Status: Offline Points: 12 |
Post Options
Thanks(0)
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.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |