GoForIt has asked for the wisdom of the Perl Monks concerning the following question:

Hello,

Is it possible to automate the process of opening a Hex editor like XVI32 in Perl?

Thanks,
Thilak

Replies are listed 'Best First'.
Re: How to open a XVI32 hex editor in Perl
by marto (Cardinal) on Apr 07, 2010 at 09:24 UTC

    Take a look at the Win32::GuiTest module.

    Update: Actually, if you just want to launch the application rather than automate its use see system or similar.

      Thanks Marto. This module is pretty cool. Thanks for pointing me in the right direction.

      Thanks,

        Glad to be of help. Out of curiosity, are you planning on automating a hex editor to manipulate the pcl files you mentioned in your previous post?

Re: How to open a XVI32 hex editor in Perl
by dHarry (Abbot) on Apr 07, 2010 at 16:01 UTC

    Assuming you installed it in C:\Program Files\XVI32\

    use strict; use warnings; my @args = ("C:\\Program Files\\XVI32\\XVI32.exe", "argu1", "argu2"); system(@args) == 0 or die "system @args failed: $?"

    You can supply arguments to open a specific file or even supply a script with the /S flag, see xvi32, section "Running scripts automatically from the command line" for details.

    Cheers,

    Harry

      Hi, Thanks. Yes, I'm able to open the editor and automate the process.

      Thanks,