Welcome, Guest. Please login or register.

Author Topic: get window list from current screen  (Read 2627 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: get window list from current screen
« on: December 26, 2004, 05:06:55 PM »
You need to use input.device IND_WRITEVENT command to send IECLASS_CLOSEWINDOW event, with ie_EventAddress set to the window address.

This only works for programs that actually handle IDCMP_CLOSEWINDOW messages. It won't work if the program is stalling for some reason (for example: app has crashed, or a requester is open).

Also, you need to be extra careful here, the window could close at any time, and sending the message for a non-existing window is a bad idea.