Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#125 closed Feature Request (Rejected)

codexecute

Reported by: spyrorocks Owned by:
Milestone: Component: AutoIt
Version: Severity:
Keywords: Cc:

Description

Hey au3dev team!

I have been using autoit for over 2 years now, and time and time again I have been wanting a special function...

some sort of a executecode() or au3exc() type function that would/could work something like this:

$code = 'for $i = 0 to 5'&@crlf&'msgbox(0,"", $i)'&@crlf&'next'
au3exc($code)

Then the autoit code inside $code would be ran. Some options to have its own environment would be cool as well, and make it more dynamic such as something like this:

$environment = au3createenvrio()
au3exc("func hello()"&@crlf&"code...."&"endfunc", $environment)
au3exc("hello()", $environment)
au3exc("msgbox(0, , 'hello dude this code does not have access to the hello() function because its not using the environment that the hello function was created in')")

Any code not executed in a special created environment would be executed in the main autoit environment.

The environment could also share variables and such. I believe functions like this would bring autoit to a new level of awesomeness as well as opening up many new types of applications, like a better web preprocessor.

I hope you consider this, it is my dream autoit function(s), and if its hard to understand I encourage you to email me or PM me on the au3 forums.

Thanks for listening,
Spyrorocks [spyrorocks@…]

Attachments (0)

Change History (2)

comment:1 Changed 17 years ago by Valik

  • Resolution set to Rejected
  • Status changed from new to closed

If you can't use Execute() or the command line features /AutoIt3ExecuteLine, /AutoIt3ExecuteScript, you are out of luck. As for sharing variables, depending on the type, it's not difficult to marshal data across process boundaries using STDIO streams or TCP functions.

In short, everything you want can already be achieved with AutoIt. Resolving as Rejected.

comment:2 Changed 17 years ago by TicketCleanup

  • Version 3.2.10.0 deleted

Automatic ticket cleanup.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.