| View previous topic :: View next topic |
| Author |
Message |
thomasl
Joined: 16 Jun 2005 Posts: 92
|
Posted: Mon Sep 04, 2006 9:57 am Post subject: Embedding Perl |
|
|
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 |
|
 |
BoBo Guest
|
Posted: Mon Sep 04, 2006 11:19 am Post subject: |
|
|
That could be a live saver (well, not for a BF2 geek ).
I've to say it again: "Man, I should start learning Perl today, unfortunately i've to go for lunch in a minute..."   
Thx for your effort & for sharing this. Much appreciated.  |
|
| Back to top |
|
 |
_Chris_ Guest
|
Posted: Tue Sep 12, 2006 8:20 pm Post subject: |
|
|
[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
|
Posted: Tue Sep 12, 2006 8:21 pm Post subject: |
|
|
[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.com/comp/Calling_Perl |
|
| Back to top |
|
 |
OlifromGermany Guest
|
Posted: Fri Dec 22, 2006 6:31 pm Post subject: Your Website isn't working :: Strange Error Message |
|
|
| I'm interested in the script, could you please fix yout web presence? |
|
| Back to top |
|
 |
urlwolf
Joined: 16 Mar 2006 Posts: 101
|
Posted: Fri Dec 22, 2006 9:02 pm Post subject: Re: Your Website isn't working :: Strange Error Message |
|
|
| 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 |
|
 |
automaticman
Joined: 27 Oct 2006 Posts: 372
|
Posted: Sun Jan 14, 2007 7:15 am Post subject: |
|
|
| 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 |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Sun Jan 14, 2007 8:46 am Post subject: |
|
|
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...  _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Sun Jan 14, 2007 10:36 am Post subject: |
|
|
| 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 |
|
 |
automaticman
Joined: 27 Oct 2006 Posts: 372
|
Posted: Sun Jan 14, 2007 12:10 pm Post subject: |
|
|
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? |
|
| Back to top |
|
 |
Dewi Morgan
Joined: 03 Oct 2005 Posts: 178
|
Posted: Tue Jun 05, 2007 6:04 pm Post subject: |
|
|
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 |
|
 |
Helpy Guest
|
Posted: Wed Jun 06, 2007 9:27 am Post subject: |
|
|
| 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 |
|
 |
|