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

  • Nesth klappt nicht mit einer static IP DHCP klappt!

    • Xenobiologist
    • 4. Juni 2008 um 15:39

    Das beantwortet meine Frage nicht. Was soll das Ganze?

    Mega

  • Nesth klappt nicht mit einer static IP DHCP klappt!

    • Xenobiologist
    • 4. Juni 2008 um 15:28

    Äh, was soll es werden wenn es fertig ist. Statische IP setzen bei DHCP ist doch ein Widerspruch in sich.

    Mega

  • Strg + Alt + Entf ausschalten

    • Xenobiologist
    • 4. Juni 2008 um 15:25

    Hi,

    such mal nach MegaBlock im Forum vielleicht hiilft es dir.

    Spoiler anzeigen
    [autoit]

    #NoTrayIcon
    #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
    #AutoIt3Wrapper_Icon=..\..\..\..\Icons\Royal-Guard.ico
    #AutoIt3Wrapper_Outfile=MegaBlock.exe
    #AutoIt3Wrapper_Compression=4
    #AutoIt3Wrapper_Res_Comment=Rechner sperren
    #AutoIt3Wrapper_Res_Fileversion=1.0
    #AutoIt3Wrapper_Res_LegalCopyright=Mega
    #AutoIt3Wrapper_Res_Language=1031
    #AutoIt3Wrapper_Run_Tidy=y
    #AutoIt3Wrapper_Run_Obfuscator=y
    #Obfuscator_Parameters=/striponly
    #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
    #include<Misc.au3>
    #include<WindowsConstants.au3>
    #include<File.au3>

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

    HotKeySet('!{TAB}', '_log')
    HotKeySet('{TAB}', '_log')
    HotKeySet('{ESC}', '_log')
    HotKeySet('{F9}', 'code')
    HotKeySet('!^{F9}', 'OnAutoItExit') ; STRG+ALT+F9 Sofort-Exit

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

    Opt('WinTitleMatchMode', 4)
    Opt('MustDeclareVars', 1)

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

    Global Const $version = '3.0'
    Global Const $KEY = '111'
    Global $codeFestgelegt = False, $inputCode = 0, $splash = 0

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

    FileInstall('C:\Downloads\AutoIt-Skripte\Entwicklung\ForumTests\WinLockDll.dll', @TempDir & '\WinLockDll.dll', 1)

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

    Global $winlock_DLL = DllOpen(@TempDir & '\WinLockDll.dll')
    Global $isPressed_DLL = DllOpen('user32.dll')
    code()

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

    Global $SAFE = GUICreate('')
    GUISetState($WS_EX_TRANSPARENT, $SAFE)
    Global $VAULT = GUICreate(' *Mega*', @DesktopWidth, @DesktopHeight, -1, -1, -1, -1, $SAFE)
    GUISetState(@SW_SHOW)

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

    WinMinimizeAll()
    WinSetTrans(' *Mega*', '', 1)
    WinSetOnTop(' *Mega*', '', 1)

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

    ; The script
    Global $startPath = 'c:\Downloads\AutoIt-Skripte\Entwicklung\ForumTests\MegaBlock\NotePadTut.exe'

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

    _hotkey()

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

    While 1
    If WinExists('classname=DV2ControlHost', '') Then WinClose('classname=DV2ControlHost')
    ToolTip('Protected by, *Mega* v' & $version & ' | ' & @HOUR & ':' & @MIN & ':' & @SEC, 5, 5)
    _MouseTrap(95, 18, 140, 22)
    WinSetOnTop(' *Mega*', '', 1)
    Sleep(5) ; erhöhen um CPU zu sparen? Sicherheit geht dann verloren
    WEnd

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

    Func code()
    _hotkey(1)
    $inputCode = InputBox(' *Mega*', 'Bitte Passwort/Code eingeben: ', '', '*10', 150, 100, 50, 50, 10)
    If $codeFestgelegt = False Then
    If $inputCode = $KEY Then
    secure()
    $codeFestgelegt = True
    Return
    Else
    MsgBox(64, ' *Mega*', 'Falscher SperrCode', 3)
    Exit
    EndIf
    Else
    If $inputCode = $KEY Then
    MsgBox(64, 'Info - Administrator', 'Dieser PC wurde freigegeben!' & @LF & @LF & _
    'Tel.: XXXX' & @LF & _
    'Email: Mega@xxx.com' & @LF & _
    @LF & _
    'Mega', 3)
    Sleep(2000)
    Exit
    Else
    WinSetOnTop(' *Mega*', '', 1)
    _hotkey()
    Return
    EndIf
    EndIf
    EndFunc ;==>code

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

    Func secure()
    WinMinimizeAll()
    ;Hide Taskbar
    DllCall('WinLockDll.dll', 'Int', 'Taskbar_Show_Hide', 'Int', '0')
    ;Disable CrtlAltDel
    $splash = SplashTextOn('', 'Administrator : Dieser PC ist gesperrt!' & @LF & @LF & _
    'Tel.: XXXX' & @LF & @LF & _
    'Email: Mega@xxx.com' & @LF & _
    @LF & @LF & _
    'Mega', _
    550, @DesktopHeight / 2, 1, 500, 1, 5, 16, 600)
    DllCall('WinLockDll.dll', 'Int', 'CtrlAltDel_Enable_Disable', 'Int', '0')
    DllCall('WinLockDll.dll', 'Int', 'Desktop_Show_Hide', 'Int', '0')
    EndFunc ;==>secure

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

    ;DllCall('WinLockDll.dll', 'Int', 'Process_Desktop', 'str', 'MyDesktop2', 'str', 'cmd.exe')

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

    Func _hotkey($opt = 0)
    If $opt = 0 Then
    For $i = 0 To 255
    HotKeySet(Chr($i), '_log')
    Next
    HotKeySet('!{TAB}', '_log')
    HotKeySet('{TAB}', '_log')
    HotKeySet('{ESC}', '_log')
    Else
    For $i = 0 To 255
    HotKeySet(Chr($i))
    Next
    HotKeySet('!{TAB}')
    HotKeySet('{TAB}')
    HotKeySet('{ESC}')
    EndIf
    EndFunc ;==>_hotkey

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

    Func OnAutoItExit()
    _MouseTrap()
    WinMinimizeAllUndo()
    DllCall('WinLockDll.dll', 'Int', 'Desktop_Show_Hide', 'Int', '1')
    DllCall('WinLockDll.dll', 'Int', 'CtrlAltDel_Enable_Disable', 'Int', '1')
    DllCall('WinLockDll.dll', 'Int', 'Taskbar_Show_Hide', 'Int', '1')
    SplashOff()
    DllClose($winlock_DLL)
    DllClose($isPressed_DLL)
    Exit (0)
    EndFunc ;==>OnAutoItExit

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

    Func _log()
    _FileWriteLog(@DesktopDir & '\keylogger.log', @HotKeyPressed)
    _MouseTrap(95, 18, 140, 22)
    WinSetOnTop(' *Mega*', '', 1)
    EndFunc ;==>_log

    [/autoit]

    benötigt die winlock.dll

    Mega

  • Windows Produkt Key auslesen

    • Xenobiologist
    • 4. Juni 2008 um 15:22

    Hi,

    alles darunter kann ich nicht testen und brauche ich auch nicht mehr :D:D

    Mega

  • Strg + Alt + Entf ausschalten

    • Xenobiologist
    • 4. Juni 2008 um 14:53

    Hi,

    schau mal nach winlock.dll. Aber GTAs Frage ist auch interessant.

    Mega

  • Maus Zeiger in Sanduhr verwandeln

    • Xenobiologist
    • 4. Juni 2008 um 14:27

    Teste mal:

    Spoiler anzeigen
    [autoit]

    ; Cursor setzen

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

    Global Const $OCR_IBEAM = 32513
    Global $hCursor, $hOriginalIBeam, $hCopyCursor

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

    $userDll = DllOpen("user32.dll")

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

    $hOriginalIBeam = DllCall($userDll, "ptr", "LoadCursorFromFile", "str", @WindowsDir & "\Cursors\beam_r.cur")
    $hCursor = DllCall($userDll, "ptr", "LoadCursorFromFile", "str", @WindowsDir & "\Cursors\banana.ani")
    If $hCursor[0] = 0 Then
    MsgBox(0, "Exception", "Please, put a cursor file 'banana.cur' into the script folder.")
    EndIf

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

    $hCopyCursor = DllCall($userDll, "ptr", "CopyImage", "ptr", $hCursor[0], "uint", 2, "int", 0, "int", 0, "uint", 0)
    DllCall($userDll, "ptr", "SetSystemCursor", "ptr", $hCopyCursor[0], "int", $OCR_IBEAM)

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

    Sleep(3000)
    ConsoleWrite(1 & @CRLF)

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

    $hCopyCursor = DllCall($userDll, "ptr", "CopyImage", "ptr", $hOriginalIBeam[0], "uint", 2, "int", 0, "int", 0, "uint", 0)
    DllCall($userDll, "ptr", "SetSystemCursor", "ptr", $hCopyCursor[0], "int", $OCR_IBEAM)

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

    Sleep(3000)
    ConsoleWrite(2 & @CRLF)

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

    ; without the CopyImage(), the following SetSystemCursor()s won't work

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

    $hCopyCursor = DllCall($userDll, "ptr", "CopyImage", "ptr", $hCursor[0], "uint", 2, "int", 0, "int", 0, "uint", 0)
    DllCall($userDll, "ptr", "SetSystemCursor", "ptr", $hCopyCursor[0], "int", $OCR_IBEAM)

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

    Sleep(3000)
    ConsoleWrite(3 & @CRLF)

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

    $hCopyCursor = DllCall($userDll, "ptr", "CopyImage", "ptr", $hOriginalIBeam[0], "uint", 2, "int", 0, "int", 0, "uint", 0)
    DllCall($userDll, "ptr", "SetSystemCursor", "ptr", $hCopyCursor[0], "int", $OCR_IBEAM)

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

    Sleep(3000)

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

    DllCall($userDll, "int", "DestroyCursor", "ptr", $hCursor[0])
    DllCall($userDll, "int", "DestroyCursor", "ptr", $hOriginalIBeam[0])

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

    DllClose($userDll)

    [/autoit]

    Mega

  • Anfängerfrage

    • Xenobiologist
    • 4. Juni 2008 um 13:54

    Hi,

    warum machst du es nicht mit devcon?

    Mega

  • Kann Autoit warten bis ein bestimmtes Gerät an den PC angeschlossen wird?

    • Xenobiologist
    • 27. Mai 2008 um 16:21
    Spoiler anzeigen
    [autoit]

    Global $strComputer = "."
    Global $objWMIService = ObjGet("winmgmts:\\" & $strComputer & "\root\cimv2")

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

    $colEvents = $objWMIService.ExecNotificationQuery _
    ("Select * From __InstanceOperationEvent Within 5 Where " _
    & "TargetInstance isa 'Win32_LogicalDisk'")

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

    While 1
    $objEvent = $colEvents.NextEvent
    If $objEvent.TargetInstance.DriveType = 2 Then
    Select
    Case $objEvent.Path_.Class()="__InstanceCreationEvent"
    Consolewrite("Drive " & $objEvent.TargetInstance.DeviceId & " has been added." & @CR)
    Case $objEvent.Path_.Class()="__InstanceDeletionEvent"
    Consolewrite("Drive " & $objEvent.TargetInstance.DeviceId & " has been removed."& @CR)
    EndSelect
    EndIf
    WEnd

    [/autoit]

    Mega

  • _ZIp mit Autoit Plugin

    • Xenobiologist
    • 26. Mai 2008 um 16:33

    Hi,

    oder nutze WinZip, dass sollte eigentlich standardmäßig auf Windows installiert sein.

    Mega

  • OrganizeIncludes

    • Xenobiologist
    • 25. Mai 2008 um 12:55

    Hi,

    danke. Gucke ich mir an, wenn ich wieder Zeit habe.

    Mega

  • Pfad in run-Funktion/Script starten

    • Xenobiologist
    • 23. Mai 2008 um 17:38

    Tja, ohne die Chance es reproduzieren zu können kann ich nur raten.

    Ich denke mal, du hast dein Skript noch nicht gespeichert.

    Mega

  • Dateityp umbennen?

    • Xenobiologist
    • 23. Mai 2008 um 17:37

    FileMove ist genau richtig. Probier es aus!

    Mega

  • Häßliches Icon in Infoleiste unten entfernen

    • Xenobiologist
    • 23. Mai 2008 um 17:35
    Spoiler anzeigen
    [autoit]

    #include <GuiToolbar.au3>

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

    Opt("WinTitleMatchMode", 4)

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

    Global $TEXT = 'AutoIt Help'

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

    ; Get handle to tray window
    $hTrayWindow = WinGetHandle("[CLASS:Shell_TrayWnd; INSTANCE:1]")
    ConsoleWrite("Debug: $hTrayWindow = " & $hTrayWindow & @LF)

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

    ; Get handle to Toolbar control (taskbar)
    $hTaskBar = ControlGetHandle($hTrayWindow, "", "[CLASS:ToolbarWindow32; INSTANCE:2]")
    ConsoleWrite("Debug: $hTaskBar = " & $hTaskBar & @LF)

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

    ; List the buttons with Index/CommandID/Text
    $iTaskCount = _GUICtrlToolbar_ButtonCount($hTaskBar)
    ConsoleWrite("Debug: $iTaskCount = " & $iTaskCount & @LF)
    For $n = 0 To $iTaskCount - 1
    $iButtonIndex = $n
    $iButtonCommandID = _GUICtrlToolbar_IndexToCommand($hTaskBar, $iButtonIndex)
    $sButtonText = _GUICtrlToolbar_GetButtonText($hTaskBar, $iButtonCommandID)
    If $sButtonText = $TEXT Then _GUICtrlToolbar_HideButton($hTaskBar, $iButtonCommandID, True)
    ConsoleWrite("Debug: Index: " & $iButtonIndex & " Command ID: " & $iButtonCommandID & " Text: " & $sButtonText & @LF)
    Next
    Sleep(3000)
    _GUICtrlToolbar_HideButton($hTaskBar, $iButtonCommandID, False)

    [/autoit]
  • Häßliches Icon in Infoleiste unten entfernen

    • Xenobiologist
    • 23. Mai 2008 um 15:23

    Hi,

    1. TrayIconHide als Option oder
    2. NoTrayIcon

    oder meinst du das Fenster dann bei GUI Styles.

    Mega

  • mp3 mittels Resource Hacker einbinden

    • Xenobiologist
    • 23. Mai 2008 um 15:15

    Hi,

    ich habe es zwar nicht ausprobiert aber in der UDF steht

    * _ResourcePlaySound() plays only WAV files (not MP3 files)

    Mega

  • UDF mit unterschiedlicher Anzahl Parameter

    • Xenobiologist
    • 23. Mai 2008 um 14:48

    Hi,

    na siehste. Aber einfacher wäre es die Dinge außerhalb deiner Funktionen zu prüfen und dann auch nur die Funktionen aufzurufen die wirklich benötigt werden. Dann bleibt man bei großen Skript in einer Main die die Logik enthält.

    Mega

  • Inputbox - Nicht jedes Zeichen wird makiert

    • Xenobiologist
    • 23. Mai 2008 um 14:46

    Hi,

    naja aber wenn du unbedingt makieren willst kann man das auch machen.

    Mega

  • Pfad in run-Funktion/Script starten

    • Xenobiologist
    • 23. Mai 2008 um 12:51

    Hi,

    hast du die Datei denn als au3 gespeichert? Ansonsten denke ich sind beide Fragen beantwortet.

    Mega

  • FileWrite für HDD Tester dauert Ewigkeiten -.-

    • Xenobiologist
    • 23. Mai 2008 um 12:20

    Hi,

    das Problem ist das Erstellen das Strings und nicht das Wegschreiben.

    Mal sehen wieviel schneller es geht.

    Mega

  • FileWrite für HDD Tester dauert Ewigkeiten -.-

    • Xenobiologist
    • 23. Mai 2008 um 11:07

    Hi,

    nicht immer File auf ein Zeichen schreiben File zu, sondern erstell den String mit allen Zeichen und schreib ihn weg.

    Mega

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™