Single-liners

  • Add 2+2 and show the result in a MsgBox: Execute
  • autoit:MsgBox(0, '2+2', 2+2)
  • Get current username and show it in a MsgBox: Execute
  • autoit:MsgBox(0, 'Username', 'Your username is: '&@UserName)
  • Get the OS version and show it in a MsgBox: Execute
  • autoit:MsgBox(0, 'OS version', 'Your OS version is: '&@OSVersion)

Multi-line with str-format()

  • Ask for something and display it in a MsgBox: Execute
  • autoit:str-format($str = InputBox('Question', 'What''s your favorite color?')\nIf Not @error Then MsgBox(0, 'Answer', $str))

Helpfile examples with helpfile-example()

  • FileRead: Execute
  • autoit:helpfile-example(FileRead)
  • Sin: Execute
  • autoit:helpfile-example(Sin)
  • _GDIPlus_EffectCreateColorLUT: Execute
  • autoit:helpfile-example(_GDIPlus_EffectCreateColorLUT)

URL examples with url()

  • Hello World: Execute
  • autoit:url(http://scintilla4evr.aq.pl/assets/test.au3))
Be careful with this tool! The examples are safe, but there may be people out there trying to get you!