Jump to content

Recommended Posts

Posted

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.

Posted

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

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
×
×
  • Create New...