1. Dashboard
  2. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  3. Forenregeln
  4. Forum
    1. Unerledigte Themen
  • Anmelden
  • Registrieren
  • Suche
Alles
  • Alles
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche
  1. AutoIt.de - Das deutschsprachige Forum.
  2. Mitglieder
  3. chesstiger

Beiträge von chesstiger

  • Problem bei Funktion Encrypt

    • chesstiger
    • 25. Juli 2012 um 22:03

    Mit Sonderzeichen, Zahlen und Buchstaben ist MD5 praktisch unknackbar. ;)

    lg chess

  • [FRAGE] Thread für - Script für Scriptübergreifende Variablen - wo erstellen?

    • chesstiger
    • 25. Juli 2012 um 21:49

    Und zur Not: Datei im Temp-Ordner erstellen, mit FileSetAttrib auf Hide schalten und dann halt aus den anderen Scripts auslesen & anschließend löschen.

    lg chess

  • Problem bei Funktion Encrypt

    • chesstiger
    • 25. Juli 2012 um 21:46

    *Hust Hust*
    Klick!
    *Hust Hust*
    Aber keine Angst: Nimm mal Zahlen oder gar Sonderzeichen mit rein, dann geht das auch nicht mehr. ;)

    lg chess

  • Problem bei Funktion Encrypt

    • chesstiger
    • 25. Juli 2012 um 21:08

    Sorry, ich hab einfach zwei Buchstaben vergessen zu tippen, weil Bastian ja Basti abgekürzt wird.
    Ich hatte schon Bastian raus.:D

    lg chess

  • Mehrere Fenster arbeiten Zusammen

    • chesstiger
    • 25. Juli 2012 um 20:23

    Als Ergänzung:

    [autoit]


    AutoItSetOption("MouseCoordMode",0)
    WinActivate("NameA")
    MouseMove($iX_1,$iY_1)
    WinActivate("NameB")
    MouseMove($iX_2,$iY_2)

    [/autoit]


    Natürlich noch die Variablen deklarieren. ;)
    Sonst muss ich D2 Recht geben: Die Sleeps sind unnötig, das Script pausiert solange, bis die Funktion ausgeführt worden ist.

    Ach, und für nen Kasten Bier bin ich noch zu jung. 8o

    lg chess
    Edit: Achso, für Debugging waren die Sleeps... ;)

  • Problem bei Funktion Encrypt

    • chesstiger
    • 25. Juli 2012 um 20:15

    Ja, kann man... Du hast es ja auch relativ einfach gehalten. ;)
    Das Passwort ist Basti. :P
    Dein ganzer Username aber zum Beispiel ist ein ganzes Stückchen sicherer, da er noch Zahlen enthält.

    lg chess

  • FileCopy abbrechen wenn Bedingung erfüllt

    • chesstiger
    • 25. Juli 2012 um 13:26

    Mhh... du kannst über XCOPY.exe (Auf jedem modernen WIndows-System dabei) eine Datei kopieren. Aber ich bezweifle, dass das mit Server geht. ;)
    Ich vermute, es handelt sich hier um einen FTP-Server?

    lg chess

  • _IELoadWait Problem

    • chesstiger
    • 25. Juli 2012 um 13:09

    Dann wäre aber vielleicht WinWait besser...?

    lg chess

  • Problem bei Funktion Encrypt

    • chesstiger
    • 25. Juli 2012 um 11:27

    Was?

  • Problem bei Funktion Encrypt

    • chesstiger
    • 25. Juli 2012 um 11:03

    Ja.
    Die _MD5-Funktion gibt den MD5-Hash eines Strings zurück.
    Und Script 2 enthält die _MD5-Funktion. ;)

    Ach, das Passwort ist "Passwort".:P

    lg chess

  • In Eingabefeld farbig schreiben

    • chesstiger
    • 25. Juli 2012 um 10:17

    Kein Ding.^^
    Mit RichEdits kann man viele lustige Sachen machen. ;)

    lg chess

  • Problem bei Funktion Encrypt

    • chesstiger
    • 25. Juli 2012 um 10:06

    Aus einem MD5-Hash kann man nur schwer bis garnicht das Passwort zurückbilden. (Und dann nur mit sowas wie Rainbow-Tables etc...)
    Von daher ist das schon relativ sicher, aber ich zeig dir einfach mal ein Beispiel:

    Skript
    [autoit]


    #include <MD5.au3>

    [/autoit] [autoit][/autoit] [autoit]

    $sPassword = InputBox("","Enter Passwort:")
    If _MD5($sPassword) = "3e45af4ca27ea2b03fc6183af40ea112" Then
    MsgBox(64,"","Password is correct!")
    Else
    MsgBox(16,"","Password is wrong!")
    EndIf

    [/autoit]
    MD5.au3
    [autoit]


    Func _MD5($sMessage)
    Local $Padding = Binary('0x8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000')
    Local $bytes = Binary($sMessage) + BinaryMid($Padding,1,BinaryLen($Padding) - Mod(BinaryLen($sMessage),64)) + BinaryMid(Binary(BinaryLen($sMessage)*8)+Binary(0),1,8)
    Local $x[BinaryLen($bytes)/4]
    For $i = 1 To BinaryLen($bytes) Step 4
    $x[($i-1)/4] = Dec(StringTrimLeft(Binary(BinaryMid($bytes,$i+3,1) + BinaryMid($bytes,$i+2,1) + BinaryMid($bytes,$i+1,1) + BinaryMid($bytes,$i,1)),2))
    Next
    Local $a = 0x67452301, $b = 0xEFCDAB89, $c = 0x98BADCFE, $d = 0x10325476

    For $k = 0 To UBound($x) - 1 Step 16
    $AA = $a
    $BB = $b
    $CC = $c
    $DD = $d

    ; The hex number in the middle of each of the following lines
    ; an element from the 64 element table constructed with
    ; T(i) = Int(4294967296 * Abs(Sin(i))) where i is 1 to 64.
    ;
    ; However, for speed we don't want to calculate the value every time.


    $a = BitOR(BitRotate(BitOR($a + BitOR(BitOR(BitOR(BitAND($b, $c), BitAND((BitNOT($b)), $d)) + $x[$k + 0x0],0) + 0xD76AA478,0),0), 0x07,"D")+$b,0)
    $d = BitOR(BitRotate(BitOR($d + BitOR(BitOR(BitOR(BitAND($a, $b), BitAND((BitNOT($a)), $c)) + $x[$k + 0x1],0) + 0xE8C7B756,0),0), 0x0C,"D")+$a,0)
    $c = BitOR(BitRotate(BitOR($c + BitOR(BitOR(BitOR(BitAND($d, $a), BitAND((BitNOT($d)), $b)) + $x[$k + 0x2],0) + 0x242070DB,0),0), 0x11,"D")+$d,0)
    $b = BitOR(BitRotate(BitOR($b + BitOR(BitOR(BitOR(BitAND($c, $d), BitAND((BitNOT($c)), $a)) + $x[$k + 0x3],0) + 0xC1BDCEEE,0),0), 0x16,"D")+$c,0)
    $a = BitOR(BitRotate(BitOR($a + BitOR(BitOR(BitOR(BitAND($b, $c), BitAND((BitNOT($b)), $d)) + $x[$k + 0x4],0) + 0xF57C0FAF,0),0), 0x07,"D")+$b,0)
    $d = BitOR(BitRotate(BitOR($d + BitOR(BitOR(BitOR(BitAND($a, $b), BitAND((BitNOT($a)), $c)) + $x[$k + 0x5],0) + 0x4787C62A,0),0), 0x0C,"D")+$a,0)
    $c = BitOR(BitRotate(BitOR($c + BitOR(BitOR(BitOR(BitAND($d, $a), BitAND((BitNOT($d)), $b)) + $x[$k + 0x6],0) + 0xA8304613,0),0), 0x11,"D")+$d,0)
    $b = BitOR(BitRotate(BitOR($b + BitOR(BitOR(BitOR(BitAND($c, $d), BitAND((BitNOT($c)), $a)) + $x[$k + 0x7],0) + 0xFD469501,0),0), 0x16,"D")+$c,0)
    $a = BitOR(BitRotate(BitOR($a + BitOR(BitOR(BitOR(BitAND($b, $c), BitAND((BitNOT($b)), $d)) + $x[$k + 0x8],0) + 0x698098D8,0),0), 0x07,"D")+$b,0)
    $d = BitOR(BitRotate(BitOR($d + BitOR(BitOR(BitOR(BitAND($a, $b), BitAND((BitNOT($a)), $c)) + $x[$k + 0x9],0) + 0x8B44F7AF,0),0), 0x0C,"D")+$a,0)
    $c = BitOR(BitRotate(BitOR($c + BitOR(BitOR(BitOR(BitAND($d, $a), BitAND((BitNOT($d)), $b)) + $x[$k + 0xA],0) + 0xFFFF5BB1,0),0), 0x11,"D")+$d,0)
    $b = BitOR(BitRotate(BitOR($b + BitOR(BitOR(BitOR(BitAND($c, $d), BitAND((BitNOT($c)), $a)) + $x[$k + 0xB],0) + 0x895CD7BE,0),0), 0x16,"D")+$c,0)
    $a = BitOR(BitRotate(BitOR($a + BitOR(BitOR(BitOR(BitAND($b, $c), BitAND((BitNOT($b)), $d)) + $x[$k + 0xC],0) + 0x6B901122,0),0), 0x07,"D")+$b,0)
    $d = BitOR(BitRotate(BitOR($d + BitOR(BitOR(BitOR(BitAND($a, $b), BitAND((BitNOT($a)), $c)) + $x[$k + 0xD],0) + 0xFD987193,0),0), 0x0C,"D")+$a,0)
    $c = BitOR(BitRotate(BitOR($c + BitOR(BitOR(BitOR(BitAND($d, $a), BitAND((BitNOT($d)), $b)) + $x[$k + 0xE],0) + 0xA679438E,0),0), 0x11,"D")+$d,0)
    $b = BitOR(BitRotate(BitOR($b + BitOR(BitOR(BitOR(BitAND($c, $d), BitAND((BitNOT($c)), $a)) + $x[$k + 0xF],0) + 0x49B40821,0),0), 0x16,"D")+$c,0)

    $a = BitOR(BitRotate(BitOR($a + BitOR(BitOR(BitOR(BitAND($b, $d), BitAND($c, (BitNOT($d)))) + $x[$k + 0x1],0) + 0xF61E2562,0),0),0x05,"D")+$b,0)
    $d = BitOR(BitRotate(BitOR($d + BitOR(BitOR(BitOR(BitAND($a, $c), BitAND($b, (BitNOT($c)))) + $x[$k + 0x6],0) + 0xC040B340,0),0),0x09,"D")+$a,0)
    $c = BitOR(BitRotate(BitOR($c + BitOR(BitOR(BitOR(BitAND($d, $b), BitAND($a, (BitNOT($b)))) + $x[$k + 0xB],0) + 0x265E5A51,0),0),0x0E,"D")+$d,0)
    $b = BitOR(BitRotate(BitOR($b + BitOR(BitOR(BitOR(BitAND($c, $a), BitAND($d, (BitNOT($a)))) + $x[$k + 0x0],0) + 0xE9B6C7AA,0),0),0x14,"D")+$c,0)
    $a = BitOR(BitRotate(BitOR($a + BitOR(BitOR(BitOR(BitAND($b, $d), BitAND($c, (BitNOT($d)))) + $x[$k + 0x5],0) + 0xD62F105D,0),0),0x05,"D")+$b,0)
    $d = BitOR(BitRotate(BitOR($d + BitOR(BitOR(BitOR(BitAND($a, $c), BitAND($b, (BitNOT($c)))) + $x[$k + 0xA],0) + 0x02441453,0),0),0x09,"D")+$a,0)
    $c = BitOR(BitRotate(BitOR($c + BitOR(BitOR(BitOR(BitAND($d, $b), BitAND($a, (BitNOT($b)))) + $x[$k + 0xF],0) + 0xD8A1E681,0),0),0x0E,"D")+$d,0)
    $b = BitOR(BitRotate(BitOR($b + BitOR(BitOR(BitOR(BitAND($c, $a), BitAND($d, (BitNOT($a)))) + $x[$k + 0x4],0) + 0xE7D3FBC8,0),0),0x14,"D")+$c,0)
    $a = BitOR(BitRotate(BitOR($a + BitOR(BitOR(BitOR(BitAND($b, $d), BitAND($c, (BitNOT($d)))) + $x[$k + 0x9],0) + 0x21E1CDE6,0),0),0x05,"D")+$b,0)
    $d = BitOR(BitRotate(BitOR($d + BitOR(BitOR(BitOR(BitAND($a, $c), BitAND($b, (BitNOT($c)))) + $x[$k + 0xE],0) + 0xC33707D6,0),0),0x09,"D")+$a,0)
    $c = BitOR(BitRotate(BitOR($c + BitOR(BitOR(BitOR(BitAND($d, $b), BitAND($a, (BitNOT($b)))) + $x[$k + 0x3],0) + 0xF4D50D87,0),0),0x0E,"D")+$d,0)
    $b = BitOR(BitRotate(BitOR($b + BitOR(BitOR(BitOR(BitAND($c, $a), BitAND($d, (BitNOT($a)))) + $x[$k + 0x8],0) + 0x455A14ED,0),0),0x14,"D")+$c,0)
    $a = BitOR(BitRotate(BitOR($a + BitOR(BitOR(BitOR(BitAND($b, $d), BitAND($c, (BitNOT($d)))) + $x[$k + 0xD],0) + 0xA9E3E905,0),0),0x05,"D")+$b,0)
    $d = BitOR(BitRotate(BitOR($d + BitOR(BitOR(BitOR(BitAND($a, $c), BitAND($b, (BitNOT($c)))) + $x[$k + 0x2],0) + 0xFCEFA3F8,0),0),0x09,"D")+$a,0)
    $c = BitOR(BitRotate(BitOR($c + BitOR(BitOR(BitOR(BitAND($d, $b), BitAND($a, (BitNOT($b)))) + $x[$k + 0x7],0) + 0x676F02D9,0),0),0x0E,"D")+$d,0)
    $b = BitOR(BitRotate(BitOR($b + BitOR(BitOR(BitOR(BitAND($c, $a), BitAND($d, (BitNOT($a)))) + $x[$k + 0xC],0) + 0x8D2A4C8A,0),0),0x14,"D")+$c,0)

    $a = BitOR(BitRotate(BitOR($a + BitOR(BitOR(BitXOR($b, $c, $d) + $x[$k + 0x5],0) + 0xFFFA3942,0),0),0x04,"D")+$b,0)
    $d = BitOR(BitRotate(BitOR($d + BitOR(BitOR(BitXOR($a, $b, $c) + $x[$k + 0x8],0) + 0x8771F681,0),0),0x0B,"D")+$a,0)
    $c = BitOR(BitRotate(BitOR($c + BitOR(BitOR(BitXOR($d, $a, $b) + $x[$k + 0xB],0) + 0x6D9D6122,0),0),0x10,"D")+$d,0)
    $b = BitOR(BitRotate(BitOR($b + BitOR(BitOR(BitXOR($c, $d, $a) + $x[$k + 0xE],0) + 0xFDE5380C,0),0),0x17,"D")+$c,0)
    $a = BitOR(BitRotate(BitOR($a + BitOR(BitOR(BitXOR($b, $c, $d) + $x[$k + 0x1],0) + 0xA4BEEA44,0),0),0x04,"D")+$b,0)
    $d = BitOR(BitRotate(BitOR($d + BitOR(BitOR(BitXOR($a, $b, $c) + $x[$k + 0x4],0) + 0x4BDECFA9,0),0),0x0B,"D")+$a,0)
    $c = BitOR(BitRotate(BitOR($c + BitOR(BitOR(BitXOR($d, $a, $b) + $x[$k + 0x7],0) + 0xF6BB4B60,0),0),0x10,"D")+$d,0)
    $b = BitOR(BitRotate(BitOR($b + BitOR(BitOR(BitXOR($c, $d, $a) + $x[$k + 0xA],0) + 0xBEBFBC70,0),0),0x17,"D")+$c,0)
    $a = BitOR(BitRotate(BitOR($a + BitOR(BitOR(BitXOR($b, $c, $d) + $x[$k + 0xD],0) + 0x289B7EC6,0),0),0x04,"D")+$b,0)
    $d = BitOR(BitRotate(BitOR($d + BitOR(BitOR(BitXOR($a, $b, $c) + $x[$k + 0x0],0) + 0xEAA127FA,0),0),0x0B,"D")+$a,0)
    $c = BitOR(BitRotate(BitOR($c + BitOR(BitOR(BitXOR($d, $a, $b) + $x[$k + 0x3],0) + 0xD4EF3085,0),0),0x10,"D")+$d,0)
    $b = BitOR(BitRotate(BitOR($b + BitOR(BitOR(BitXOR($c, $d, $a) + $x[$k + 0x6],0) + 0x04881D05,0),0),0x17,"D")+$c,0)
    $a = BitOR(BitRotate(BitOR($a + BitOR(BitOR(BitXOR($b, $c, $d) + $x[$k + 0x9],0) + 0xD9D4D039,0),0),0x04,"D")+$b,0)
    $d = BitOR(BitRotate(BitOR($d + BitOR(BitOR(BitXOR($a, $b, $c) + $x[$k + 0xC],0) + 0xE6DB99E5,0),0),0x0B,"D")+$a,0)
    $c = BitOR(BitRotate(BitOR($c + BitOR(BitOR(BitXOR($d, $a, $b) + $x[$k + 0xF],0) + 0x1FA27CF8,0),0),0x10,"D")+$d,0)
    $b = BitOR(BitRotate(BitOR($b + BitOR(BitOR(BitXOR($c, $d, $a) + $x[$k + 0x2],0) + 0xC4AC5665,0),0),0x17,"D")+$c,0)

    $a = BitOR(BitRotate(BitOR($a + BitOR(BitOR(BitXOR($c, BitOR($b, (BitNOT($d)))) + $x[$k + 0x0],0) + 0xF4292244,0),0),0x06,"D")+$b,0)
    $d = BitOR(BitRotate(BitOR($d + BitOR(BitOR(BitXOR($b, BitOR($a, (BitNOT($c)))) + $x[$k + 0x7],0) + 0x432AFF97,0),0),0x0A,"D")+$a,0)
    $c = BitOR(BitRotate(BitOR($c + BitOR(BitOR(BitXOR($a, BitOR($d, (BitNOT($b)))) + $x[$k + 0xE],0) + 0xAB9423A7,0),0),0x0F,"D")+$d,0)
    $b = BitOR(BitRotate(BitOR($b + BitOR(BitOR(BitXOR($d, BitOR($c, (BitNOT($a)))) + $x[$k + 0x5],0) + 0xFC93A039,0),0),0x15,"D")+$c,0)
    $a = BitOR(BitRotate(BitOR($a + BitOR(BitOR(BitXOR($c, BitOR($b, (BitNOT($d)))) + $x[$k + 0xC],0) + 0x655B59C3,0),0),0x06,"D")+$b,0)
    $d = BitOR(BitRotate(BitOR($d + BitOR(BitOR(BitXOR($b, BitOR($a, (BitNOT($c)))) + $x[$k + 0x3],0) + 0x8F0CCC92,0),0),0x0A,"D")+$a,0)
    $c = BitOR(BitRotate(BitOR($c + BitOR(BitOR(BitXOR($a, BitOR($d, (BitNOT($b)))) + $x[$k + 0xA],0) + 0xFFEFF47D,0),0),0x0F,"D")+$d,0)
    $b = BitOR(BitRotate(BitOR($b + BitOR(BitOR(BitXOR($d, BitOR($c, (BitNOT($a)))) + $x[$k + 0x1],0) + 0x85845DD1,0),0),0x15,"D")+$c,0)
    $a = BitOR(BitRotate(BitOR($a + BitOR(BitOR(BitXOR($c, BitOR($b, (BitNOT($d)))) + $x[$k + 0x8],0) + 0x6FA87E4F,0),0),0x06,"D")+$b,0)
    $d = BitOR(BitRotate(BitOR($d + BitOR(BitOR(BitXOR($b, BitOR($a, (BitNOT($c)))) + $x[$k + 0xF],0) + 0xFE2CE6E0,0),0),0x0A,"D")+$a,0)
    $c = BitOR(BitRotate(BitOR($c + BitOR(BitOR(BitXOR($a, BitOR($d, (BitNOT($b)))) + $x[$k + 0x6],0) + 0xA3014314,0),0),0x0F,"D")+$d,0)
    $b = BitOR(BitRotate(BitOR($b + BitOR(BitOR(BitXOR($d, BitOR($c, (BitNOT($a)))) + $x[$k + 0xD],0) + 0x4E0811A1,0),0),0x15,"D")+$c,0)
    $a = BitOR(BitRotate(BitOR($a + BitOR(BitOR(BitXOR($c, BitOR($b, (BitNOT($d)))) + $x[$k + 0x4],0) + 0xF7537E82,0),0),0x06,"D")+$b,0)
    $d = BitOR(BitRotate(BitOR($d + BitOR(BitOR(BitXOR($b, BitOR($a, (BitNOT($c)))) + $x[$k + 0xB],0) + 0xBD3AF235,0),0),0x0A,"D")+$a,0)
    $c = BitOR(BitRotate(BitOR($c + BitOR(BitOR(BitXOR($a, BitOR($d, (BitNOT($b)))) + $x[$k + 0x2],0) + 0x2AD7D2BB,0),0),0x0F,"D")+$d,0)
    $b = BitOR(BitRotate(BitOR($b + BitOR(BitOR(BitXOR($d, BitOR($c, (BitNOT($a)))) + $x[$k + 0x9],0) + 0xEB86D391,0),0),0x15,"D")+$c,0)

    $a = BitOR($a + $AA,0)
    $b = BitOR($b + $BB,0)
    $c = BitOR($c + $CC,0)
    $d = BitOR($d + $DD,0)
    Next

    Return StringLower(StringMid(Hex($a),7,2) & StringMid(Hex($a),5,2) & StringMid(Hex($a),3,2) & StringMid(Hex($a),1,2) & _
    StringMid(Hex($b),7,2) & StringMid(Hex($b),5,2) & StringMid(Hex($b),3,2) & StringMid(Hex($b),1,2) & _
    StringMid(Hex($c),7,2) & StringMid(Hex($c),5,2) & StringMid(Hex($c),3,2) & StringMid(Hex($c),1,2) & _
    StringMid(Hex($d),7,2) & StringMid(Hex($d),5,2) & StringMid(Hex($d),3,2) & StringMid(Hex($d),1,2))
    EndFunc ;==>MD5

    [/autoit]


    (Quelle: Klick!)

    Mal sehen ob du mir sagen kannst, wie das Passwort ist. ;)

    lg chess

  • In Eingabefeld farbig schreiben

    • chesstiger
    • 25. Juli 2012 um 09:37

    Guck dir mal

    [autoit]


    #include <GUIRichEdit.au3>
    _GUICtrlRichEdit_Create

    [/autoit]


    an. ;)

    lg chess

  • Mehrere Fenster arbeiten Zusammen

    • chesstiger
    • 25. Juli 2012 um 09:00

    Ich habs nicht so ganz verstanden...
    Aber wenn du mit MouseMove etc. in einem Fenster arbeiten willst, dann musst du - logischerweise - vorher das Fenster aktivieren. ;)

    [autoit]


    WinActivate

    [/autoit]

    lg chess

  • [FRAGE] Thread für - Script für Scriptübergreifende Variablen - wo erstellen?

    • chesstiger
    • 25. Juli 2012 um 07:18

    Hier, vielleicht ist das ja interessant für dich. ;)
    Exchange Variables
    Viel Glück, bei mir hat das damals schlichtweg die Windows-Session gefetzt.:P

    lg chess

  • Problem bei Funktion Encrypt

    • chesstiger
    • 24. Juli 2012 um 22:18

    MD5-Hash. ;)

    lg chess

  • Schnelle Genaue Datenprüfung per Autoit

    • chesstiger
    • 24. Juli 2012 um 20:09

    Vergleich Anhand des Änderungsdatums/Erstelldatums?

    lg chess

  • Gdi+ Grafik speichern

    • chesstiger
    • 24. Juli 2012 um 18:59

    Die Dateien im Windows-Ordner haben aber teilweise andere Namen als die eigentlichen Schriftarten. ;)

    lg chess

  • Gdi+ Grafik speichern

    • chesstiger
    • 24. Juli 2012 um 18:52

    Entweder _ChooseColor aus der Misc.au3 oder... Da gabs noch was, ich suchs dir mal raus.

    lg chess

  • [Langeweile] Tools

    • chesstiger
    • 24. Juli 2012 um 18:49

    Hehe, das haben wir früher immer im EDV-Unterricht gemacht.:D

    Es gibt auch noch ein simpleres (aber auch nicht ganz so gutes) Prinzip einer "Troll-GUI":

    [autoit]


    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>
    #include <StaticConstants.au3>

    [/autoit][autoit][/autoit][autoit]

    $iWidth = 250
    $iHeight = 250

    [/autoit][autoit][/autoit][autoit]

    $hGUI = GUICreate ("TrollGUI MoveMode",$iWidth,$iHeight)
    $hLabel = GUICtrlCreateLabel("Click me!",50,50,150,150,$WS_BORDER + BitOR($SS_CENTER,$SS_CENTERIMAGE))
    GUICtrlSetFont(-1,25)
    GUICtrlSetBkColor(-1,0xBBBBBB)
    GUISetState ()

    [/autoit][autoit][/autoit][autoit]

    While True
    Switch GUIGetMsg ()
    Case $GUI_EVENT_CLOSE
    Exit
    Case $GUI_EVENT_PRIMARYDOWN
    WinMove("TrollGUI MoveMode","",Random(0,@DesktopWidth - $iWidth),Random(0,@DesktopHeight - $iHeight))
    EndSwitch
    WEnd

    [/autoit]

    Den Schließen-Button könnte man ja auch noch disablen. ;)

    lg chess

Spenden

Jeder Euro hilft uns, Euch zu helfen.

Download

AutoIt Tutorial
AutoIt Buch
Onlinehilfe
AutoIt Entwickler
  1. Datenschutzerklärung
  2. Impressum
  3. Shoutbox-Archiv
Community-Software: WoltLab Suite™