Sign in to follow this  
Followers 0
Dizzydbd

Running strings as Functions

8 posts in this topic

Hard to explain but i hope u get the ideea ...

$code = InputBox("Code","Input execution code")

And i input something like ... let's say

Send("This?")

. Now how do i make the program to run this function ? It can be done?

Share this post


Link to post
Share on other sites



Call()


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

For user-defined functions use Call, as mentioned by Smoke, but if you want to

call a built-in function then you have to use Execute instead. Notice the limitations

as described under "Remarks".

$code = InputBox("Code", "Input your code here..", "Beep()")
If @error Then Exit

Execute($code)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Call()

Thought it was Execute?

Edit: Too late, Helge beat me to it.

Edited by Lobishomen

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Thought it was Execute?

I was thinking of UDFs as helge mentioned, and the ability to maybe pass a parameter with a function to call a function to do a thing in a function to return a result from a function ;)

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

thx all ... fast as usualy ;)

Share this post


Link to post
Share on other sites

I was thinking of UDFs as helge mentioned, and the ability to maybe pass a parameter with a function to call a function to do a thing in a function to return a result from a function ;)

:lmao: My brain hurts after reading that!! :evil:

2015 - Still no flying cars, instead blankets with sleeves.

Share this post


Link to post
Share on other sites

Environment, Files, Dir, Disk, GUI, InputBox, MsgBox, Misc, Network, Obj/COM, Process, Registry, Tray, WinKill functions implying deletion or modification will not be executed.

BUT if i use InputBox it actualy execute them, but if i read the commands from a file it doesn't :|

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