AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Embedding Perl

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
thomasl



Joined: 16 Jun 2005
Posts: 92

PostPosted: Mon Sep 04, 2006 9:57 am    Post subject: Embedding Perl Reply with quote

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 build

See http://thomaslauer.com/comp/Calling_Perl

NB: I had to re-register for autohotkey.net, though the files themselves were intact. Strange.
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Mon Sep 04, 2006 11:19 am    Post subject: Reply with quote

That could be a live saver (well, not for a BF2 geek Laughing).
I've to say it again: "Man, I should start learning Perl today, unfortunately i've to go for lunch in a minute..." Crying or Very sadWinkVery HappyLaughing

Thx for your effort & for sharing this. Much appreciated. Cool
Back to top
_Chris_
Guest





PostPosted: Tue Sep 12, 2006 8:20 pm    Post subject: Reply with quote

[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.
Back to top
_thomasl_
Guest





PostPosted: Tue Sep 12, 2006 8:21 pm    Post subject: Reply with quote

[Moderator's note: moved back from the splitted thread to here]

And yet another version Smile

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.com/comp/Calling_Perl
Back to top
OlifromGermany
Guest





PostPosted: Fri Dec 22, 2006 6:31 pm    Post subject: Your Website isn't working :: Strange Error Message Reply with quote

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



Joined: 16 Mar 2006
Posts: 101

PostPosted: Fri Dec 22, 2006 9:02 pm    Post subject: Re: Your Website isn't working :: Strange Error Message Reply with quote

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


Me too. I cannot get any content from that url.
Thanks!
Back to top
View user's profile Send private message
automaticman



Joined: 27 Oct 2006
Posts: 372

PostPosted: Sun Jan 14, 2007 7:15 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Sun Jan 14, 2007 8:46 am    Post subject: Reply with quote

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... Wink
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Sun Jan 14, 2007 10:36 am    Post subject: Reply with quote

Quote:
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.
Back to top
View user's profile Send private message
automaticman



Joined: 27 Oct 2006
Posts: 372

PostPosted: Sun Jan 14, 2007 12:10 pm    Post subject: Reply with quote

No, I'm not an entrepreneur (yet). Smile


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?
Back to top
View user's profile Send private message
Dewi Morgan



Joined: 03 Oct 2005
Posts: 178

PostPosted: Tue Jun 05, 2007 6:04 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Helpy
Guest





PostPosted: Wed Jun 06, 2007 9:27 am    Post subject: Reply with quote

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...
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group