Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The Procomm right scroll bar turns red 1

Status
Not open for further replies.

TheeFalcon

Technical User
Nov 30, 2007
3
US
When Procomm's ( most versions )right scroll bar is used, and the scroll bar turns red, data collection is stopped. Collection will only resume after the scroll bar is brought back home. Is there a aspect code fix that will home this scroll bar every five minutes?

Thanks

TheeFalcon
 
This is by design, although I believe the data should still be buffered and displayed when the scrollback buffer is turned off.

The only way to "fix" this that I can think of would be to monitor the Edit | Scrollback Buffer menu item and then turn off the Scrollback Buffer. The script below does it by checking the menu state and then sending an Escape to the Procomm window to get out of scrollback mode.

proc main
integer State ; State of menu item.

winfocus $PWMAINWIN
menustate PWMENU 215 State
if State == 0 ; See if Scrollback off.
;
else
sendkey 0x1B
endif
endproc

 
Thanks Knob,

Your fix was implemented with a when statement. I needed a hook, to break out of the capture on / capture off.

The program affects other window programs!

Thanks

TheeFalcon
************************
winfocus $PWMAINWIN
menustate PWMENU 215 State
when ELAPSED 0 5 call reset_window

capture on ;turns on capture
waituntil "23:59:00" ;keeps capturing until this time
capture off ;turns capture off
pause 5 ;waits 5 seconds

**************************
proc reset_window

if State == 0 ; See if Scrollback off.
;
else
sendkey 0x1B
endif

endproc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top