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

Beiträge von Irrlicht

  • Aus HTML code bestimmten teil auslesen

    • Irrlicht
    • 4. Juni 2011 um 17:44
    Zitat

    Und zwar benutze ich die FF.au3 und bastel grad ein bot zusammen für ein browserspiel


    Diese Ehrlichkeit sollte belohnt werden :rofl::rofl::rofl::rofl::rofl:

  • AutoIt Messenger + MySQL

    • Irrlicht
    • 4. Juni 2011 um 15:48

    Von mir aus.
    Aber einen kompletten Messenger nur über mysql laufen zu lassen, is eher unpraktisch...

  • stayawayknight ist 16

    • Irrlicht
    • 30. Mai 2011 um 19:33

    Alles Gute! :party:

  • _IE Text auslesen

    • Irrlicht
    • 29. Mai 2011 um 19:50

    Oder du nimmst einmal _stringbetween 8|8|8|

  • _IE Text auslesen

    • Irrlicht
    • 29. Mai 2011 um 19:03

    Ähm wenn du <td> weg haben willst, kannst du ggf. die Parameter 2&3 von _stringbetween ändern.
    Oder du nimmst stringreplace($array[0], "<td>", "")
    Stringreplace ersetzt in diesem Fall die <td>'s mit Leerzeichen

  • _IE Text auslesen

    • Irrlicht
    • 29. Mai 2011 um 18:39
    [autoit]

    #include<inet.au3>
    #include<string.au3>
    $source= _inetgetsource("http://autoit.de/index.php?page=UsersOnline")
    $string= _stringbetween($source, '<div class="containerHead"><h3>Es sind ', '</h3></div>')
    Msgbox(0, "User", "Es sind " & $string[0])

    [/autoit]
  • _IE Text auslesen

    • Irrlicht
    • 29. Mai 2011 um 18:24

    _inetgetsource und _stringbetween

  • Tooltips

    • Irrlicht
    • 28. Mai 2011 um 20:26

    Ach ja, am ende muss der tip irgendwie entfernt werden.
    vl mit guictrlsettip(-1, "")?

  • Tooltips

    • Irrlicht
    • 28. Mai 2011 um 19:31

    Eine Möglichkeit:


    [autoit]


    local $tip=false
    while 1
    $mousepos= mousegetpos()
    If $Mousepos[0]>= $editx1 and $mousepos[0]<= $editx2 and $mousepos[1]>=$edity1 and $mousepos[1]<=$edity2 and $tip<> true then
    guictrlsettip($edit, "Dieser Tooltip bleibt für 2 Sekunden")
    $tip=true
    sleep(2000)

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

    endif
    wend

    [/autoit]


    Die $editx1,x2....variablen zeigen die anfangs-und endpunkte des editfeldes
    Sowas ähnliches könntest du machen. Habs nicht getestet, wurde direkt hier im Forum gescriptet :)

  • Tooltips

    • Irrlicht
    • 28. Mai 2011 um 18:39
    [autoit]

    guictrlsettip

    [/autoit]
  • USB-Lock

    • Irrlicht
    • 28. Mai 2011 um 18:22

    Benutz doch für Abdunklung/Aufhellung for-schleifen

  • USB-Lock

    • Irrlicht
    • 28. Mai 2011 um 15:59
    Zitat von Mattthias

    Irgendwer hat letztens die BlockInputEx gepostet


    Das war dann wohl meine wenigkeit :D
    BTW, ich finde deine Idee ziemlich interessant, einen PC zu sperren, wenn ein bestimmter USB-Stick oder irgendein USB-Stick angeschlossen wurde.
    Da könnte man diverse Registry-Einträge auslesen, um nicht von Laufwerkbuchstaben abhängig zu sein und um das ganze zu verallgemeinern.

  • Datei von Server downloaden

    • Irrlicht
    • 24. Mai 2011 um 20:15

    wie wärs mit der include ftp.au3 oder so?

  • AutoIt Booteditor

    • Irrlicht
    • 23. Mai 2011 um 18:46

    Man kanns ja mal ausprobiern^^ Ich hab das ganze Programm geschrieben und getestet, ohne einen einzigen Systemwiederherstellungpunkt gemacht zu haben ;)

  • Wie "Tasten Sperren"

    • Irrlicht
    • 22. Mai 2011 um 21:18

    Blockinputex macht dich wunschlos glücklich!

    Spoiler anzeigen
    [autoit]

    #include-once
    #include <WindowsConstants.au3>
    #include <WinAPI.au3>
    ;

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

    #Region ======================== BlockInputEx UDF Info ========================
    ; Extended (advanced) function to block mouse & keyboard inputs.
    ;
    ; This UDF supports few features that built-in BlockInput() function does not.
    ; Here is a quick "features list":
    ;----------------------------------------------------------------------
    ;* Block seperately mouse or keyboard input.
    ;* Block specific keyboard/mouse keys/clicks.
    ; [+] Not only hex keys are supported, string keys (such as {ENTER}) is also valid.
    ;* Block all keyboard/mouse keys *except* specific keys/events.
    ;* Block keys by CLASS Name (see UDF documentation).
    ;* Block inputs only for specific window.
    ;----------------------------------------------------------------------
    ;
    ; AutoIt Version: 3.2.12.1+
    ; Author: G.Sandler (a.k.a MrCreatoR). Initial idea and hooks example by rasim.
    ;
    ;==================
    ; History version:
    ;==================
    ;
    ; [v1.2 - 16.01.2009, 21:00]
    ; + Added key strings support.
    ; Now users can set simple hotkey strings for Exclude/Include parameters + Group chars, i.e: "[Group]|{UP}|{DOWN}"
    ; (See UDF documentation)
    ; + Added mouse events blocking support to the $sExclude/$sInclude parameters.
    ; + Added example for mouse events blocking.
    ;
    ; [v1.1 - 16.01.2009]
    ; + Added CLASSes support (see UDF documentation), thanks to FireFox for the idea and the keys lists.
    ; + Added example for CLASS usage.
    ; * Changed behaviour of $iBlockMode parameter as following:
    ;
    ; 1 - Block All
    ; <= 0 - UnBlock all
    ; 2 - Block only mouse
    ; 3 - Block only keyboard.
    ;
    ; * Fixed hard-crash that related to incorrect BlockInput releasing process (only callbacks was released, not the window hooks).
    ;
    ; [v1.0 - 15.01.2009]
    ; First release.
    #EndRegion ======================== BlockInputEx UDF Info ========================
    ;

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

    Global $ah_MouseKeyboard_WinHooks[7]

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

    ; #FUNCTION# ====================================================================================================================
    ; Name...........: _BlockInputEx
    ; Description ...: Disable/enable the mouse and/or keyboard. Supporting blocking (by include/exclude) of seperate keys.
    ; Syntax.........: _BlockInputEx( [iBlockMode [, sExclude [, sInclude [, hWindows]]]] )
    ; Parameters ....: $iBlockMode - Set the block mode.
    ; 1 - Block All
    ; <= 0 - UnBlock all
    ; 2 - Block only mouse
    ; 3 - Block only keyboard.
    ; $sExclude - Keys hex/string-list (| delimited) to *exclude* when blocking.
    ; [*] All keys will be blocked, except the keys in $sExclude list.
    ; [!] This list supports keys CLASSes,
    ; key strings as supported in HotKeySet() function,
    ; and seperate mouse events classes, see "Remarks" for more details.
    ;
    ;
    ;
    ; $sInclude - Keys hex/string-list (| delimited) to *include* when blocking.
    ; [*] Only these keys will be blocked, the $sExclude ignored in this case.
    ; [!] This list supports keys CLASSes,
    ; key strings as supported in HotKeySet() function,
    ; and seperate mouse events classes, see "Remarks" for more details.
    ;
    ; $hWindows - Window handles list (| delimited) to limit the blocking process (Only for keyboard blocking).
    ;
    ; Return values .: Success - 1.
    ; Failure - 0 and set @error to 1. This can happend only when passing wrong parameters.
    ;
    ; Author ........: G.Sandler (a.k.a MrCreatoR), Rasim -> Initial idea and hooks example.
    ; Thanks to FireFox for other block methods, it gave me a starting point for adding the "keys classes" support.
    ;
    ;
    ; Modified.......: 16.01.2009, 21:03
    ; Remarks .......: * This UDF includes OnAutoItExit function to release the callback/hooks resources.
    ;
    ; * $sExclude and $sInclude parameters supporting keys/mouse classes as hex or as string,
    ; [!] The hex keys list can be found in _IsPressed documentation section.
    ; Here is a full list of supported classess/events:
    ; ======= KeyBoard =======
    ; [:FUNC:]
    ; [:ALPHA:]
    ; [:NUMBER:]
    ; [:ARROWS:]
    ; [:SPECIAL:]
    ; [GROUP_abcd] -> Use raw chars/key strings inside squere brackets.
    ; {KEY} -> Standard keys support ({F1}, {ENTER} etc.).
    ;
    ; ========= Mouse =========
    ; {MMOVE} -> Mouse move event
    ; {MPDOWN} -> Mouse Primary Down event
    ; {MPUP} -> Mouse Primary Up event
    ; {MSDOWN} -> Mouse Secondary Down event
    ; {MSUP} -> Mouse Secondary Up event
    ; {MWDOWN} -> Mouse Whell Button Down event
    ; {MWUP} -> Mouse Whell Button Up event
    ; {MWSCROLL} -> Mouse Whell Scroll event
    ; {MSPDOWN} -> Mouse Special Button Down event
    ; {MSPUP} -> Mouse Special Button Up event
    ;
    ;
    ; * See also built-in BlockInput() documentation.
    ;
    ; Related .......: BlockInput()?
    ; Link ..........; http://www.autoitscript.com/forum/index.php?s=&showtopic=87735
    ; Example .......; Yes
    ; ===============================================================================================================================
    Func _BlockInputEx($iBlockMode = -1, $sExclude = "", $sInclude = "", $hWindows = "")
    If $iBlockMode < -1 Or $iBlockMode > 3 Then Return SetError(1, 0, 0) ;Only -1 to 3 modes are supported.

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

    If $iBlockMode <= 0 Then Return _BlockInput_UnhookWinHooks_Proc()

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

    Local $pStub_KeyProc = 0, $pStub_MouseProc = 0, $hHook_Keyboard = 0, $hHook_Mouse = 0
    Local $hHook_Module = _WinAPI_GetModuleHandle(0)

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

    For $i = 0 To 3
    If $ah_MouseKeyboard_WinHooks[$i] > 0 Then
    _BlockInput_UnhookWinHooks_Proc()
    ExitLoop
    EndIf
    Next

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

    If $iBlockMode = 1 Or $iBlockMode = 2 Then
    $pStub_MouseProc = DllCallbackRegister("_MouseHook_Proc", "int", "int;ptr;ptr")
    $hHook_Mouse = _WinAPI_SetWindowsHookEx($WH_MOUSE_LL, DllCallbackGetPtr($pStub_MouseProc), $hHook_Module, 0)
    EndIf

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

    If $iBlockMode = 1 Or $iBlockMode = 3 Then
    $pStub_KeyProc = DllCallbackRegister("_KeyBoardHook_Proc", "int", "int;ptr;ptr")
    $hHook_Keyboard = _WinAPI_SetWindowsHookEx($WH_KEYBOARD_LL, DllCallbackGetPtr($pStub_KeyProc), $hHook_Module, 0)
    EndIf

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

    $ah_MouseKeyboard_WinHooks[0] = $pStub_KeyProc
    $ah_MouseKeyboard_WinHooks[1] = $pStub_MouseProc
    $ah_MouseKeyboard_WinHooks[2] = $hHook_Keyboard
    $ah_MouseKeyboard_WinHooks[3] = $hHook_Mouse
    $ah_MouseKeyboard_WinHooks[4] = "|" & _Parse_vmCodesList_CLASSes(_Parse_vkCodesList_CLASSes($sInclude)) & "|"
    $ah_MouseKeyboard_WinHooks[5] = "|" & _Parse_vmCodesList_CLASSes(_Parse_vkCodesList_CLASSes($sExclude)) & "|"
    $ah_MouseKeyboard_WinHooks[6] = "|" & $hWindows & "|"

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

    Return 1
    EndFunc

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

    ;KeyBoard hook processing function
    Func _KeyBoardHook_Proc($nCode, $wParam, $lParam)
    If $nCode < 0 Then Return _WinAPI_CallNextHookEx($ah_MouseKeyboard_WinHooks[4], $nCode, $wParam, $lParam)

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

    Local $KBDLLHOOKSTRUCT = DllStructCreate("dword vkCode;dword scanCode;dword flags;dword time;ptr dwExtraInfo", $lParam)
    Local $vkCode = "0x" & Hex(DllStructGetData($KBDLLHOOKSTRUCT, "vkCode"), 2)

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

    Local $sInclude = $ah_MouseKeyboard_WinHooks[4]
    Local $sExclude = $ah_MouseKeyboard_WinHooks[5]
    Local $hWnds = $ah_MouseKeyboard_WinHooks[6]

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

    If $sInclude <> "||" Then ;Include proc
    If StringInStr($sInclude, "|" & $vkCode & "|") And _
    ($hWnds = "||" Or StringInStr($hWnds, "|" & WinGetHandle("[ACTIVE]") & "|")) Then Return 1 ;Block processing!
    Else ;Exclude proc
    If Not StringInStr($sExclude, "|" & $vkCode & "|") And _
    ($hWnds = "||" Or StringInStr($hWnds, "|" & WinGetHandle("[ACTIVE]") & "|")) Then Return 1 ;Block processing!
    EndIf

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

    _WinAPI_CallNextHookEx($ah_MouseKeyboard_WinHooks[2], $nCode, $wParam, $lParam) ;Continue processing
    EndFunc

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

    ;Mouse hook processing function
    Func _MouseHook_Proc($nCode, $wParam, $lParam)
    If $nCode < 0 Then Return _WinAPI_CallNextHookEx($ah_MouseKeyboard_WinHooks[3], $nCode, $wParam, $lParam) ;Continue processing

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

    Local $iMouse_Event = BitAND($wParam, 0xFFFF)
    ;Add mouse exclude/include actions support...

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

    Local $sInclude = $ah_MouseKeyboard_WinHooks[4]
    Local $sExclude = $ah_MouseKeyboard_WinHooks[5]
    Local $hWnds = $ah_MouseKeyboard_WinHooks[6]

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

    If $sInclude <> "||" Then ;Include proc
    If StringInStr($sInclude, "|" & $iMouse_Event & "|") And _
    ($hWnds = "||" Or StringInStr($hWnds, "|" & WinGetHandle("[ACTIVE]") & "|")) Then Return 1 ;Block processing!
    Else ;Exclude proc
    If Not StringInStr($sExclude, "|" & $iMouse_Event & "|") And _
    ($hWnds = "||" Or StringInStr($hWnds, "|" & WinGetHandle("[ACTIVE]") & "|")) Then Return 1 ;Block processing!
    EndIf

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

    Return _WinAPI_CallNextHookEx($ah_MouseKeyboard_WinHooks[3], $nCode, $wParam, $lParam) ;Continue processing
    EndFunc

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

    ;Releases callbacks and Unhook Windows hooks
    Func _BlockInput_UnhookWinHooks_Proc()
    ;Release KeyBoard callback function
    If $ah_MouseKeyboard_WinHooks[0] > 0 Then
    DllCallbackFree($ah_MouseKeyboard_WinHooks[0])
    $ah_MouseKeyboard_WinHooks[0] = 0
    EndIf

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

    ;Release Mouse callback function
    If $ah_MouseKeyboard_WinHooks[1] > 0 Then
    DllCallbackFree($ah_MouseKeyboard_WinHooks[1])
    $ah_MouseKeyboard_WinHooks[1] = 0
    EndIf

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

    ;Release KeyBoard Window hook
    If IsPtr($ah_MouseKeyboard_WinHooks[2]) Then
    _WinAPI_UnhookWindowsHookEx($ah_MouseKeyboard_WinHooks[2])
    $ah_MouseKeyboard_WinHooks[2] = 0
    EndIf

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

    ;Release Mouse Window hook
    If IsPtr($ah_MouseKeyboard_WinHooks[3]) Then
    _WinAPI_UnhookWindowsHookEx($ah_MouseKeyboard_WinHooks[3])
    $ah_MouseKeyboard_WinHooks[3] = 0
    EndIf

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

    Return 1
    EndFunc

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

    Func _Parse_vkCodesList_CLASSes($sList)
    Local $a_vkCode_List = StringSplit($sList, "|")
    Local $sRet_Keys = ""

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

    For $i = 1 To $a_vkCode_List[0]
    Switch $a_vkCode_List[$i]
    Case "[:FUNC:]"
    $a_vkCode_List[$i] = "0x70|0x71|0x72|0x73|0x74|0x75|0x76|0x77|0x78|0x79|0x7A|0x7B|0x7C|" & _
    "0x7D|0x7E|0x7F|0x80H|0x81H|0x82H|0x83H|0x84H|0x85H|0x86H|0x87H"
    Case "[:ALPHA:]"
    $a_vkCode_List[$i] = "0x41|0x42|0x43|0x44|0x45|0x46|0x47|0x48|0x49|0x4A|0x4B|0x4C|0x4D|" & _
    "0x4E|0x4F|0x50|0x51|0x52|0x53|0x54|0x55|0x56|0x57|0x58|0x59|0x5A"
    Case "[:NUMBER:]"
    $a_vkCode_List[$i] = "0x30|0x31|0x32|0x33|0x34|0x35|0x36|0x37|0x38|0x39|0x60|0x61|0x62|" & _
    "0x63|0x64|0x65|0x66|0x67|0x68|0x69"
    Case "[:ARROWS:]"
    $a_vkCode_List[$i] = "0x25|0x26|0x27|0x28"
    Case "[:SPECIAL:]"
    $a_vkCode_List[$i] = "0x08|0x09|0x0C|0x0D|0x10|0x11|0x12|0x13|0x14|0x1B|0x20|0x21|0x22|" & _
    "0x23|0x24|0x29|0x2A|0x2B|0x2C|0x2D|0x2E|0x5B|0x5C|0x6A|0x6B|0x6C|" & _
    "0x6D|0x6E|0x6F|0x90|0x91|0xA0|0xA1|0xA2|0xA3|0xA4|0xA5|0xBA|0xBB|" & _
    "0xBC|0xBD|0xBE|0xBF|0xC0|0xDB|0xDC|0xDD"
    Case Else
    $a_vkCode_List[$i] = _KeyStr_To_vkCode($a_vkCode_List[$i])
    EndSwitch

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

    $sRet_Keys &= $a_vkCode_List[$i] & "|"
    Next

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

    Return StringRegExpReplace($sRet_Keys, "\|+$", "")
    EndFunc

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

    Func _Parse_vmCodesList_CLASSes($sList)
    Local Const $MOUSE_MOVE_EVENT = 512
    Local Const $MOUSE_PRIMARYDOWN_EVENT = 513
    Local Const $MOUSE_PRIMARYUP_EVENT = 514
    Local Const $MOUSE_SECONDARYDOWN_EVENT = 516
    Local Const $MOUSE_SECONDARYUP_EVENT = 517
    Local Const $MOUSE_WHELLDOWN_EVENT = 519
    Local Const $MOUSE_WHELLUP_EVENT = 520
    Local Const $MOUSE_WHELLSCROLL_EVENT = 522
    Local Const $MOUSE_SPECIALBUTTONDOWN_EVENT = 523
    Local Const $MOUSE_SPECIALBUTTONUP_EVENT = 524

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

    Local $a_vmCode_List = StringSplit($sList, "|")
    Local $sRet_Keys = ""

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

    For $i = 1 To $a_vmCode_List[0]
    Switch $a_vmCode_List[$i]
    Case "{MMOVE}"
    $a_vmCode_List[$i] = $MOUSE_MOVE_EVENT
    Case "{MPDOWN}"
    $a_vmCode_List[$i] = $MOUSE_PRIMARYDOWN_EVENT
    Case "{MPUP}"
    $a_vmCode_List[$i] = $MOUSE_PRIMARYUP_EVENT
    Case "{MSDOWN}"
    $a_vmCode_List[$i] = $MOUSE_SECONDARYDOWN_EVENT
    Case "{MSUP}"
    $a_vmCode_List[$i] = $MOUSE_SECONDARYUP_EVENT
    Case "{MWDOWN}"
    $a_vmCode_List[$i] = $MOUSE_WHELLDOWN_EVENT
    Case "{MWUP}"
    $a_vmCode_List[$i] = $MOUSE_WHELLUP_EVENT
    Case "{MWSCROLL}"
    $a_vmCode_List[$i] = $MOUSE_WHELLSCROLL_EVENT
    Case "{MSPDOWN}"
    $a_vmCode_List[$i] = $MOUSE_SPECIALBUTTONDOWN_EVENT
    Case "{MSPUP}"
    $a_vmCode_List[$i] = $MOUSE_SPECIALBUTTONUP_EVENT
    EndSwitch

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

    $sRet_Keys &= $a_vmCode_List[$i] & "|"
    Next

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

    Return StringRegExpReplace($sRet_Keys, "\|+$", "")
    EndFunc

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

    Func _KeyStr_To_vkCode($sKeyStr)
    Local $sRet_Keys = "", $aDelim_Keys[1]
    Local $aKeys = StringSplit("{LMouse}|{RMouse}|{}|(MMouse}|{}|{}|{}|{BACKSPACE}|{TAB}|{}|{}|{}|{ENTER}|{}|{}|{SHIFT}|{CTRL}|{ALT}|{PAUSE}|{CAPSLOCK}|{}|{}|{}|{}|{}|{}|{ESC}|{}|{}|{}|{]|{SPACE}|{PGUP}|{PGDN}|{END}|{HOME}|{LEFT}|{UP}|{RIGHT}|{DOWN}|{SELECT}|{PRINTSCREEN}|{}|{PRINTSCREEN}|{INSERT}|{DEL}|{}|0|1|2|3|4|5|6|7|8|9|{}|{}|{}|{}|{}|{}|{}|a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|{LWIN}|{RWIN}|{APPSKEY}|{}|{SLEEP}|{numpad0}|{numpad1}|{numpad2}|{numpad3}|{numpad4}|{numpad5}|{numpad6}|{numpad7}|{numpad8}|{numpad9}|{NUMPADMULT}|{NUMPADADD}|{}|{NUMPADSUB}|{NUMPADDOT}|{NUMPADDIV}|{F1}|{F2}|{F3}|{F4}|{F5}|{F6}|{F7}|{F8}|{F9}|{F10}|{F11}|{F12}|{F13}|{F14}|{F15}|{F16}|{F17}|{F18}|{F19}|{F20}|{F21}|{F22}|{F23}|{F24}|{}|{}|{}|{}|{}|{}|{}|{}|{NUMLOCK}|{}|{}|{}|{}|{}|{}|{}|{}|{}|{}|{}|{}|{}|{}|{}|{SHIFT}|{SHIFT}|{CTRL}|{CTRL}|{ALT}|{ALT}|{BROWSER_BACK}|{BROWSER_FORWARD}|{BROWSER_REFRESH}|{BROWSER_STOP}|{BROWSER_SEARCH}|{BROWSER_FAVORITES}|{BROWSER_HOME}|{VOLUME_MUTE}|{VOLUME_DOWN}|{VOLUME_UP}|{MEDIA_NEXT}|{MEDIA_PREV}|{MEDIA_STOP}|{MEDIA_PLAY_PAUSE}|{LAUNCH_MAIL}|{LAUNCH_MEDIA}|{LAUNCH_APP1}|{LAUNCH_APP2}|{}|{}|;|{+}|,|{-}|.|/|`|{}|{}|{}|{}|{}|{}|{}|{}|{}|{}|{}|{}|{}|{}|{}|{}|{}|{}|{}|{}|{}|{}|{}|{}|{}|{}|[|\|]|'", "|")

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

    If StringRegExp($sKeyStr, "\A\[|\]\z") Then
    $sKeyStr = StringRegExpReplace($sKeyStr, "\A\[|\]\z", "")
    $sKeyStr = StringRegExpReplace($sKeyStr, "(.)", "\1|")
    $sKeyStr = StringRegExpReplace($sKeyStr, "\|+$", "")

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

    $aDelim_Keys = StringSplit($sKeyStr, "")
    EndIf

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

    For $i = 1 To $aKeys[0]
    If $aDelim_Keys[0] > 1 Then
    For $j = 1 To $aDelim_Keys[0]
    If $aKeys[$i] = $aDelim_Keys[$j] Then $sRet_Keys &= "0x" & Hex($i, 2) & "|"
    Next
    Else
    If $aKeys[$i] = $sKeyStr Then Return "0x" & Hex($i, 2)
    EndIf
    Next

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

    If $sRet_Keys = "" Then Return $sKeyStr
    Return StringRegExpReplace($sRet_Keys, "\|+$", "")
    EndFunc

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

    ;Called when script exits to release resources.
    Func OnAutoItExit()
    _BlockInputEx(0)
    EndFunc

    [/autoit]
  • AutoIt Booteditor

    • Irrlicht
    • 22. Mai 2011 um 14:37

    Halli hallo hallöchen.
    Heute gibts ein kleines Skript, das das Bootlogo verändert (sowas: [Blockierte Grafik: http://home.pages.at/chemikers-home/screenshots/setup/BOOTLOGO.jpg] 
    Kompatible Betriebssysteme:
    -XP [getestet]
    -Vista & Win 7 [nicht getestet], es spricht aber nix dafür, dass es nicht klappt
    Über die Funktionsweise
    Das Programm ändert in C:\boot.ini zwei Einträge. Dazu wird ein ausgewähltes Bild in den Windowsordner kopiert und in boot.bmp umbenannt.
    Nix weiter :)

    Der Code:

    Spoiler anzeigen
    [autoit]

    #include <GuiConstants.au3>
    #include <StaticConstants.au3>
    #include<file.au3>
    #include<array.au3>
    #include<gdiplus.au3>
    #RequireAdmin
    Local $inidir = IniRead(@ScriptDir & "\info.ini", "Bootinidir", "dir", "C:\boot.ini")
    Local $pos = 1

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

    $Gui = GUICreate("Autoit Booteditor", 600, 270)
    $back = GUICtrlCreateButton("Back", 400, 0, 200, 30)
    GUICtrlSetState(-1, $gui_disable)
    $next = GUICtrlCreateButton("Next", 400, 30, 200, 30)
    $add = GUICtrlCreateButton("Add bootlogo", 400, 60, 200, 30)
    $aslogo = GUICtrlCreateButton("Use as bootlogo", 400, 90, 200, 30)
    $default = GUICtrlCreateButton("Use default bootlogo", 400, 120, 200, 30)
    $change = GUICtrlCreateButton("Find boot.ini", 400, 150, 200, 30)
    $pic = GUICtrlCreatePic(@ScriptDir & "\pic" & $pos & ".bmp", 0, 0, 400, 270)
    GUISetState(@SW_SHOW)

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

    While 1
    $msg = GUIGetMsg()
    Switch $msg
    Case $gui_event_close
    Exit
    Case $back
    GUICtrlDelete($pic)
    $pos = $pos - 1
    $pic = GUICtrlCreatePic(@ScriptDir & "\pic" & $pos & ".bmp", 0, 0, 400, 270)
    GUICtrlSetState($next, $gui_enable)
    If $pos = 1 Then GUICtrlSetState($back, $gui_disable)
    Case $next
    $list = _FileListToArray(@ScriptDir, "*.bmp")
    GUICtrlDelete($pic)
    GUICtrlSetState($back, $gui_enable)
    $pos = $pos + 1
    $pic = GUICtrlCreatePic(@ScriptDir & "\pic" & $pos & ".bmp", 0, 0, 400, 270)
    If $pos = $list[0] - 1 Then GUICtrlSetState($next, $gui_disable)
    Case $add

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

    $openfiles = FileOpenDialog("Chose the bootlogo, you'd wish to add", @DesktopDir, "BMP-Files(*.bmp)")
    $list = _FileListToArray(@ScriptDir, "*.bmp")
    _GDIPlus_Startup()
    $tempfile = _GDIPlus_ImageLoadFromFile($openfiles)
    $width = _GDIPlus_ImageGetWidth($tempfile)
    $height = _GDIPlus_ImageGetHeight($tempfile)
    $pixelformat = _GDIPlus_ImageGetPixelFormat($tempfile)

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

    _gdiplus_shutdown()

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

    If $width <> 640 Or $height <> 480 Or StringInStr($pixelformat, "16") = 0 Then
    MsgBox(0, "Error", "Please chose a file, with a width of 640*480")

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

    Else
    FileCopy($openfiles, @ScriptDir & "\pic" & ($list[0] + 1) & ".bmp")
    EndIf
    Case $aslogo
    _aslogo($pos)
    Case $change

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

    $inidir2 = FileOpenDialog("Find boot.ini", "C:\", "Ini-Files(*.ini)")
    If StringLen($inidir2) <> "" Then
    IniWrite(@ScriptDir & "\info.ini", "Bootinidir", "dir", $inidir2)
    $inidir = $inidir2
    EndIf
    Case $default
    _default()
    EndSwitch

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

    WEnd
    Func _aslogo($pos)

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

    If FileExists($inidir) Then
    $sectionread = IniReadSection($inidir, "operating systems")
    If StringInStr($sectionread[1][1], " /bootlogo") = 0 Then
    For $i = 0 To 1
    IniWrite($inidir, "operating systems", "", $sectionread[1][$i] & " /bootlogo")
    Next
    EndIf
    If StringInStr($sectionread[1][1], " /noguiboot") = 0 Then
    For $i = 0 To 1
    IniWrite(@DesktopDir & "\boot.ini", "operating systems", "", $sectionread[1][$i] & " /noguiboot")
    Next
    EndIf

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

    FileCopy(@ScriptDir & "\pic" & $pos & ".bmp", @WindowsDir & "\boot.bmp", 1)
    EndIf
    EndFunc ;==>_aslogo
    Func _default()
    MsgBox(0, "Default settings", "Delete the parameters ' /noguiboot' and ' /bootlogo', which are included in " & $inidir2)
    EndFunc ;==>_default

    [/autoit]


    Nun viel Spaß und viel Erfolg beim Testen,
    Gruß,
    Billie

    __________________________________________________________________________
    Im Anhang ist der Download mit der exe, mit ini's und 3 Bootlogos.
    Für Schäden übernehm ich keinerlei Haftung :rofl: . Wenn ihr auf die Sicherheit des Programmes nicht vertraut, macht einfach nen Systemwiederherstellungpunkt.
    Edit: Kleine Sachen schon geändert. Dateien müssen in 16-Bit abgespeichert sein!

    Dateien

    Autoit Booteditor.rar 570,28 kB – 306 Downloads
  • Steganographierapparat

    • Irrlicht
    • 22. Mai 2011 um 00:21

    Interessant, äußerst interessant.

  • Nach kompilieren: the requested action with this object has failed

    • Irrlicht
    • 21. Mai 2011 um 13:11

    Fehler liegt anscheinend schon bei Text-to-speech?

  • Music player/Radio verbessern

    • Irrlicht
    • 21. Mai 2011 um 13:09

    1) Also bei mir kommt erst einmal en error:

    [autoit]

    ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.:
    $length = $length2[2]&":"&$length2[3]
    $length = ^ ERROR

    [/autoit]


    2) Du solltest mit arrays arbeiten, um den code zu verkürzen..

  • Auflösung von *.wmv, *.avi,... ermitteln

    • Irrlicht
    • 21. Mai 2011 um 13:00

    http://msdn.microsoft.com/en-us/library/…v=VS.85%29.aspx
    Hier hab ich mal was ähnliches gefunden!
    Edit:

    Zitat

    [0]|Donnie Darko.avi
    [1]|1.220.959 KB
    [2]|VLC media file (.avi)
    [3]|20.06.2008 02:22
    [4]|16.05.2011 17:51
    [5]|16.05.2011 17:56
    [6]|A
    [7]|Online
    [8]|xxxxxxx
    [9]|
    [10]|
    [11]|
    [12]|
    [13]|
    [14]|
    [15]|
    [16]|
    [17]|
    [18]|
    [19]|
    [20]|
    [21]|02:08:22
    [22]|64 kBit/s
    [23]|
    [24]|
    [25]|
    [26]|720 x 576
    [27]|720 Pixel
    [28]|576 Pixel
    [29]|
    [30]|
    [31]|
    [32]|
    [33]|
    [34]|

    Alles anzeigen


    Für alle avi's funktionierts mit der auflösung...

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™