downloaded has asked for the wisdom of the Perl Monks concerning the following question:
Any ideas?use Win32::GUI; use Win32::API; use constant WM_COPYDATA => 74; use warnings; my $rushhandle = Win32::GUI::FindWindow("tfmrush", ""); die "Could not find Rush\n" if not $rushhandle; my $command = "RushApp.FTP.Login('backup','',0);"; my $copy_data_struct = pack( 'L2P', 1000, length( $command ) + 5, $com +mand ); Win32::GUI::SendMessage($rushhandle, WM_COPYDATA, 0, $copy_data_struct +);
UPDATE
The problem is that i was using 64bits version of Perl. Everything works fine on 32bits version. :\
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: win32::sendmessage help
by 1nickt (Canon) on Feb 23, 2016 at 13:20 UTC | |
by downloaded (Initiate) on Feb 23, 2016 at 14:37 UTC | |
|
Re: win32::sendmessage help
by NetWallah (Canon) on Feb 23, 2016 at 17:28 UTC | |
by downloaded (Initiate) on Feb 23, 2016 at 17:52 UTC | |
|
Re: win32::sendmessage help
by VinsWorldcom (Prior) on Feb 23, 2016 at 15:07 UTC | |
by downloaded (Initiate) on Feb 23, 2016 at 15:20 UTC | |
|
Re: win32::sendmessage help
by Anonymous Monk on Feb 21, 2018 at 15:39 UTC | |
by Anonymous Monk on Feb 21, 2018 at 18:28 UTC |