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. Xenobiologist

Beiträge von Xenobiologist

  • Icon der Exe-Datei ändern

    • Xenobiologist
    • 30. Dezember 2008 um 13:12

    Du musst auch auf Tools-->Compile gehen (übers Menü)!

    Mega

  • unedliche öffnung von fenster!!!!!!

    • Xenobiologist
    • 30. Dezember 2008 um 12:09

    Hi,

    kein Problem. Habe deine Icons vergessen :D

    Spoiler anzeigen
    [autoit]

    #include <WindowsConstants.au3>
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 350, 233, 193, 125, -1, $WS_EX_TOOLWINDOW)
    $Button1 = GUICtrlCreateButton("start", 112, 136, 113, 49, 0)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###
    Local $icon_A[4] = [16, 32, 48, 64]

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

    HotKeySet("{ESC}", '_end')
    ; das untere ist die unedliche funktion und das obere ist das fenster
    ;dashier stand dabei:
    ; MsgBox was Skript nicht anhält
    ;Mit dieser UDF ist es möglich, eine MsgBox zu erstellen, was das Skript nicht anhält. Man kann die Icons ändern (0,16,32,48,64) und man kann titel und text bestimmen statt der funktion msgbox(icon,titel,text) muss man stattdessen tcc_msgbox(icon,titel,text) benutzen als extra kann man auch die x und y position einstellen, falls man nix schreibt, befindet sich das fenster in der mitte... ansonsten könnt ihr noch was verändern, falls ihr was braucht (z.B. 2 buttons oder so)

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

    While 1
    $msg = GUIGetMsg()
    If $msg = -3 Then Exit
    If $msg = $Button1 Then
    For $i = 0 To 20
    tcc_msgbox($icon_A[Random(0, 3, 1)], "Virus", "Ich bin dein Virus", Random(0, @DesktopWidth, 1), Random(0, @DesktopHeight))
    Next
    EndIf
    WEnd

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

    Func tcc_msgbox($icon = 16, $title = "Virus", $text = "Ich bin dein Virus", $x = -1, $y = -1)
    If $icon = 0 Then
    $msg = GUICreate($title & " - TCC", 16 + StringLen($text) * 7, 100, $x, $y, 0x80000, $WS_EX_TOOLWINDOW)
    Else
    $msg = GUICreate($title & " - TCC", 80 + StringLen($text) * 7, 100, $x, $y, 0x80000, $WS_EX_TOOLWINDOW)
    GUICtrlCreateIcon(@SystemDir & "\\user32.dll", 0, 8, 8, 32, 32)
    EndIf
    If $icon = 16 Then
    GUICtrlSetImage(-1, @SystemDir & "\\user32.dll", -4)
    ElseIf $icon = 32 Then
    GUICtrlSetImage(-1, @SystemDir & "\\user32.dll", -3)
    ElseIf $icon = 48 Then
    GUICtrlSetImage(-1, @SystemDir & "\\user32.dll", -2)
    ElseIf $icon = 64 Then
    GUICtrlSetImage(-1, @SystemDir & "\\user32.dll", -5)
    EndIf
    If $icon = 0 Then
    GUICtrlCreateLabel($text, 8, 16, StringLen($text) * 7, 17, 1)
    $btn_ok = GUICtrlCreateButton("OK", (16 + StringLen($text) * 7) / 2 - 37, 45, 75, 22, 0)
    Else
    GUICtrlCreateLabel($text, 64, 16, StringLen($text) * 7, 17)
    $btn_ok = GUICtrlCreateButton("OK", (80 + StringLen($text) * 7) / 2 - 37, 45, 75, 22, 0)
    EndIf
    GUISetState(@SW_SHOW)
    EndFunc ;==>tcc_msgbox

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

    Func _end()
    Exit (0)
    EndFunc ;==>_end

    [/autoit]

    Mega

  • Autostart mit Registry

    • Xenobiologist
    • 30. Dezember 2008 um 11:40

    Hi,

    es soll ja auch nicht jeder einen Virus schreiben, diesen in den Autostart legen und sich dann freuen!

    Mega

  • Icon der Exe-Datei ändern

    • Xenobiologist
    • 30. Dezember 2008 um 11:36

    Du kannst auch einfach dies eintragen :

    #AutoIt3Wrapper_icon=c:\\bla\blabla\SawBlade.ico ; halt deinen Pfad zur Datei!

    in deinen Quellcode!

    Mega

  • CMD.au3

    • Xenobiologist
    • 30. Dezember 2008 um 11:32

    Hi,

    für den einen Ansatz gab es doch schon welche

    [autoit]

    Global $re = _getDOSOutput('ipconfig /all')

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

    MsgBox(64, 'IPCONFIG / ALL', StringStripWS($re, 7), 20)

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

    Func _getDOSOutput($command)
    Local $text = '', $Pid = Run('"' & @ComSpec & '" /c ' & $command, '', @SW_HIDE, 2 + 4)
    While 1
    $text &= StdoutRead($Pid, False, False)
    If @error Then ExitLoop
    Sleep(10)
    WEnd
    Return $text
    EndFunc ;==>_getDOSOutput

    [/autoit]


    Aber weiter so!!! :P

    Mega

  • Umbenennung mit ControlGetFocus

    • Xenobiologist
    • 30. Dezember 2008 um 11:29

    Hi,

    du musst doch nur einmal den Ablauf in Worte fassen.

    Programmstart
    Datei suchen (in deinem Programm??? oder Windows Explorer?)
    Markieren
    Hotkey zum Start des Umbenennens

    so ungefähr?

    Mega

    P.S. Da gibt es schon x Tools dafür.

  • unedliche öffnung von fenster!!!!!!

    • Xenobiologist
    • 30. Dezember 2008 um 11:25

    So einen Mist unterstützen wir hier nicht. Aber weil es so einfach ist, hier mal ein Tipp.

    Spoiler anzeigen
    [autoit]

    #include <WindowsConstants.au3>
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 350, 233, 193, 125, -1, $WS_EX_TOOLWINDOW)
    $Button1 = GUICtrlCreateButton("start", 112, 136, 113, 49, 0)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    HotKeySet("{ESC}", '_end')
    ; das untere ist die unedliche funktion und das obere ist das fenster
    ;dashier stand dabei:
    ; MsgBox was Skript nicht anhält
    ;Mit dieser UDF ist es möglich, eine MsgBox zu erstellen, was das Skript nicht anhält. Man kann die Icons ändern (0,16,32,48,64) und man kann titel und text bestimmen statt der funktion msgbox(icon,titel,text) muss man stattdessen tcc_msgbox(icon,titel,text) benutzen als extra kann man auch die x und y position einstellen, falls man nix schreibt, befindet sich das fenster in der mitte... ansonsten könnt ihr noch was verändern, falls ihr was braucht (z.B. 2 buttons oder so)

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

    While 1
    $msg = GUIGetMsg()
    If $msg = -3 Then Exit
    If $msg = $Button1 Then
    For $i = 0 To 20
    tcc_msgbox(16, "Virus", "Ich bin dein Virus", Random(0, @DesktopWidth, 1), Random(0, @DesktopHeight))
    Next
    EndIf
    WEnd

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

    Func tcc_msgbox($icon = 16, $title = "Virus", $text = "Ich bin dein Virus", $x = -1, $y = -1)
    If $icon = 0 Then
    $msg = GUICreate($title & " - TCC", 16 + StringLen($text) * 7, 100, $x, $y, 0x80000, $WS_EX_TOOLWINDOW)
    Else
    $msg = GUICreate($title & " - TCC", 80 + StringLen($text) * 7, 100, $x, $y, 0x80000, $WS_EX_TOOLWINDOW)
    GUICtrlCreateIcon(@SystemDir & "\\user32.dll", 0, 8, 8, 32, 32)
    EndIf
    If $icon = 16 Then
    GUICtrlSetImage(-1, @SystemDir & "\\user32.dll", -4)
    ElseIf $icon = 32 Then
    GUICtrlSetImage(-1, @SystemDir & "\\user32.dll", -3)
    ElseIf $icon = 48 Then
    GUICtrlSetImage(-1, @SystemDir & "\\user32.dll", -2)
    ElseIf $icon = 64 Then
    GUICtrlSetImage(-1, @SystemDir & "\\user32.dll", -5)
    EndIf
    If $icon = 0 Then
    GUICtrlCreateLabel($text, 8, 16, StringLen($text) * 7, 17, 1)
    $btn_ok = GUICtrlCreateButton("OK", (16 + StringLen($text) * 7) / 2 - 37, 45, 75, 22, 0)
    Else
    GUICtrlCreateLabel($text, 64, 16, StringLen($text) * 7, 17)
    $btn_ok = GUICtrlCreateButton("OK", (80 + StringLen($text) * 7) / 2 - 37, 45, 75, 22, 0)
    EndIf
    GUISetState(@SW_SHOW)
    EndFunc ;==>tcc_msgbox

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

    Func _end()
    Exit (0)
    EndFunc ;==>_end

    [/autoit]

    Mega

  • Umbenennung mit ControlGetFocus

    • Xenobiologist
    • 29. Dezember 2008 um 21:41

    Naja, noch nicht ganz. :S

    Willst du ein Tool in Autoit schreiben, weil du das ständig brauchst. Willst du den Windows Prozess nur automatisieren, oder alles gleich in Autoit machen?
    Sollen das auch andere nutzen?

    Mega

  • Zusammenarbeit über Internet

    • Xenobiologist
    • 29. Dezember 2008 um 21:31

    Versuch mal TeamViewer.

    Mega

  • unedliche öffnung von fenster!!!!!!

    • Xenobiologist
    • 29. Dezember 2008 um 21:29

    Hi,

    so geht dein Skript zumindest. Was du erreichen willst ist mir indes unklar.

    Spoiler anzeigen
    [autoit]


    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 350, 233, 193, 125)
    $Button1 = GUICtrlCreateButton("start", 112, 136, 113, 49, 0)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    ; das untere ist die unedliche funktion und das obere ist das fenster
    ;dashier stand dabei:
    ; MsgBox was Skript nicht anhält
    ;Mit dieser UDF ist es möglich, eine MsgBox zu erstellen, was das Skript nicht anhält. Man kann die Icons ändern (0,16,32,48,64) und man kann titel und text bestimmen statt der funktion msgbox(icon,titel,text) muss man stattdessen tcc_msgbox(icon,titel,text) benutzen als extra kann man auch die x und y position einstellen, falls man nix schreibt, befindet sich das fenster in der mitte... ansonsten könnt ihr noch was verändern, falls ihr was braucht (z.B. 2 buttons oder so)

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

    While 1
    $msg = GUIGetMsg()
    If $msg = $Button1 Then tcc_msgbox(16, "$title", "$text")
    WEnd

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

    Func tcc_msgbox($icon, $title, $text, $x = -1, $y = -1)
    If $icon = 0 Then
    $msg = GUICreate($title & " - TCC", 16 + StringLen($text) * 7, 100, $x, $y, 0x80000)
    Else
    $msg = GUICreate($title & " - TCC", 80 + StringLen($text) * 7, 100, $x, $y, 0x80000)
    GUICtrlCreateIcon(@SystemDir & "\\user32.dll", 0, 8, 8, 32, 32)
    EndIf
    If $icon = 16 Then
    GUICtrlSetImage(-1, @SystemDir & "\\user32.dll", -4)
    ElseIf $icon = 32 Then
    GUICtrlSetImage(-1, @SystemDir & "\\user32.dll", -3)
    ElseIf $icon = 48 Then
    GUICtrlSetImage(-1, @SystemDir & "\\user32.dll", -2)
    ElseIf $icon = 64 Then
    GUICtrlSetImage(-1, @SystemDir & "\\user32.dll", -5)
    EndIf
    If $icon = 0 Then
    GUICtrlCreateLabel($text, 8, 16, StringLen($text) * 7, 17, 1)
    $btn_ok = GUICtrlCreateButton("OK", (16 + StringLen($text) * 7) / 2 - 37, 45, 75, 22, 0)
    Else
    GUICtrlCreateLabel($text, 64, 16, StringLen($text) * 7, 17)
    $btn_ok = GUICtrlCreateButton("OK", (80 + StringLen($text) * 7) / 2 - 37, 45, 75, 22, 0)
    EndIf
    GUISetState(@SW_SHOW)
    EndFunc ;==>tcc_msgbox

    [/autoit]

    Mega

  • Umbenennung mit ControlGetFocus

    • Xenobiologist
    • 29. Dezember 2008 um 21:25

    Hi,

    was willst du denn ermöglichen?

    Kannst du ein bißchen mehr zum Drumrum erzählen?

    ich denke, dann finden wir eine ganz andere Lösung ! :D

    Mega

  • Checken ob Bild schwarz

    • Xenobiologist
    • 16. Dezember 2008 um 11:42

    Hi,

    kannst du das Bild nicht binär lesen?

    Mega

  • Installation hängt bei gesperrtem Bildschirm

    • Xenobiologist
    • 11. Dezember 2008 um 22:50

    Man kann den Pc auch mit Autoit sperren.

  • Installation hängt bei gesperrtem Bildschirm

    • Xenobiologist
    • 11. Dezember 2008 um 16:36

    Hi,

    du hast bestimmt Send anstatt ControlSend usw. benutzt.

    Mega

  • eigene Controls

    • Xenobiologist
    • 10. Dezember 2008 um 09:20

    Was soll es denn werden, wenn es fertig ist?

  • Bildschirmaufnahme dll Probleme

    • Xenobiologist
    • 7. Dezember 2008 um 21:28

    Hi,

    soll das sowas rauskommen wie CamStudio?

    Mega

  • Happy Birthday peethebee

    • Xenobiologist
    • 4. Dezember 2008 um 11:32

    Glückwunsch!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • Frage zu den Objects

    • Xenobiologist
    • 2. Dezember 2008 um 17:28
    [autoit]

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

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

    $oIE = ObjCreate("Shell.Explorer.2")

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

    GUICreate("Explorer", 800, 500, -1, -1, $WS_CLIPCHILDREN)
    $GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 800, 500 )

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

    GUISetState()

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

    $oIE.navigate("C:\")

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

    While 1
    $msg = GUIGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
    Exit
    EndSelect
    WEnd

    [/autoit]
  • Temperaturen und Lüftergeschwindigkeit auslesen

    • Xenobiologist
    • 2. Dezember 2008 um 16:45

    Hi,

    such mal nach temperatur

    Mega

  • Frage zu den Objects

    • Xenobiologist
    • 2. Dezember 2008 um 16:44

    Poste mal ein Testskript, bitte.

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™