Sign in to follow this  
Followers 0
MerkurAlex

execute code inside an input box

2 posts in this topic

okay i have an inputbox and a button i want to be able to enter in code to the inputbox and press the button wich should then run the code so say i have a function called BLAH() and i enter that in the input and press the button it would execute that function it should also execute the normal autoit functions...

im lost on this i tried a couple things


[quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote]

Share this post


Link to post
Share on other sites



okay i have an inputbox and a button i want to be able to enter in code to the inputbox and press the button wich should then run the code so say i have a function called BLAH() and i enter that in the input and press the button it would execute that function it should also execute the normal autoit functions...

im lost on this i tried a couple things

This is a very simple input evaluator: you may use functions, but there are limits. See doc about execute function.

;///////////////////////////////////////
;InputEval.au3
;9.8.2007
;///////////////////////////////////////

$sOut = "Simple input evaluator"

do  
    $sEsp = InputBox ( "InputEval", $sOut)
    $sOut = execute($sEsp)
until $sEsp = ""

'/////////////////////////////
func pigreco()
'/////////////////////////////
    return(4*ATan(1))
EndFunc

Bye.

Share this post


Link to post
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
Sign in to follow this  
Followers 0