Sign in to follow this  
Followers 0
thomasl

Calling Perl from AutoIt3

8 posts in this topic

About a year ago I wrote a simple DLL to help embed Perl code into AutoHotkey scripts. Since then I have started to use AutoIt3 as well; I have now posted an updated version of this library with an interface for AutoIt3.

Three main changes:

  • now supports also AutoIt3 (as well as AutoHotkey)
  • has direct functions for initialising Perl variables
  • supports the current 5.8.8.817 Perl build
For details see http://thomaslauer.com/comp/Calling_Perl

Share this post


Link to post
Share on other sites



I'm sure it's great, but people around here are kinda leery of compiled files without code posted here. Care to give a little more? Source, demo, implementation? This *is* a Scripts and Scraps forum.

Share this post


Link to post
Share on other sites

I'm sure it's great, but people around here are kinda leery of compiled files without code posted here. Care to give a little more? Source, demo, implementation? This *is* a Scripts and Scraps forum.

He includes the source code in the .zip file located at the link. Additionally, he includes an example script/scrap which walks a script writer through the process of setting up and executing everything.

Because he (very handily) includes the Perl .dll, the resulting .zip file is really a little large to be attached to a forum post. It makes sense to post a link in this kind of situation.

I find this .dll & script to be very useful. Inline Perl code allows for some clean web scripting with the power of both languages.

Excellent job!

-S


(Yet Another) ExcelCOM UDF"A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly...[indent]...specialization is for insects." - R. A. Heinlein[/indent]

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

About a year ago I wrote a simple DLL to help embed Perl code into AutoHotkey scripts. Since then I have started to use AutoIt3 as well; I have now posted an updated version of this library with an interface for AutoIt3.

Three main changes:

  • now supports also AutoIt3 (as well as AutoHotkey)
  • has direct functions for initialising Perl variables
  • supports the current 5.8.8.817 Perl build
For details see http://thomaslauer.com/comp/Calling_Perl

@thomasl,

Thanks! I'll take a look at this. Yesterday I googled perl dll yesterday but your page didn't show up.

Maybe I didn't look deep enough.

Somehow I overlooked this topic.

ViM

Edited by vim

Share this post


Link to post
Share on other sites

I've just uploaded a new version of this. Mostly cosmetic changes as well as more robust error checking in both the C code and the AU3 wrappers. Give it whirl.

See http://thomaslauer.com/comp/Calling_Perl for the details.

I'm sure it's great, but people around here are kinda leery of compiled files without code posted here. Care to give a little more? Source, demo, implementation? This *is* a Scripts and Scraps forum.

All that is included in the zip file you can download from the location given above.

The meat of this is C code (and yes, to re-iterate, the full C source is included in the package, so anyone armed with a C compiler can build his or her own version of the interface DLL). The AU3 part is mostly a collection of simple DllCall() wrappers.

At any rate, this is a pretty specialist thing (don't touch it if you don't know a little Perl). OTOH, if you do know some Perl it can come in quite handy, as Perl has an immense array of functions and extensions.

Share this post


Link to post
Share on other sites

The download link is not working.

Share this post


Link to post
Share on other sites

The download link is not working.

I haven't been here for a pretty long time but another user told me the other day that these files are not available anymore at the Autoit3 site. Not sure what bright soul deleted them (and why).

Anyway, I have recompiled the stuff and put on my own site. Unfortunately I don't use AutoIt any longer, so I can't test this.

See http://thomaslauer.com/download/Perlau3.zip

or http://thomaslauer.com/download/Perlau3_perl58.zip

See also http://thomaslauer.com/comp/Calling_Perl_from_AHK_or_AU3 for more details.

--

cheers

thomasl

Share this post


Link to post
Share on other sites

I haven't been here for a pretty long time but another user told me the other day that these files are not available anymore at the Autoit3 site. Not sure what bright soul deleted them (and why).

--

cheers

thomasl

http://www.autoitscript.com/forum/index.ph...c=49986&hl=


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0