Es kann dararan liegen das bei manchen PC´s in deinem Netzwerk die Netzwerkerkennung ausgeschaltet ist
Beiträge von Sprenger120
-
-
[autoit]
[/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 -
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 Memoryunterm Strich ist das genau so eine Idee wie einen Virenscanner in Autoit zu schrieben
-
Alles Gut UEZ und schön feiern!!
-
Spoiler anzeigen
[autoit]
[/autoit] [autoit][/autoit] [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#Region StartUp
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]#Region OPT
[/autoit] [autoit][/autoit] [autoit]
Opt("TrayMenuMode", 1)
Opt("MouseCoordMode", 0)
#EndRegion OPT#Region Tray
[/autoit] [autoit][/autoit] [autoit]
$uottray = TrayCreateItem("Anzeigen")
$totray = TrayCreateItem("Verstecken")
$deleate = TrayCreateItem("Schließen")
TraySetState()
#EndRegion Tray#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
#AutoIt3Wrapper_Res_Field=INR|Jurax-Multimedia
#AutoIt3Wrapper_Res_Field=ProductVersion|1.3
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****;Bass StartUp
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
_BASS_STARTUP(@ScriptDir & "\BASS.dll")
_Bass_Tags_Startup("BassTags.dll")
_BASS_Init(0, -1, 44100, 0, "")If @error Then
[/autoit] [autoit][/autoit] [autoit]
MsgBox(0, "Error", "Sound konnte nicht Initialisiert werden!")
Exit
EndIf#Region Register
[/autoit] [autoit][/autoit] [autoit]
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")#EndRegion Register
[/autoit] [autoit][/autoit] [autoit]#EndRegion StartUp
[/autoit] [autoit][/autoit] [autoit]#Region GUI
[/autoit] [autoit][/autoit] [autoit]
$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)#Region BIB Füllen
[/autoit] [autoit][/autoit] [autoit]
$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$rightVol = GUICtrlCreateProgress(8, 88, 236, 17)
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
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)GUISetState()
[/autoit] [autoit][/autoit] [autoit]
#EndRegion GUI#Region GDIstartup
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
_GUICtrlListView_SetColumnWidth($hListView, 0, $LVSCW_AUTOSIZE)
_GDIPlus_Startup()Global $hGraphics = _GDIPlus_GraphicsCreateFromHWND($hwnd)
[/autoit] [autoit][/autoit] [autoit]
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$iX = 120
[/autoit] [autoit][/autoit] [autoit]
$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)$fall_speed_l_threshold = 0
[/autoit] [autoit][/autoit] [autoit]
$fall_speed_r_threshold = 0
$equalizer_width = 24
$max_l = 0
$max_r = 0
$fall_speed = 5
$fire_up = 15$fft_start = 7
[/autoit] [autoit][/autoit] [autoit]
$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#Region Loop
[/autoit] [autoit][/autoit] [autoit]While(True)
[/autoit] [autoit][/autoit] [autoit]
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)$Msg = GUIGetMsg()
[/autoit] [autoit][/autoit] [autoit]
$tmsg = TrayGetMsg()
Switch $tmsgCase $uottray
[/autoit] [autoit][/autoit] [autoit]
GUISetState(@SW_SHOW)
Case $totray
GUISetState(@SW_HIDE)
Case $deleate
EXITF()
EndSwitch
Switch $MsgCase $Close, $GUI_EVENT_CLOSE
[/autoit] [autoit][/autoit] [autoit]
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)
NextEndSwitch
[/autoit] [autoit][/autoit] [autoit]WEnd
[/autoit] [autoit][/autoit] [autoit]#EndRegion Loop
[/autoit] [autoit][/autoit] [autoit]
$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'sFunc WM_DROPFILES_FUNC($hwnd, $msgID, $wParam, $lParam) ; diese Funktion wird benötigt, damit man auch mehrere Dateien droppen kann
[/autoit] [autoit][/autoit] [autoit]
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_FUNCFunc Aktualisieren()
[/autoit] [autoit][/autoit] [autoit]
$Sliderstatus = GUICtrlRead($progress_slider)
GUICtrlSetData($slots, $Sliderstatus)
EndFunc ;==>AktualisierenFunc WM_NOTIFY($hwnd, $msgID, $wParam, $lParam);Für Doppelcklick Erkennung
[/autoit] [autoit][/autoit] [autoit]
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_NOTIFYFunc _LeftDblClick()
[/autoit] [autoit][/autoit] [autoit]
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 ;==>_LeftDblClickFunc Display_Vis($eq = 1)
[/autoit] [autoit][/autoit] [autoit]
_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)If $max_l <= $LeftChLvl Then ;fire up higest line
[/autoit] [autoit][/autoit] [autoit]
$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
EndIfIf $max_r <= $rightChLvl Then
[/autoit] [autoit][/autoit] [autoit]
$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_VisFunc _SoundGetWaveVolume()
[/autoit] [autoit][/autoit] [autoit]
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 ;==>_SoundGetWaveVolumeFunc EXITF()
[/autoit] [autoit][/autoit] [autoit]
_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 ;==>EXITFFunc _ListViewToArray($hListView)
[/autoit] [autoit][/autoit] [autoit]
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 ;==>_ListViewToArrayFunc TAGOUT()
[/autoit] [autoit][/autoit] [autoit]
$tags = _Bass_Tags_Read($MusicHandle, "%TITL" & "-" & "%ARTI")
GUICtrlSetData($TITART, $tags)
EndFunc ;==>TAGOUTFunc _WM_PAINT($hwnd, $Msg, $wParam, $lParam)
[/autoit] [autoit][/autoit] [autoit]
_GDIPlus_GraphicsDrawImage($hGraphics, $hBitmapBuffer, 0, 0)
Return $GUI_RUNDEFMSG
EndFunc ;==>_WM_PAINTFunc _CreateLedBitmap($hGraphics, $sText, $iW, $iH, $iLedOffSet, $iLedSize, $iOnColor = 0xFFFFBB00, $iOffColor = 0x88111122, $sFont = "Arial")
[/autoit] [autoit][/autoit] [autoit]
$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#EndRegion Func's
[/autoit]probiere mal so
-
top super sache und das mit nicht eimal 100 zeilen code -
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
-
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 sekundenProblem 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 nochProblem 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
-
Weil du da versuchst eine Autoit interne Funktion zu überschreiben
[autoit]
[/autoit][autoit][/autoit][autoit]
$send = 0HotKeySet("{F6}", "_Send")
[/autoit][autoit][/autoit][autoit]While 1
[/autoit][autoit][/autoit][autoit]
Sleep(100)
WEndFunc _Send()
[/autoit]
Do
Send(" ")
$send = $send + 1
Until $send = 65
$send = 0
EndFunc ;==>sendSo funzts
-
Zitat von DjDominik
Muss mir nur rasch ICQ7 Runterladen, Dann können wir loslegen
na ich weiß nicht was du unter rasch verstehst (1St.)
-
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
-
Bei mir läufts einwandfrei: Win 7 x86; 3.3.4.0
-
Warum ist der Start Post gelöscht

