AutoIt Custom Function _autoit

Source: Internet
Author: User
Built-in functions
For a complete list of built-in functions, see here, for attention on using built-in functions, see here.

Custom functions
Users can use the Func ... Endfunc statements are derived from defining functions.
You can define the parameters of a function and its return value as needed.
The function name must begin with a letter or underscore "_", and the remainder (not the first character) can be selected randomly in letters, numbers, or underscores. The names of the functions listed below are valid:
MyFunc
Func1
_my_func1

The following is an example function that is 10 times times as much as the function of a given number:
Copy Code code as follows:

$val  = 10   
for  $i  = 1  To 10 
      $doubled  = mydouble ($val)  
      msgbox (0,  "",  $val  &  "  twice Times is  "  & $ Doubled)  
      $val  =  $doubled  
next 

exit  ;


Func mydouble ($value)  
      $value  =  $value  *  2 
     Return  $value  
Endfunc

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.