Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Embedding Perl


  • Please log in to reply
15 replies to this topic
thomasl
  • Members
  • 92 posts
  • Last active: Sep 28 2006 09:55 AM
  • Joined: 16 Jun 2005
I have posted an updated version of my Perl interface library. Three main changes:
* supports AHK (as before) and now also AutoIT3
* has direct functions for initialising Perl variables
* supports the current 5.8.8.817 Perl buildSee http://thomaslauer.c...mp/Calling_Perl

NB: I had to re-register for autohotkey.net, though the files themselves were intact. Strange.

BoBo
  • Guests
  • Last active:
  • Joined: --
That could be a live saver (well, not for a BF2 geek :lol:).
I've to say it again: "Man, I should start learning Perl today, unfortunately i've to go for lunch in a minute..." :cry::wink::D:lol:

Thx for your effort & for sharing this. Much appreciated. 8)

_Chris_
  • Guests
  • Last active:
  • Joined: --
[Moderator's note: moved back from the splitted thread to here]

Thomas, thanks for the updated package. I read through the contents and was impressed at the professionalism, such as good interface scripts it includes and their internal comments.

I've updated your old topic Calling Perl from AHK to link to this new topic.

_thomasl_
  • Guests
  • Last active:
  • Joined: --
[Moderator's note: moved back from the splitted thread to here]

And yet another version :)

I added some error checking, both in the C code and the AHK stuff, and split off the interface code (ie the wrapper functions) into a separate include file.

Give it a whirl. URL is as ever: http://thomaslauer.c...mp/Calling_Perl

OlifromGermany
  • Guests
  • Last active:
  • Joined: --
I'm interested in the script, could you please fix yout web presence?

urlwolf
  • Members
  • 150 posts
  • Last active: Feb 26 2012 07:56 PM
  • Joined: 16 Mar 2006

I'm interested in the script, could you please fix yout web presence?


Me too. I cannot get any content from that url.
Thanks!

automaticman
  • Members
  • 658 posts
  • Last active: Nov 20 2012 06:10 PM
  • Joined: 27 Oct 2006
What does this mean, e.g. if I convert an .ahk script to an .exe file, using your Perl extension, does another user have to have perl on their machines installed? Or would it work there also without having Perl installed?

PhiLho
  • Moderators
  • 6850 posts
  • Last active: Jan 02 2012 10:09 PM
  • Joined: 27 Dec 2005
From what I understand, that's a Perl interface, ie. probably a mean to communicate with or use Perl scripts.
That mean that even if the AHK script is compiled, Perl has to be installed to be used. A mere 9MB install... ;-)
Posted Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")

jonny
  • Members
  • 2951 posts
  • Last active: Feb 24 2008 04:22 AM
  • Joined: 13 Nov 2004

A mere 9MB install...


It seems like when such questions are asked, they are more concerned with distribution of the scripts they make. It seems we attract a lot of entrepeneurs. Personally, I make scripts for myself, hardcoding nearly everything for my computer, and using what I have installed.

automaticman
  • Members
  • 658 posts
  • Last active: Nov 20 2012 06:10 PM
  • Joined: 27 Oct 2006
No, I'm not an entrepreneur (yet). :)


But then I don't understand the "great thing" of this tool. If I install normal perl (as e.g. in my case already) then I can simply start it with RUN.... in .ahk, so who needs such an extra tool?

Dewi Morgan
  • Members
  • 191 posts
  • Last active: Jun 07 2015 04:02 AM
  • Joined: 03 Oct 2005
Looks like this allows perl to be called from ahk.

Is there a way to do this the other way? To access AHK's cool GUI and hookage functionality, from within another scripting language?
Yet another hotkeyer.

Helpy
  • Guests
  • Last active:
  • Joined: --
I see two ways: use the 'system' (can recall exact name, might be 'os.execute') call to run AutoHotkey.exe; or bite the bullet and hack the source to extract the functionnality in a DLL... A quite frequently asked request...

luvan
  • Members
  • 25 posts
  • Last active: Feb 11 2011 09:22 PM
  • Joined: 17 Mar 2007
I can not find Perl58dll.zip
The link is broken
:(

haichen
  • Members
  • 200 posts
  • Last active: Oct 20 2013 01:14 PM
  • Joined: 05 Feb 2007
Looking around at the site i found Thomas Lauers download folder.
http://thomaslauer.com/download/
There you can find perlahk.zip

tinypig
  • Members
  • 16 posts
  • Last active: Aug 29 2014 12:36 AM
  • Joined: 12 Mar 2005
Please also see my solution which requires no additional libraries: http://www.autohotke.../topic2869.html