Scratchbook

Das Leben ist immer anders als die Realität.

15’000.- gespart – AutoIt macht’s möglich!

Claude, 22. Dezember 2005, 23:47 Uhr

Warning: Use of undefined constant ri_rand_compare - assumed 'ri_rand_compare' (this will throw an Error in a future version of PHP) in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/random-image-widget/random_image.php on line 129 Warning: Use of undefined constant ri_rand_compare - assumed 'ri_rand_compare' (this will throw an Error in a future version of PHP) in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/random-image-widget/random_image.php on line 130 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 700 Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 707 Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 700 Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 707

1878.jpg

Es wird langsam Zeit, dass ich AutoIt vorstelle. AutoIt ist eine einfache Scriptsprache, die dort anfängt, wo Windows aufhört. Man kann damit in kürzester Zeit alles mögliche damit anstellen.

AutoIt. Das Tool, speziell geeignet, um langweilige Lehrlingsarbeiten zu automatisieren. Mit AutoIt hat meine Programmier-Ära begonnen. Es ist so einfach, und man sieht das Ergebnis seiner Arbeit sehr schnell.

Ursprünglich war AutoIt dazu gedacht, Windows-GUI Anwendungen zu automatisieren, also z.B. Softwareinstallationen und Systemkonfigurationen, die ohne Maus nicht steuerbar sind. Doch dieses kleine, aber feine Tool entwickelte sich nach und nach zu einer mächtigen Scriptsprache, die seit neustem auch die Erstellung von eigenen GUIs zulässt.

Ich habe schon etliches damit angestellt. Und Rakudave schreibt gerade seine Maturarbeit mit AutoIt – ein kompletter Sudoku-Generator mit Solver-Engine!

Angefangen hat’s bei mir mit einer automatisierten WinZip Installation. Später habe ich die Konfigurationsarbeiten, die nach der Installation eines PCs im ServiceCenter notwendig waren (Outlook einrichten, Profil anpassen etc…) komplett automatisiert.
Noch ein wenig später schrieb ich meinen ersten Virus. Danach kam die Lanparty Management Suite, ein Agent, der auf einer LAN-Party zum Einsatz kam und auf jedem PC installiert wurde. Damit konnte man auf Knopfdruck diverse Games auf seiner Kiste installieren lassen; aber ich konnte auch auf Knopfdruck auf allen PCs Meldungen durchgeben, den Bildschirm schwärzen oder Tastatur und Maus sperren :-P.

Schön ist das Leben mit AutoIt. Leider halt nur unter Windows…

Viren, fiese Progrämmli, Management-Suites… Das macht Spass. Doch AutoIt lässt sich auch produktiv einsetzen… 😉

Ich musste z.B. in der Netzwerkabteilung Cisco-Switches konfigurieren. Diese haben ein eigenes Betriebssystem, IOS. Das wird mittels eines TFTP-Daemon über Netzwerk geladen, und schliesslich per Telnet konfiguriert. Eine ziemlich zeitaufwändige Sache, besonders, wenn es gilt, 80 Switches zu konfigurieren…
Dank AutoIt geht das Ganze vollautomatisch über die Bühne, ich muss nur noch den Netzwerkstecker einstecken und auf Start klicken. Das Script wird übrigens immer noch dankbar von meinen Nachfolgern eingesetzt…

Heute kam es aber ganz dick. Beim Nachfolger unserer Softwareverteilungs-Software ist ein Modul dabei, das bei gewissen IP-Ranges die Softwareverteilung verhindert. Kosten tut dieses kleine Modul etwa Fr. 15’000.- (!!)

Ein klarer Fall für AutoIt, und für mich. Zwei Stunden später hatte ich 70 Zeilen AutoIt-Code geschrieben, der genau die obige Funktion erfüllt!

Das ist doch interessant. Ein A4-Blatt hat den Wert von Fr. 15’000.-.
Eine Zeile Code ist mehr als 200.- Wert!
Oder ich hätte heute einen Stundenlohn von 7’500.- gehabt!

Irgendwie unverschämt, was die Firmen heute für solchen Ginggernillis verlangen. Doch zum Glück gibt es ja AutoIt.

Ach ja, AutoIt ist übrigens OpenSource und steht unter der GPL.

[Link]

rakudave

jaja, ich liebe es…
hab schon div. toolz damit geschrieben
(drivescan, quick grabber, screensaver, pc-sperren, GTA-trainer, div.poltergeister…)
und eben auch die maturarbeit (noch nicht fertig aber
der solver ist in der betaversion erhältlich…)

und alles gratis… 😀

Longneck

poltergeister – lool!

die sin doch am amüsantischte 😀

rakudave

*veryevilgrins*

Foxie

poltergeischter? das won i automatisch dängg?

rakudave

nit nur, abr au… 0:-)

Foxie

hehe…0:-)

Warning: count(): Parameter must be an array or an object that implements Countable in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/themes/scratchbook/navigation_bar_bottom.php on line 1