How about you just force a logoff then instead of trying to find the window?

-----Original Message-----
From: Jangale V-S [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 17, 2003 8:15 PM
To: 'Timothy Johnson'
Subject: RE: killing a process by window title; was: socket application


No ! It's not that I did not like Win32::SetupSup !

The thing is that it does not satisfy my requirement !


The problem is in listing open windows in interactive user's login from
scheduler which is running with different user's login !!

My code is like this


use Win32::Setupsup qw(EnumWindows GetWindowText);
open (TITWIN,">c:\\system\\vsj\.log");
$status = EnumWindows(\@windows);
foreach $window (@windows) {
        GetWindowText($window,\$WINTEXT);
        print TITWIN "$window>\t , $WINTEXT \n\n";
}
close TITWIN;

Now let's say user AAA is loggged in interactively and has opened
application.

Scheduler is running with USER BBB and above script is running with his
login !

Now if script is run thr scheduler (user BBB login), it does not list any
open
window in user AAA's desktop !!! And since it does not list any window, I
can not close
it !

If I run the script thr user AAA's login (with user AAA logged on
interactively) ,
the logfile contains all open windows open in user AAA's login ! But this is
not
the situation !

Hope you got the problem !!


Please let me know how can I use Win32::OLE ??


Thanks in adavance !!

With Best Regards,

Vidyadhar

-----Original Message-----
From: Timothy Johnson [mailto:[EMAIL PROTECTED]]
Sent: 18 February 2003 09:41
To: Jangale V-S; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: RE: killing a process by window title; was: socket application



I guess that means you didn't like Win32::SetupSup?  I'm sure you could use
OLE...

-----Original Message-----
From: Jangale V-S [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 17, 2003 8:09 PM
To: [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: FW: killing a process by window title; was: socket application


Somebody help please !!

-----Original Message-----
From: Jangale V-S 
Sent: 13 February 2003 11:06
To: [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: RE: killing a process by window title; was: socket application


Further to this topic I have a slightly different requirement.

I want to kill process running on interactive desktop (with interactive
user's login) through scheduler .

The background is 

User logged on interactively on a machine are running one application
which they sometimes leave ON overnight . 

A process is running thr schduler (using different user account which is
administrator account) which has to update certain files related to above
application. For this the applcation has to be terminated/closed after
verifying
window title !

Now how can I get/enumerate windows which are open in interactive user's
desktop ?


With Best Regards,

Vidyadhar

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to