assassinator
7th April 2006, 05:05
Hello, everyone!
It is my fault. I made a mistake. Count idle time and control Baan session auto exit or not, is not Baan itself. But a software which named "CloseIdle 2.0". It is a program for Windows. In its setting file, "Closeidle.ini", I found that:

[I][Applications]
1=Option Dialog

[Option Dialog]
Timeout=1
MaxInstances=1
MenuBrowserName=Dynamic menu browser
RetryCloseWaitTime=2
MaxCloseAttempts=3

[Option Dialog App Commands]
SubMenu1=File
MenuItem1=Save
SubMenu2=File
MenuItem2=Exit

[Option Dialog Terminate List]


[Exclude List]
1=Calling session

Section: [Exclude List]

This section can contain a variable length list of windows (identified bytheir title bar text) which should be ignored by CloseIdle.There is one entry provided in the default configuration: "Calling session". This identifies the small pop-up dialog window that appears briefly whenever a BaaN session window is opened. It is not necessary for CloseIdle to "hook" into this window. You can add to this list any windows which are considered "critical operations" that should never be interrupted. You should use this feature with caution however, as a user could potentially use it as a means of preventing BaaN from being closed altogether.
(Like:[Exclude List] 1=Calling session 2=BW Messages)


The debug file contains:
09:09:15:460 - WINDOWCREATED - Title is: Login for baanpkg
09:09:20:120 - WINDOWCREATED - Title is: StartupLogo
09:09:20:890 - WINDOWCREATED - Title is: Option Dialog
09:09:20:890 - Hooked to: Option Dialog, hwnd: 994
09:09:20:890 - Calling SetTimer() in SetHooks()
09:09:23:040 - WINDOWCREATED - Title is: Menu browser [User: *** ] [xxx]
09:09:23:040 - Hooked to: Menu browser [User: *** ] [xxx], hwnd: ac0
09:09:31:550 - WINDOWCREATED - Title is: Calling session...
09:09:31:550 - Hooked to: Calling session..., hwnd: 7b8
09:09:31:600 - Releasing hooks: Calling session..., hwnd 7b8
09:09:31:600 - Removing Calling session... from list...
09:09:36:710 - WINDOWCREATED - Title is: BW Messages
09:09:36:710 - Hooked to: BW Messages, hwnd: c64
09:09:39:240 - WINDOWCREATED - Title is: tiitm0101m000 : Maintain Item Data [xxx]
09:09:39:240 - Hooked to: tiitm0101m000 : Maintain Item Data [xxx], hwnd: c60

Now I want to get the name of zoom session such as "Calling session".Does anyone have used it? Please Help!
Thanks!:eek: