{"id":33,"date":"2011-09-07T12:51:27","date_gmt":"2011-09-07T09:51:27","guid":{"rendered":"http:\/\/saisa.eu\/blogs\/Guidance\/?p=33"},"modified":"2011-10-07T14:50:50","modified_gmt":"2011-10-07T11:50:50","slug":"autoit","status":"publish","type":"post","link":"https:\/\/saisa.eu\/blogs\/Guidance\/?p=33","title":{"rendered":"Autoit, Tool for automating GUI tasks"},"content":{"rendered":"<p><a href=\"http:\/\/www.autoitscript.com\/site\/autoit\/\">Autoit<\/a> for Windows is great tool for GUI task automation.<\/p>\n<p>I used it for facilitating repetitive &#8220;every day&#8221; tasks. I used for opening tools, for filling in data. These are normally needed when mounting encrypted files, synchronizing folders or calendars and when opening your project notes.<\/p>\n<p>Autoit is BASIC type of scripting language, and getting started is easy because of the great help file with ready-to-run examples. In addition to controlling windows, one can also create complex GUI application and compile it into an executable.<\/p>\n<p>For example, with one line of code, one can open a message box with text:<\/p>\n<blockquote><p>MsgBox(0, &#8220;AutoIt Example&#8221;, &#8220;This is line 1&#8221; &amp; @CRLF &amp; &#8220;This is line 2&#8221; &amp; @CRLF &amp; &#8220;This is line 3&#8221;)<\/p><\/blockquote>\n<p><\/p>\n<p>The outcome looks like this<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/saisa.eu\/blogs\/Guidance\/wp-content\/uploads\/2011\/09\/autoit001.png\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-34\" title=\"autoit001\" height=\"185\" alt=\"\" src=\"http:\/\/saisa.eu\/blogs\/Guidance\/wp-content\/uploads\/2011\/09\/autoit001.png\" width=\"155\" \/><\/a><\/p>\n<p>And a more complex GUI application presenting available GUI controls for programming is included in example file &#8220;SampleControls.au3&#8221;. (Figure below).<\/p>\n<p><a href=\"http:\/\/saisa.eu\/blogs\/Guidance\/wp-content\/uploads\/2011\/09\/autoit003-samplecontrols.png\"><\/a><\/p>\n<p><img loading=\"lazy\" height=\"440\" alt=\"autoit003-samplecontrols\" src=\"http:\/\/saisa.eu\/blogs\/Guidance\/wp-content\/uploads\/2011\/09\/autoit003-samplecontrols1.png\" width=\"417\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>The installation includes example &#8220;.au3&#8221; files, and SciTe editor which helps the programming by syntac highlightning and command shortcuts. (Other editor can be used as well). For a screenshort, see figure below.<\/p>\n<p><a href=\"http:\/\/saisa.eu\/blogs\/Guidance\/wp-content\/uploads\/2011\/09\/autoit002-scite-editor.png\"><\/a><\/p>\n<p><a href=\"http:\/\/saisa.eu\/blogs\/Guidance\/wp-content\/uploads\/2011\/09\/autoit002-scite-editor1.png\"><img loading=\"lazy\" height=\"487\" alt=\"autoit002-scite-editor\" src=\"http:\/\/saisa.eu\/blogs\/Guidance\/wp-content\/uploads\/2011\/09\/autoit002-scite-editor-small.png\" width=\"640\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>There is build-in support for ini-files, and there is some basic (RC4) support for encryption functions. However, for storing passwords in ini-files, one could consider to use User Community provided additional open source packages which provides more encryption functions.<\/p>\n<p>ini file could look like this:<br \/>\n<code><br \/>\n[Passwords]<br \/>\npassword_keepass = \"C91E1E89AC4DB710A3E219E284137521757D6AED4AD72C21\"<\/code><\/p>\n<p>[Config]<br \/>\nrevision=&#8221;1.0&#8243;<\/p>\n<p>[Old values]<br \/>\nmy_old_message_of_the_day=&#8221;I did not fail the test, i just found 100 ways to do it wrong&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Autoit for Windows is great tool for GUI task automation. I used it for facilitating repetitive &#8220;every day&#8221; tasks. I used for opening tools, for filling in data. These are normally needed when mounting encrypted files, synchronizing folders or calendars &hellip; <a href=\"https:\/\/saisa.eu\/blogs\/Guidance\/?p=33\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[17,6,7],"tags":[],"_links":{"self":[{"href":"https:\/\/saisa.eu\/blogs\/Guidance\/index.php?rest_route=\/wp\/v2\/posts\/33"}],"collection":[{"href":"https:\/\/saisa.eu\/blogs\/Guidance\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/saisa.eu\/blogs\/Guidance\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/saisa.eu\/blogs\/Guidance\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/saisa.eu\/blogs\/Guidance\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=33"}],"version-history":[{"count":8,"href":"https:\/\/saisa.eu\/blogs\/Guidance\/index.php?rest_route=\/wp\/v2\/posts\/33\/revisions"}],"predecessor-version":[{"id":278,"href":"https:\/\/saisa.eu\/blogs\/Guidance\/index.php?rest_route=\/wp\/v2\/posts\/33\/revisions\/278"}],"wp:attachment":[{"href":"https:\/\/saisa.eu\/blogs\/Guidance\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/saisa.eu\/blogs\/Guidance\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/saisa.eu\/blogs\/Guidance\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}