Jump to content

How can I make AutoIT run itself?


 Share

Recommended Posts

Or

Study the following functions and String functions Reference

Example

$a=1
$v=Execute("$a+1")  ; $v is set to 2


Example


Global $variable
If Assign("variable", "Hello") Then MsgBox(4096, "", $variable)    ; Will print "Hello"


Example


Dim $a_b = 12
$s = Eval("a" & "_" & "b")  ; $s is set to 12

$s =Eval("c")  ; $s = "" and @error 


Example


If Not IsDeclared ("a") then
    MsgBox(0,"", "$a is NOT declared")     ; $a has never been assigned
EndIf

$a=1

If IsDeclared ("a") then
    MsgBox(0,"", "$a IS declared"  )      ; due to previous $a=1 assignment
EndIf
Edited by wolf9228

صرح السماء كان هنا

 

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...