Jump to content

Autoit Functions


Recommended Posts

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.

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