-
Sachen geändert siehe Post 1
-
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]
[/autoit][autoit][/autoit][autoit]
;By Sprenger120
TCPStartup()
$MaxConnections = 2$Socket = TCPListen(@IPAddress1, 1500, $MaxConnections)
[/autoit][autoit][/autoit][autoit]Dim $Verbindungen[$MaxConnections]
[/autoit][autoit][/autoit][autoit]
For $x = 0 To UBound($Verbindungen) - 1
$Verbindungen[$x] = -1
NextWhile
[/autoit][autoit][/autoit][autoit]
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$Resv = TCPRecv($Verbindungen[$x], 1024)
[/autoit][autoit][/autoit][autoit]
If @error And $Verbindungen[$x] <> -1 Then
TCPCloseSocket($Verbindungen[$x])
$Verbindungen[$x] = -1
ConsoleWrite("Client hat den Server verlassen" & @CRLF)
EndIfIf $Resv <> "" Then MsgBox(0, "Empfangen", $Resv)
[/autoit]
Next
WEnd -
Puuh entlich
-
also so musst du $titelnummer declarieren
[autoit]
[/autoit]
Global $titelnummer=0und $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 ?
-
Jezte ist alles klar probiere mal so
[autoit]
[/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)oder so
[autoit]
[/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) -
mach am besten man einen Screenshot von array Display (also wenn du bis gans nach oben gescrollt hast)
-
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