Jump to content

Perl + AutoIt?


 Share

Recommended Posts

Is it possible to use Perl and AutoIt together?

Use Perl to make something...You type something into the cmd prompt then it sends a command to AutoIt, AutoIt does it's thing, sends something back to Perl, and Perl prints it to the cmd prompt.

Is that possible..?

[left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]

Link to comment
Share on other sites

yup it is but you have so many somethings in your question it is difficult to find out what you want to do.

however you may be able to communicate between apps compiled from diff languages by passing parameters between your apps but this is not secure.

Link to comment
Share on other sites

yup it is but you have so many somethings in your question it is difficult to find out what you want to do.

however you may be able to communicate between apps compiled from diff languages by passing parameters between your apps but this is not secure.

Let me re-phrase...

Perl creates the cmd prompt with a menu. I enter '1'.

Perl sends the '1' to the AutoIt script.

AutoIt receives the '1' and does whatever is under case 1, and sets information gathered to a variable.

AutoIt sends the variable to the Perl script.

Perl receives and returns on the prompt.

Now that you said it is possible. How can I achieve this?

Edited by Firestorm

[left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]

Link to comment
Share on other sites

Use Perl to send the user's input to the Autoit script via the command-line.

Use an Autoit server on localhost, then send the data with Perl to the server, and then have the server act based on that data.

Perl writes user input to a temp file, Autoit reads the temp file, acts based upon it, then deletes it.

Many different ways to skin this cat.

Link to comment
Share on other sites

Install ActiveState Perl.

$oPerl = ObjCreate("ScriptControl")
$oPerl.language = "perlscript"
$return = $oPerl.eval('perl command')

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...