Sign in to follow this  
Followers 0
uplink477

Autoit Functions

5 posts in this topic

Hi everyone,

i was just wondering if anyone has any advise on my idea. Basically i want my script to have the ability to update functions or create functions while it is running and be able to use these functions. If anyone has had any experience with this or any advise on how i might go about achieving this please post a reply.

Share this post


Link to post
Share on other sites



that'll most likely require a dll file...

Share this post


Link to post
Share on other sites

It doesn't work that way. AutoIt does not currently (and as far as I know, not planned to) support runtime defined functions.

Share this post


Link to post
Share on other sites

hmmm ok have a look at this script for me. it doesnt quite work yet but iam getting closer.

:config.ini

[functions]
get=inetget(http://www.google.com/index.html,"C:\index.html",1,0)

:functions.au3

$var = IniReadSection("config.ini", "functions")
while 1
    For $i = 1 To $var[0][0]
        MsgBox(4096, "", "Key: " & $var[$i][0] & @CRLF & "Value: " & $var[$i][1])
        $Name = $var[$i][0]
        $func = $var[$i][1]
    
    $cmd = InputBox ( "Enter Command", "Please enter a Command","get") 
    if $cmd = $name then Run(@AutoItExe & ' /AutoIt3ExecuteLine  ' & '"' & $func & '"' )
    Next
    wend

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