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

Beiträge von Sprenger120

  • _NetServerEnum scheint nicht alle PCs im Netzwerk aufzulisten

    • Sprenger120
    • 18. Februar 2010 um 19:44

    Es kann dararan liegen das bei manchen PC´s in deinem Netzwerk die Netzwerkerkennung ausgeschaltet ist

  • Mehrere Variablen in einer InputBox

    • Sprenger120
    • 18. Februar 2010 um 19:38
    [autoit]


    $split = Stringsplit($in, ".") ;Splittet den String nach jedem .
    If IsArray($split) Then;Prüft ob es ein Array ist jenn ja dann zeigt er MsgBoxen mit dem Inhalt an
    msgbox(0,"Tag", $split[1])
    msgbox(0,"Monat", $split[2])
    msgbox(0,"Jahr", $split[3])
    Endif

    [/autoit]
  • 3D Rollenspiel

    • Sprenger120
    • 18. Februar 2010 um 14:20

    Also wie ich mr das so durchgelesen habe ist ein Internet Rollenspiel SEHR SEHR SEHR schwer zu machen aber in autoit gar unmöglich

    1.Der Gameserver:Für Autoit wäre die Datenlast erdrückend es würde also kein flüssiges spielen sein
    2.Wie Moritz1234 schon sagte hat Irrlich einen Bug beim Ogjekt löschen und wie du schon sagtest soll ja die Welt recht größ sein und das würde für Autoit auch zu viel werden weil Autoit (zumindes bei mir) nur 1 GB Ram maximal belegen kann danach kommt die Fehlermeldung Error Allocating Memory


    unterm Strich ist das genau so eine Idee wie einen Virenscanner in Autoit zu schrieben

  • HAPPY BIRTHDAY @ UEZ

    • Sprenger120
    • 17. Februar 2010 um 20:40

    Alles Gut UEZ und schön feiern!!

  • Autoit stürtzt ab

    • Sprenger120
    • 17. Februar 2010 um 20:29
    Spoiler anzeigen
    [autoit]


    #include <GDIPlus.au3>
    #include <Bass.au3>
    #include <_GetFilesFolder_Rekursiv.au3>
    #include <GuiListView.au3>
    #include <Misc.au3>
    #include <BassConstants.au3>
    #include <WindowsConstants.au3>
    #include <ListViewConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StructureConstants.au3>
    #include <WinAPI.au3>
    #include <GDIPlusConstants.au3>
    #include <basstags.au3>
    #NoTrayIcon
    ;===================================================================================================
    ; INRadio-Localtuner by JuraX
    ;===================================================================================================
    Global Const $WM_DROPFILESplay = 0x0233
    Global Const $WM_DROPFILES = 0x0233
    Global $gaDropFiles[1]
    Global $aItem[2]
    Global $playing_state = -1
    Global $MusicHandle
    Global $titelnummer = 0
    Global $progress_slider, $slots, $hwnd
    Global $fftstruct = DllStructCreate("float[128]")
    Global $song_length = _BASS_ChannelGetLength($MusicHandle, $BASS_POS_BYTE)
    Global $tags
    Global $ARRPLAY
    Global $hwnd
    Global $iX2 = 0, $iW, $iStep = 2

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

    #Region StartUp

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

    #Region OPT
    Opt("TrayMenuMode", 1)
    Opt("MouseCoordMode", 0)
    #EndRegion OPT

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

    #Region Tray
    $uottray = TrayCreateItem("Anzeigen")
    $totray = TrayCreateItem("Verstecken")
    $deleate = TrayCreateItem("Schließen")
    TraySetState()
    #EndRegion Tray

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

    #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
    #AutoIt3Wrapper_Res_Field=INR|Jurax-Multimedia
    #AutoIt3Wrapper_Res_Field=ProductVersion|1.3
    #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

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

    ;Bass StartUp
    _BASS_STARTUP(@ScriptDir & "\BASS.dll")
    _Bass_Tags_Startup("BassTags.dll")
    _BASS_Init(0, -1, 44100, 0, "")

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

    If @error Then
    MsgBox(0, "Error", "Sound konnte nicht Initialisiert werden!")
    Exit
    EndIf

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

    #Region Register
    If IsDeclared("Musichandle") Then
    AdlibRegister("tagout", 5000)
    EndIf
    AdlibRegister("Aktualisieren")
    GUIRegisterMsg($WM_NOTIFY, "WM_NOTIFY")
    GUIRegisterMsg($WM_DROPFILES, 'WM_DROPFILES_FUNC')
    GUIRegisterMsg($WM_PAINT, "_WM_PAINT")

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

    #EndRegion Register

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

    #EndRegion StartUp

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

    #Region GUI
    $Width = 380
    $Height = 650
    $hwnd = GUICreate("INRadio-Localtuner", $Width, $Height, -1, -1, Default, $WS_EX_ACCEPTFILES)
    $TITART = GUICtrlCreateLabel("", 130, 220, 500, 70)
    $slots = GUICtrlCreateLabel(GUICtrlRead($progress_slider), 8, 8, 150, 17)
    $Close = GUICtrlCreateButton("Close", 296, 160, 75, 25, 0)
    ;$Play = GUICtrlCreateButton("Play", 216, 160, 75, 25, 0)
    $Stop = GUICtrlCreateButton("Stop", 136, 160, 75, 25, 0)
    $newfile = GUICtrlCreateButton("Andere Datei", 36, 160, 75, 25, 0)
    $progress_slider = GUICtrlCreateProgress(8, 32, 236, 20)
    $ordner = GUICtrlCreateButton("Neue Bibliothek", 136, 330)
    GUICtrlCreateLabel("Lautstärke", 8, 190, 80, 20)
    $Volume_slider = GUICtrlCreateSlider(8, 250, 366, 80)
    $hListView = GUICtrlCreateListView('Dateiname|Pfad', 10, 375, 350, 200)
    GUICtrlSetLimit($progress_slider, 100)
    GUICtrlSetData($Volume_slider, 100)
    SoundSetWaveVolume(100)
    $Playliste = GUICtrlCreateButton("Playliste abspielen", 20, 330)

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

    #Region BIB Füllen
    $return = IniRead(@ScriptDir & "\INRadio.ini", "Load", "BIB", "")
    If $return = "" Then
    $return = 'C:\Users\' & @UserName & '\Desktop'
    Endif
    $returnputin = _GetFilesFolder_Rekursiv($return, "mp3", 0)
    For $i = 1 To $returnputin[0]
    $dateiname = StringSplit($returnputin[$i], "\")
    GUICtrlCreateListViewItem($dateiname[$dateiname[0]] & "|" & $returnputin[$i], $hListView)
    Next
    #EndRegion BIB Füllen

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

    $rightVol = GUICtrlCreateProgress(8, 88, 236, 17)
    GUICtrlSetLimit(-1, 100, 0)
    GUICtrlCreateLabel("Right Channel Volume Level", 8, 112, 150, 17)
    $LeftVol = GUICtrlCreateProgress(8, 136, 236, 17)
    GUICtrlSetLimit(-1, 100, 0)
    GUICtrlCreateLabel("Left Channel Volume Level", 8, 64, 150, 17)

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

    GUISetState()
    #EndRegion GUI

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

    #Region GDIstartup
    _GUICtrlListView_SetColumnWidth($hListView, 0, $LVSCW_AUTOSIZE)
    _GDIPlus_Startup()

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

    Global $hGraphics = _GDIPlus_GraphicsCreateFromHWND($hwnd)
    Global $hBitmapBuffer = _GDIPlus_BitmapCreateFromGraphics(800, 200, $hGraphics)
    Global $hGraphicsBuffer = _GDIPlus_ImageGetGraphicsContext($hBitmapBuffer)
    _GDIPlus_GraphicsClear($hGraphicsBuffer, 0xFF000000)
    Global $hBitmapLed = _CreateLedBitmap($hGraphics, "INR", 200, 50, $iStep, $iStep, 0xFFFFBB00, 0x66111122)
    $iW = @extended

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

    $iX = 120
    $iY = 145
    $graphics = _GDIPlus_GraphicsCreateFromHWND($hwnd)
    $bitmap = _GDIPlus_BitmapCreateFromGraphics($iX, $iY, $graphics)
    $backbuffer = _GDIPlus_ImageGetGraphicsContext($bitmap)
    _GDIPlus_GraphicsClear($backbuffer)
    $pen1_size = 4
    $pen1 = _GDIPlus_PenCreate(0, $pen1_size)
    $pen2_size = 4
    $pen2 = _GDIPlus_PenCreate(0, $pen2_size)
    $pen3_size = 3
    $pen3 = _GDIPlus_PenCreate(0, $pen3_size)

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

    $fall_speed_l_threshold = 0
    $fall_speed_r_threshold = 0
    $equalizer_width = 24
    $max_l = 0
    $max_r = 0
    $fall_speed = 5
    $fire_up = 15

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

    $fft_start = 7
    $fft_end = 127
    $fft_boost = 750
    $dy = Int($iY / ($fft_end - $fft_start)) + $pen3_size
    $dyy = Int($iY / $dy / 2)
    $eq = 1
    Dim $mpos[2]
    #EndRegion GDIstartup

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

    #Region Loop

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

    While(True)
    Sleep(200)
    $iX2 -= $iStep
    If $iX2 + $iW < 0 Then $iX2 += $iW
    _GDIPlus_GraphicsDrawImage($hGraphicsBuffer, $hBitmapLed, $iX2, 0)
    _GDIPlus_GraphicsDrawImage($hGraphicsBuffer, $hBitmapLed, $iX2 + $iW, 0)
    _WinAPI_RedrawWindow($hwnd, 0, 0, $RDW_INTERNALPAINT)
    _GUICtrlListView_SetColumnWidth($hListView, 1, 0)
    $soundoff = _SoundGetWaveVolume()
    GUICtrlSetData($Volume_slider, $soundoff)
    If $playing_state = 1 Then
    $song_length = _BASS_ChannelGetLength($MusicHandle, $BASS_POS_BYTE)
    $current = _BASS_ChannelGetPosition($MusicHandle, $BASS_POS_BYTE)
    $percent = Round(($current / $song_length) * 100, 0)
    ConsoleWrite("MH: " & $MusicHandle & " Current: " & $current & " song_length: " & $song_length & @CRLF)
    GUICtrlSetData($progress_slider, $percent)
    $levels = _BASS_ChannelGetLevel($MusicHandle)
    $rightChLvl = _LoWord($levels)
    $rightChLvlper = Round(($rightChLvl / 32768) * 100, 0)
    $LeftChLvl = _HiWord($levels)
    $leftChLvlper = Round(($LeftChLvl / 32768) * 100, 0)
    If IsArray($ARRPLAY) Then
    If $current = $song_length Then
    GUICtrlSetData($progress_slider, 0)
    If $playing_state = 1 Then
    _BASS_ChannelStop($MusicHandle)
    EndIf
    $titelnummer += 1
    If $titelnummer = UBound($ARRPLAY) - 1 Then $titelnummer = 0
    ; Sleep (50)
    $playing_state = 1
    $MusicHandle = _BASS_StreamCreateFile(False, $ARRPLAY[$titelnummer][1], 0, 0, 0)
    _BASS_ChannelPlay($MusicHandle, 0)
    EndIf
    EndIf
    Else
    $rightChLvlper = 0
    $leftChLvlper = 0
    EndIf
    GUICtrlSetData($rightVol, $rightChLvlper)
    GUICtrlSetData($LeftVol, $leftChLvlper)
    Display_Vis($eq)

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

    $Msg = GUIGetMsg()
    $tmsg = TrayGetMsg()
    Switch $tmsg

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

    Case $uottray
    GUISetState(@SW_SHOW)
    Case $totray
    GUISetState(@SW_HIDE)
    Case $deleate
    EXITF()
    EndSwitch
    Switch $Msg

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

    Case $Close, $GUI_EVENT_CLOSE
    EXITF()
    ; Case $Play
    Case $Stop
    If $playing_state = 1 Then
    _BASS_ChannelStop($MusicHandle)
    $playing_state = -1
    EndIf
    $ARRPLAY = 0
    Sleep(50)
    Case $newfile
    If $playing_state = 1 Then
    _BASS_ChannelStop($MusicHandle)
    EndIf
    $ARRPLAY = 0
    Sleep(50)
    $file = FileOpenDialog("Open...", "", "MP3 Files (*.mp3)")
    $MusicHandle = _BASS_StreamCreateFile(False, $file, 0, 0, 0)
    _BASS_ChannelPlay($MusicHandle, 0)
    $playing_state = 1
    Case $Volume_slider
    SoundSetWaveVolume(GUICtrlRead($Volume_slider))
    Case $ordner
    $var = FileSelectFolder("Ordner wählen", "")
    IniWrite(@ScriptDir & "\INRadio.ini", "Load", "BIB", $var)
    Case $Playliste
    $ARRPLAY = _ListViewToArray($hListView)
    $playing_state = 1
    $MusicHandle = _BASS_StreamCreateFile(False, $ARRPLAY[$titelnummer][1], 0, 0, 0)
    _BASS_ChannelPlay($MusicHandle, 0)
    Case $GUI_EVENT_DROPPED
    For $i = 0 To UBound($gaDropFiles) - 1
    GUICtrlCreateListViewItem(StringRegExpReplace($gaDropFiles[$i], '.*\\(.*)\..*', '$1'), $hListView)
    _GUICtrlListView_SetColumnWidth($hListView, 0, $LVSCW_AUTOSIZE)
    Next

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

    EndSwitch

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

    WEnd

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

    #EndRegion Loop
    $mpos = MouseGetPos()
    If $mpos[0] >= $Width - $iX - 10 And $mpos[0] <= $Width - 10 And $mpos[1] > 8 And $mpos[1] <= $iY + 8 And _IsPressed("01", "user32.dll") And WinActive($hwnd) Then
    $eq *= -1
    EndIf
    #Region Func's

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

    Func WM_DROPFILES_FUNC($hwnd, $msgID, $wParam, $lParam) ; diese Funktion wird benötigt, damit man auch mehrere Dateien droppen kann
    Local $nSize, $pFileName
    Local $nAmt = DllCall('shell32.dll', 'int', 'DragQueryFileW', 'hwnd', $wParam, 'int', 0xFFFFFFFF, 'ptr', 0, 'int', 255)
    For $i = 0 To $nAmt[0]
    $nSize = DllCall('shell32.dll', 'int', 'DragQueryFileW', 'hwnd', $wParam, 'int', $i, 'ptr', 0, 'int', 0)
    $nSize = $nSize[0] + 1
    $pFileName = DllStructCreate('wchar[' & $nSize & ']')
    DllCall('shell32.dll', 'int', 'DragQueryFileW', 'hwnd', $wParam, 'int', $i, 'ptr', DllStructGetPtr($pFileName), 'int', $nSize)
    $filename = DllStructGetData($pFileName, 1) ;Dateinamen holen
    ConsoleWrite($filename & @CRLF)
    ReDim $gaDropFiles[$i + 1]
    $gaDropFiles[$i] = DllStructGetData($pFileName, 1)
    $pFileName = 0
    Next
    ;_ArrayDisplay($gaDropFiles)
    For $i = 0 To UBound($gaDropFiles) - 2 ;kommt derzeit immer noch ein leerer Eintrag am schluss
    GUICtrlCreateListViewItem(StringRegExpReplace($gaDropFiles[$i], '.*\\(.*)\..*', '$1') & "|" & $gaDropFiles[$i], $hListView)
    Next
    _GUICtrlListView_SetColumnWidth($hListView, 0, $LVSCW_AUTOSIZE) ;erst wenn alle eigefügt sind
    EndFunc ;==>WM_DROPFILES_FUNC

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

    Func Aktualisieren()
    $Sliderstatus = GUICtrlRead($progress_slider)
    GUICtrlSetData($slots, $Sliderstatus)
    EndFunc ;==>Aktualisieren

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

    Func WM_NOTIFY($hwnd, $msgID, $wParam, $lParam);Für Doppelcklick Erkennung
    Local $tagNMHDR, $event, $hwndFrom, $code
    $tagNMHDR = DllStructCreate("int;int;int", $lParam)
    If @error Then Return 0
    $code = DllStructGetData($tagNMHDR, 3)
    If $wParam = $hListView And $code = -3 And _GUICtrlListView_GetSelectedCount($hListView) > 0 Then
    For $i = 0 To _GUICtrlListView_GetItemCount($hListView)
    IF _GUICtrlListView_GetItemSelected($hListView, $i) Then
    $aItem = _GUICtrlListView_GetItemTextArray($hListView, $i)
    ;~ In aItem[1] steht der Dateiname und in $aItem[2] der Pfad zincl. Dateinamen
    _LeftDblClick()
    EndIf
    Next
    Endif
    Return $GUI_RUNDEFMSG
    EndFunc ;==>WM_NOTIFY

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

    Func _LeftDblClick()
    If $playing_state = 1 Then
    _BASS_ChannelStop($MusicHandle)
    EndIf
    $titelnummer = -1
    $file = $aItem[2]
    $MusicHandle = _BASS_StreamCreateFile(False, $file, 0, 0, 0)
    _BASS_ChannelPlay($MusicHandle, 0)
    $playing_state = 1
    EndFunc ;==>_LeftDblClick

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

    Func Display_Vis($eq = 1)
    _GDIPlus_GraphicsClear($backbuffer, 0x80F0F0F0)
    If $eq > 0 Then
    $levels = _BASS_ChannelGetLevel($MusicHandle)
    $LeftChLvl = $leftChLvlper ;Round(_HiWord($levels) / $iY, 0)
    $rightChLvl = $rightChLvlper ;Round(_LoWord($levels) / $iY, 0)

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

    If $max_l <= $LeftChLvl Then ;fire up higest line
    $max_l = $LeftChLvl + $fire_up
    $fall_speed_l_threshold = 20
    Else
    If $fall_speed_l_threshold <= 0 Then ;increase fall speed of highest line faster until threshold is <= 0 (second fall part)
    If $max_l > $LeftChLvl + $pen2_size * 2 Then $max_l -= $fall_speed
    Else
    $fall_speed_l_threshold -= 1 ;increase fall speed of highest line by slower until threshold is <= 0 (first fall part)
    If $max_l > $LeftChLvl + $pen2_size * 2 Then $max_l -= $fall_speed / 3
    EndIf
    EndIf

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

    If $max_r <= $rightChLvl Then
    $max_r = $rightChLvl + $fire_up
    $fall_speed_r_threshold = 20
    Else
    If $fall_speed_r_threshold <= 0 Then
    If $max_r > $rightChLvl + $pen2_size * 2 Then $max_r -= $fall_speed
    Else
    $fall_speed_r_threshold -= 1
    If $max_r > $rightChLvl + $pen2_size * 2 Then $max_r -= $fall_speed / 3
    EndIf
    EndIf
    _BASS_ChannelGetData($MusicHandle, DllStructGetPtr($fftstruct), $BASS_DATA_FFT256)
    For $i = $fft_start To $fft_end Step $dy
    $fft = Round(DllStructGetData($fftstruct, 1, $i + 1) * $fft_boost)
    $r = (-(Cos(1.7 * $fft / 256) + 1) * 0.5) * 256
    $g = ((Cos(4 * $fft / 256) + 1) * 0.5) * 256
    $b = 0
    _GDIPlus_PenSetColor($pen3, "0xFF" & Hex($r, 2) & Hex($g, 2) & Hex($b, 2))
    _GDIPlus_GraphicsDrawLine($backbuffer, $iX / 5, $i + $dyy, $iX / 5 + $fft, $i + $dyy, $pen3)
    Next
    EndIf
    _GDIPlus_GraphicsDrawImageRect($graphics, $bitmap, $Width - $iX - 10, 8, $iX, $iY)
    EndFunc ;==>Display_Vis

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

    Func _SoundGetWaveVolume()
    Local $WaveVol = -1, $p, $ret
    Const $MMSYSERR_NOERROR = 0
    $p = DllStructCreate("dword")
    If @error Then
    SetError(2)
    Return -2
    EndIf
    $ret = DllCall("winmm.dll", "long", "waveOutGetVolume", "long", -1, "long", DllStructGetPtr($p))
    If($ret[0] == $MMSYSERR_NOERROR) Then
    $WaveVol = Round(Dec(StringRight(Hex(DllStructGetData($p, 1), 8), 4)) / 0xFFFF * 100)
    Else
    SetError(1)
    EndIf
    $p = ""
    Return $WaveVol
    EndFunc ;==>_SoundGetWaveVolume

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

    Func EXITF()
    _BASS_Stop()
    _BASS_Free()
    _GDIPlus_BitmapDispose($hBitmapLed)
    _GDIPlus_GraphicsDispose($hGraphicsBuffer)
    _GDIPlus_BitmapDispose($hBitmapBuffer)
    _GDIPlus_GraphicsDispose($hGraphics)
    _GDIPlus_PenDispose($pen1)
    _GDIPlus_PenDispose($pen2)
    _GDIPlus_PenDispose($pen3)
    _GDIPlus_BitmapDispose($bitmap)
    _GDIPlus_GraphicsDispose($graphics)
    _GDIPlus_GraphicsDispose($backbuffer)
    _GDIPlus_BitmapDispose($hBitmapLed)
    _GDIPlus_GraphicsDispose($hGraphicsBuffer)
    _GDIPlus_BitmapDispose($hBitmapBuffer)
    _GDIPlus_GraphicsDispose($hGraphics)
    _GDIPlus_Shutdown()
    _GDIPlus_Shutdown()
    $fftstruct = 0
    ProcessClose("Radiotuner.exe")
    AdlibUnRegister("Aktualisieren")
    Exit
    EndFunc ;==>EXITF

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

    Func _ListViewToArray($hListView)
    If Not IsHWnd($hListView) Then $hListView = GUICtrlGetHandle($hListView)
    Local $sString = ""
    For $i = 0 To _GUICtrlListView_GetItemCount($hListView) - 1
    $sString &= _GUICtrlListView_GetItemTextString($hListView, $i)
    $sString &= ";"
    Next
    $aSplit = StringSplit(StringTrimRight($sString, 1), ";", 2)
    $iUB1 = UBound($aSplit)
    Dim $aRet[$iUB1][1]
    For $i = 0 To $iUB1 - 1
    $aSplit2 = StringSplit($aSplit[$i], "|", 2)
    $iUB2 = UBound($aSplit2)
    If $iUB2 > UBound($aRet, 2) Then ReDim $aRet[$iUB1][$iUB2]
    For $j = 0 To $iUB2 - 1
    $aRet[$i][$j] = $aSplit2[$j]
    Next
    Next
    Return $aRet
    EndFunc ;==>_ListViewToArray

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

    Func TAGOUT()
    $tags = _Bass_Tags_Read($MusicHandle, "%TITL" & "-" & "%ARTI")
    GUICtrlSetData($TITART, $tags)
    EndFunc ;==>TAGOUT

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

    Func _WM_PAINT($hwnd, $Msg, $wParam, $lParam)
    _GDIPlus_GraphicsDrawImage($hGraphics, $hBitmapBuffer, 0, 0)
    Return $GUI_RUNDEFMSG
    EndFunc ;==>_WM_PAINT

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

    Func _CreateLedBitmap($hGraphics, $sText, $iW, $iH, $iLedOffSet, $iLedSize, $iOnColor = 0xFFFFBB00, $iOffColor = 0x88111122, $sFont = "Arial")
    $sText = StringUpper(StringReplace($sText, @LF, ""))
    Local $hBrush = _GDIPlus_BrushCreateSolid($iOnColor)
    Local $hBrushOff = _GDIPlus_BrushCreateSolid($iOffColor)
    Local $hFormat = _GDIPlus_StringFormatCreate()
    Local $hFamily = _GDIPlus_FontFamilyCreate($sFont)
    Local $hFont = _GDIPlus_FontCreate($hFamily, $iH, 1, 2)
    Local $tLayout = _GDIPlus_RectFCreate(0, 0, 0, 0)
    Local $aInfo = _GDIPlus_GraphicsMeasureString($hGraphics, $sText, $hFont, $tLayout, $hFormat)
    Local $iWidth = Ceiling(DllStructGetData($aInfo, "Width")) + $iW
    $iWidth -= Mod($iWidth, $iLedOffSet)
    Local $iHeight = Ceiling(DllStructGetData($aInfo, "Height"))
    DllStructSetData($aInfo, "Y", -Round(($iHeight - $iH) / 3))
    Local $hBitmapTxt = _GDIPlus_BitmapCreateFromGraphics($iWidth, $iHeight, $hGraphics)
    Local $hBitmapLed = _GDIPlus_BitmapCreateFromGraphics($iWidth, $iHeight, $hGraphics)
    Local $hGraphicsTxt = _GDIPlus_ImageGetGraphicsContext($hBitmapTxt)
    Local $hGraphicsLed = _GDIPlus_ImageGetGraphicsContext($hBitmapLed)
    _GDIPlus_GraphicsClear($hGraphicsTxt, $iOffColor)
    _GDIPlus_GraphicsDrawStringEx($hGraphicsTxt, $sText, $hFont, $aInfo, $hFormat, $hBrush)
    Local $BitmapData = _GDIPlus_BitmapLockBits($hBitmapTxt, 0, 0, $iWidth, $iHeight, $GDIP_ILMREAD, $GDIP_PXF32ARGB)
    Local $Stride = DllStructGetData($BitmapData, "Stride")
    Local $Width = DllStructGetData($BitmapData, "Width")
    Local $Height = DllStructGetData($BitmapData, "Height")
    Local $Scan0 = DllStructGetData($BitmapData, "Scan0")
    Local $PixelData, $Color = Hex($iOnColor)
    For $row = 0 To $Height - 1 Step $iLedOffSet
    For $col = 0 To $Width - 1 Step $iLedOffSet
    $PixelData = DllStructCreate("dword", $Scan0 + ($row * $Stride) + ($col * 4))
    If Hex(DllStructGetData($PixelData, 1)) = $Color Then
    _GDIPlus_GraphicsFillEllipse($hGraphicsLed, $col, $row, $iLedSize, $iLedSize, $hBrush)
    Else
    _GDIPlus_GraphicsFillEllipse($hGraphicsLed, $col, $row, $iLedSize, $iLedSize, $hBrushOff)
    EndIf
    Next
    Next
    _GDIPlus_BitmapUnlockBits($hBitmapTxt, $BitmapData)
    _GDIPlus_FontDispose($hFont)
    _GDIPlus_FontFamilyDispose($hFamily)
    _GDIPlus_StringFormatDispose($hFormat)
    _GDIPlus_BrushDispose($hBrush)
    _GDIPlus_BrushDispose($hBrushOff)
    _GDIPlus_BitmapDispose($hBitmapTxt
    _GDIPlus_GraphicsDispose($hGraphicsTxt)
    _GDIPlus_GraphicsDispose($hGraphicsLed)
    Return SetExtended($iWidth, $hBitmapLed)
    EndFunc ;==>_CreateLedBitmap

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

    #EndRegion Func's

    [/autoit]

    probiere mal so

  • LED - Laufschrift

    • Sprenger120
    • 17. Februar 2010 um 12:23

    :thumbup: top super sache und das mit nicht eimal 100 zeilen code

  • I-Net Seiten von anderem Server ziehen

    • Sprenger120
    • 16. Februar 2010 um 19:34

    Ja das kann mann es gibt diverse Programme davür. Mit Autoit ist sowas auch möglich aber ich kann leider nicht so gut HTML um damit die Seite Rekrusiv zu durchsuchen. Also

    Zitat


    Programm lädt Startseite runter.
    Programm analysiet Seite und sucht nach Links
    Programm erstellt Liste mit gefunden Links und der Kreislauf wiederhohlt sich bis es Fertig ist oder mann es vorher beendet.

    Nur meine Frage wäre jetzt:
    Gibt es eine andere möglichkeit einen Link darzustellen außer <a href="www.autoit.de">Autoit</a>
    Gibt es eine andere mäglichkeit ein Bild darzustellen außer <img scr="http://www.autoit.de/wcf/images/future/autoit_logo_gtaspider.png"></img>


    //Edit: Habe gerade nen gutes Programm gefunden Link

  • Process List Tool - Brauche eure Hilfe

    • Sprenger120
    • 16. Februar 2010 um 12:29
    Zitat von LANCeR

    Problem 1. Wenn ich zb 2x Notepad geöffnet habe und dann das Autoit tool starte, wird nichts in der liste angezeigt.


    Warte mal 5 sekunden

    Zitat von LANCeR

    Problem 2. wenn ich ein prozess in der liste anklicke/markiere, wird der nach 3 sekunden wieder "entmarkiert"


    Das liegt an der Updatefunktion die die Liste neu befüllt aber ich ändere das mal noch


    Zitat von LANCeR

    Problem 3: Wenn ich auf HIDE oder SHOW drücke , wenn nichts markiert ist. Stürzt das Programm ab mit folgenden Fehlermeldungen

    Ich setze mich mal ran wenn ich wieder @Home bin

  • Fehlermeldung wieso?

    • Sprenger120
    • 15. Februar 2010 um 18:47

    Weil du da versuchst eine Autoit interne Funktion zu überschreiben

    [autoit]


    $send = 0

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

    HotKeySet("{F6}", "_Send")

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

    While 1
    Sleep(100)
    WEnd

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

    Func _Send()
    Do
    Send(" ")
    $send = $send + 1
    Until $send = 65
    $send = 0
    EndFunc ;==>send

    [/autoit]

    So funzts

  • TCP/UDP-Query Sinvoll?

    • Sprenger120
    • 15. Februar 2010 um 15:46
    Zitat von DjDominik

    Muss mir nur rasch ICQ7 Runterladen, Dann können wir loslegen

    na ich weiß nicht was du unter rasch verstehst (1St.)

  • TCP/UDP-Query Sinvoll?

    • Sprenger120
    • 15. Februar 2010 um 14:39

    ich helfe mit (wenn du das willst) melde dich mal bei icq hast mich ja drinne

    //Edit: Ich würde Query rauslassen macht das ganze nur unnötig langsam und weil autoit eh nur 1 ne sache gleichzeitig würd das ne steinige sache

  • _GDIPlus_GraphicsReflectImageRect

    • Sprenger120
    • 15. Februar 2010 um 14:33

    Bei mir läufts einwandfrei: Win 7 x86; 3.3.4.0

  • Gui in eniem bestimmtem Fenster

    • Sprenger120
    • 14. Februar 2010 um 11:07

    Warum ist der Start Post gelöscht ?(

  • Teste deinen Schreib Speed

    • Sprenger120
    • 13. Februar 2010 um 22:30

    Sachen geändert siehe Post 1

  • TCP Problem bei 2 verbindungen.

    • Sprenger120
    • 13. Februar 2010 um 22:19

    Ja und warum kommt nix an von der 2ten Verbindung weil du keine 2 te zulässt

    hier habe ich mal ein Beispiel für einen Multikonnect Server


    [autoit]


    ;By Sprenger120
    TCPStartup()
    $MaxConnections = 2

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

    $Socket = TCPListen(@IPAddress1, 1500, $MaxConnections)

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

    Dim $Verbindungen[$MaxConnections]
    For $x = 0 To UBound($Verbindungen) - 1
    $Verbindungen[$x] = -1
    Next

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

    While
    For $x = 0 To UBound($Verbindungen) - 1
    If $Verbindungen[$x] = -1 Then
    $Verbindungen[$x] = TCPAccept($Socket)
    If $Verbindungen[$x] <> -1 Then ConsoleWrite("Neuer Client verbunden" & @CRLF)
    EndIf

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

    $Resv = TCPRecv($Verbindungen[$x], 1024)
    If @error And $Verbindungen[$x] <> -1 Then
    TCPCloseSocket($Verbindungen[$x])
    $Verbindungen[$x] = -1
    ConsoleWrite("Client hat den Server verlassen" & @CRLF)
    EndIf

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

    If $Resv <> "" Then MsgBox(0, "Empfangen", $Resv)
    Next
    WEnd

    [/autoit]
  • Bass problem

    • Sprenger120
    • 13. Februar 2010 um 17:14

    Puuh entlich

  • Bass problem

    • Sprenger120
    • 13. Februar 2010 um 17:09

    also so musst du $titelnummer declarieren

    [autoit]


    Global $titelnummer=0

    [/autoit]

    und $titelnummer+=1 muss nach _BASS_ChannelPlay($MusicHandle, 0)

    //Edit: Was hatte denn bei dir gefunzt das obere script oder das untere bestimmt das untere oder ?

  • Bass problem

    • Sprenger120
    • 13. Februar 2010 um 17:03

    Jezte ist alles klar probiere mal so

    [autoit]


    Case $Playliste
    $ARRPLAY = _ListViewToArray($hListView)
    $titelnummer+=1
    if $titelnummer=ubound($ARRPLAY) -1 then $titelnummer=0
    $MusicHandle = _BASS_StreamCreateFile(False,$ARRPLAY[$titelnummer][1],0,0,0)
    _BASS_ChannelPlay($MusicHandle, 0)

    [/autoit]

    oder so

    [autoit]


    Case $Playliste
    $ARRPLAY = _ListViewToArray($hListView)
    $titelnummer+=1
    if $titelnummer=ubound($ARRPLAY) -1 then $titelnummer=0
    $MusicHandle = _BASS_StreamCreateFile(False,$ARRPLAY[$titelnummer][1] & "\" &$ARRPLAY[$titelnummer][0] ,0,0,0)
    _BASS_ChannelPlay($MusicHandle, 0)

    [/autoit]
  • Bass problem

    • Sprenger120
    • 13. Februar 2010 um 16:57

    mach am besten man einen Screenshot von array Display (also wenn du bis gans nach oben gescrollt hast)

  • DeskStream

    • Sprenger120
    • 13. Februar 2010 um 16:55

    Super Seite aber mann muss gans schön suchen

    Sas Beste wärs wenn einer den DLL Namen wüsste was in Windows das Streamen ermöglicht

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™