[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

892.0. ""Pre-Pause action" possible within Session Manager?" by JCR::RZUCIDLO (John Rzucidlo - INDEC New Products) Wed Jun 07 1989 08:10

    I  am looking for a cheap way to hook into the session manager 'pause' 
    function  so  that  I  can  kick  off  a batch job when the session is 
    paused.  Ideally,  I  would  like  to  be able to do the same when the 
    session is reactivated. Any ideas?

							Thanks,

							jr

T.RTitleUserPersonal
Name
DateLines
892.1Steal PSW's code from XFISHGR8FUL::HERBERTWasted daze; wasted knightsWed Jun 07 1989 12:559
    The easiest way to do it is to periodically poll for the creation of a
    window with the proper characteristics (one that covers the entire
    screen and is at the correct place in the window heirarchy). XFISH
    contains a routine to do this; you can look through this conference to
    find a pointer to the sources. Please point a pointer when you do find
    it...
    
    Kevin

892.2I bought my fish at...NEURON::NICHOLSONA belly as big as an oil spillWed Jun 07 1989 14:042
    GVRIEL::DUA1:[SCHOELLER.C.XFISH]

892.3PSW::WINALSKICareful with that VAX, EugeneWed Jun 07 1989 18:275
PSW::PSW$DUA1:[WINALSKI.XFISH]FISH.C contains a routine that will find a
DECwindows Session Manager's pause window on either VMS or Ultrix.

--PSW

892.4...but I didn't want to poll...JCR::RZUCIDLOJohn Rzucidlo - INDEC New ProductsThu Jun 08 1989 11:169
I was really looking for a way to initiate a command procedure of my choice 
when the session was paused... I guess that would require a change to the
session manager to check a logical name or something and (if defined "true",
let's say) execute my procedure. A bit wish-list-ish...

Thank's anyway!

jr

892.5Poll initially, then use eventsGR8FUL::HERBERTClass B Computing DeviceThu Jun 08 1989 12:036
    You could poll for the window before it was initially created, and the
    select MapNotify events on the window, so that you'd get an event when
    the workstation was subsequently paused.
    
    Kevin

892.6PSW::WINALSKICareful with that VAX, EugeneThu Jun 08 1989 18:5013
A note about the Session Manager pause window:  the Session Manager doesn't
create this window until you pause the session for the first time.  The window
doesn't exist when the SM first comes up.  If you resume a paused session, the
SM unmaps the window but it doesn't delete it.  If you pause again, it re-uses
the window.  Once created, the pause window ID never changes.  Thus, the
application should poll for the pause window ID every so often (suitable
interval depends on how responsive you want the application to be, fish and
kaleidoscope use 5 seconds), as long as the window ID is coming back zero.  When
you get a non-zero ID, you can select MapNotify events on it (if the server will
let you) and from then on let those events drive the application.

--PSW