Thread Win32::Process - Prozesskontrolle scheitert bei explorer.exe (12 answers)
Opened by Molaf at 2010-12-03 08:43

GwenDragon
 2010-12-03 10:49
#143290 #143290
User since
2005-01-17
14554 Artikel
Admin1
[Homepage]
user image
Warum sendest du nicht einfach über die Win32-API eine Windowmessage WM_CLOSE an das Explorer-Fenster

Ungetestet:
Code (perl): (dl )
1
2
3
4
5
6
use Win32::API;
use Win32::GUI qw { WM_CLOSE };

my $findwindow = new Win32::API("user32", "FindWindowA", ['P','P'], 'N');
my $hwnd = $findwindow->Call('Explorer', 0);
Win32::GUI::SendMessage($hwnd, WM_CLOSE, 0, 0);

Auszüge aus: http://dasskript.blogspot.com/2009/08/automatisier...
Last edited: 2010-12-03 10:51:56 +0100 (CET)
die Drachin, Gwendolyn


Unterschiedliche Perl-Versionen auf Windows (fast wie perlbrew) • Meine Perl-Artikel

View full thread Win32::Process - Prozesskontrolle scheitert bei explorer.exe