Windows events in VW when windows hibernates and comes back

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Windows events in VW when windows hibernates and comes back

Mark Pirogovsky-3
Good morning all.

I have a problem with my application when window returns from the
"Hibernate" or "stand by" mode while my application is active.

I need to be able to detect when window goes down to "Hibernate" and
comes back.  Apparently windows does report such events to the
applications - i wonder if visual.exe  reports those events to the Image
and how.

Does anybody knows what my options are?

Truly,

--Mark



_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: Windows events in VW when windows hibernates and comes back

Holger Kleinsorgen-4
Hello,

one option: load "OSProcessSignalHandler" from the public repository.

OSProcessSignalHandler current
    listenToLifecycleSignals;
    when: OSProcessSuspendSignal do: [ : signal |
       Transcript show: 'Bye';cr ];
    when: OSProcessResumeSignal do: [ : signal |
       Transcript show: 'Hello again';cr ];
    yourself

have a look at the package comment for additional details.

>
> I have a problem with my application when window returns from the
> "Hibernate" or "stand by" mode while my application is active.
>
> I need to be able to detect when window goes down to "Hibernate" and
> comes back. Apparently windows does report such events to the
> applications - i wonder if visual.exe reports those events to the Image
> and how.
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc