Poste mal dein Programm.
Gruß,
UEZ
Poste mal dein Programm.
Gruß,
UEZ
Es startet Notepad und anschließend die Animation. Die Animation läuft solange, bis Notepad geschlossen wird.
Was hat die Animation mit Aero zu tun?
Gruß,
UEZ
Hier mal ein Beispiel:
;coded by UEZ build 2013-05-02, idea from http://tympanus.net/codrops/2012/1…ing-animations/
#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
#include <Memory.au3>
#include <GDIPlus.au3>
#include <WindowsConstants.au3>
Global $iProgram_PID = Run("notepad.exe")
[/autoit] [autoit][/autoit] [autoit]Global Const $hDwmApiDll = DllOpen("dwmapi.dll")
Global $sChkAero = DllStructCreate("int;")
DllCall($hDwmApiDll, "int", "DwmIsCompositionEnabled", "ptr", DllStructGetPtr($sChkAero))
Global $bAero = DllStructGetData($sChkAero, 1)
Global $fStep = 0.02
If Not $bAero Then $fStep = 1.25
_GDIPlus_Startup()
Global Const $STM_SETIMAGE = 0x0172
Global $iW = 400, $iH = 210
Global Const $hGUI = GUICreate("Rotating Bokeh", $iW, $iH, -1, -1, $WS_POPUPWINDOW, $WS_EX_TOPMOST)
GUISetBkColor(0)
Global Const $iPic = GUICtrlCreatePic("", 0, 0, $iW, $iH)
GUICtrlSetState(-1, $GUI_DISABLE)
WinSetTrans($hGUI, "", 0)
GUISetState()
Global $hHBmp_BG, $hB, $iSleep = 20
GUIRegisterMsg($WM_TIMER, "PlayAnim")
DllCall("user32.dll", "int", "SetTimer", "hwnd", $hGUI, "int", 0, "int", $iSleep, "int", 0)
Global $z, $iPerc
For $z = 1 To 255 Step $fStep
WinSetTrans($hGUI, "", $z)
Next
Do
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
_Exit()
EndSwitch
If Not ProcessExists($iProgram_PID) Then _Exit()
Until False
Func _Exit()
GUIRegisterMsg($WM_TIMER, "")
_WinAPI_DeleteObject($hHBmp_BG)
_GDIPlus_Shutdown()
GUIDelete()
Exit
EndFunc
Func PlayAnim()
$hHBmp_BG = _GDIPlus_RotatingBokeh($iW, $iH, "Please wait while installing Java ...")
$hB = GUICtrlSendMsg($iPic, $STM_SETIMAGE, 0, $hHBmp_BG) ;$IMAGE_BITMAP = 0
If $hB Then _WinAPI_DeleteObject($hB)
_WinAPI_DeleteObject($hHBmp_BG)
$iPerc += 0.1
If $iPerc > 99.9 Then $iPerc = 0
EndFunc ;==>PlayAnim
Func _GDIPlus_RotatingBokeh($iW, $iH, $sString = "Please wait...", $bHBitmap = True)
Local Const $hBrushBall1 = _GDIPlus_BrushCreateSolid(0xE004AC6B)
Local Const $hBrushBall2 = _GDIPlus_BrushCreateSolid(0xC0E0AB27)
Local Const $hBrushBall3 = _GDIPlus_BrushCreateSolid(0xD081B702)
Local Const $hBrushBall4 = _GDIPlus_BrushCreateSolid(0xB0E70339)
Local Const $hPen = _GDIPlus_PenCreate(0xFF303030)
DllCall($ghGDIPDll, "uint", "GdipSetPenLineJoin", "handle", $hPen, "int", 2)
Local $hBitmap = DllCall($ghGDIPDll, "uint", "GdipCreateBitmapFromScan0", "int", $iW, "int", $iH, "int", 0, "int", $GDIP_PXF32ARGB, "ptr", 0, "int*", 0)
$hBitmap = $hBitmap[6]
Local Const $hCtxt = _GDIPlus_ImageGetGraphicsContext($hBitmap)
_GDIPlus_GraphicsSetSmoothingMode($hCtxt, 2)
Local Const $hBmp_BG = _GDIPlus_BMPFromMemory(_Background())
Local $hBrushTexture = DllCall($ghGDIPDll, "uint", "GdipCreateTexture", "handle", $hBmp_BG, "int", 0, "int*", 3)
$hBrushTexture = $hBrushTexture[3]
_GDIPlus_BitmapDispose($hBmp_BG)
_GDIPlus_GraphicsFillRect($hCtxt, 0, 0, $iW, $iH, $hBrushTexture)
Local Const $fDeg = ACos(-1) / 180, $iRadius = 40, $iBallSize = $iRadius / 1.77, $iCircleSize = $iBallSize + 2 * $iRadius, $iBallSize2 = $iBallSize / 2, _
$iCircleSize2 = $iCircleSize / 2, $fFontSize = 11, $iW2 = -1 + $iW / 2, $iH2 = -1 + $iH / 2
Local Static $iAngle = 0
DllCall($ghGDIPDll, "int", "GdipDrawEllipse", "handle", $hCtxt, "handle", $hPen, "float", $iW2 - $iCircleSize2, "float", $iH2 - $iCircleSize2, "float", $iCircleSize, "float", $iCircleSize)
DllCall($ghGDIPDll, "int", "GdipFillEllipse", "handle", $hCtxt, "handle", $hBrushBall1, "float", -$iBallSize2 + $iW2 + Cos(2.25 * $iAngle * $fDeg) * $iRadius, "float", -$iBallSize2 + $iH2 + Sin(2.25 * $iAngle * $fDeg) * $iRadius, "float", $iBallSize, "float", $iBallSize)
DllCall($ghGDIPDll, "int", "GdipFillEllipse", "handle", $hCtxt, "handle", $hBrushBall2, "float", -$iBallSize2 + $iW2 + Cos(1.75 * $iAngle * $fDeg) * $iRadius, "float", -$iBallSize2 + $iH2 + Sin(1.75 * $iAngle * $fDeg) * $iRadius, "float", $iBallSize, "float", $iBallSize)
DllCall($ghGDIPDll, "int", "GdipFillEllipse", "handle", $hCtxt, "handle", $hBrushBall3, "float", -$iBallSize2 + $iW2 + Cos(1.66 * $iAngle * $fDeg) * $iRadius, "float", -$iBallSize2 + $iH2 + Sin(1.66 * $iAngle * $fDeg) * $iRadius, "float", $iBallSize, "float", $iBallSize)
DllCall($ghGDIPDll, "int", "GdipFillEllipse", "handle", $hCtxt, "handle", $hBrushBall4, "float", -$iBallSize2 + $iW2 + Cos(1.33 * $iAngle * $fDeg) * $iRadius, "float", -$iBallSize2 + $iH2 + Sin(1.33 * $iAngle * $fDeg) * $iRadius, "float", $iBallSize, "float", $iBallSize)
$iAngle += 2.5
Local Const $hFormat = _GDIPlus_StringFormatCreate()
Local Const $hFamily = _GDIPlus_FontFamilyCreate("Arial")
Local Const $hFont = _GDIPlus_FontCreate($hFamily, $fFontSize, 2)
Local Const $hBrushTxt = _GDIPlus_BrushCreateSolid(0xFFFFFFFF)
Local Const $tLayout = _GDIPlus_RectFCreate(0, 0, 0, 0)
Local Const $aInfo = _GDIPlus_GraphicsMeasureString($hCtxt, $sString, $hFont, $tLayout, $hFormat)
DllStructSetData($tLayout, "X", ($iW - DllStructGetData($aInfo[0], "Width")) / 2)
DllStructSetData($tLayout, "Y", $iH / 2 + $iRadius + $iBallSize)
_GDIPlus_GraphicsDrawStringEx($hCtxt, $sString, $hFont, $tLayout, $hFormat, $hBrushTxt)
_GDIPlus_FontDispose($hFont)
_GDIPlus_FontFamilyDispose($hFamily)
_GDIPlus_StringFormatDispose($hFormat)
_GDIPlus_BrushDispose($hBrushTxt)
_GDIPlus_BrushDispose($hBrushTexture)
_GDIPlus_GraphicsDispose($hCtxt)
_GDIPlus_BrushDispose($hBrushBall1)
_GDIPlus_BrushDispose($hBrushBall2)
_GDIPlus_BrushDispose($hBrushBall3)
_GDIPlus_BrushDispose($hBrushBall4)
_GDIPlus_PenDispose($hPen)
If $bHBitmap Then
Local $hHBITMAP = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hBitmap)
_GDIPlus_BitmapDispose($hBitmap)
Return $hHBITMAP
EndIf
Return $hBitmap
EndFunc ;==>_GDIPlus_RotatingBokeh
;==================================================================================================================================
; Function Name: _GDIPlus_BMPFromMemory
; Description: Loads an image which is saved as a binary string and converts it to a bitmap or hbitmap
;
; Parameters: $bImage: the binary string which contains any valid image which is supported by GDI+
; Optional: $hHBITMAP: if false a bitmap will be created, if true a hbitmap will be created
;
; Remark: hbitmap format is used generally for GUI internal images, $bitmap is more a GDI+ image format
; Don't forget _GDIPlus_Startup() and _GDIPlus_Shutdown()
;
; Requirement(s): GDIPlus.au3, Memory.au3 and _WinAPI_BitmapCreateDIBFromBitmap() from WinAPIEx.au3
; Return Value(s): Success: handle to bitmap (GDI+ bitmap format) or hbitmap (WinAPI bitmap format),
; Error: 0
; Error codes: 1: $bImage is not a binary string
; 2: unable to create stream on HGlobal
; 3: unable to create bitmap from stream
;
; Author(s): UEZ
; Additional Code: thanks to progandy for the MemGlobalAlloc and tVARIANT lines and
; Yashied for _WinAPI_BitmapCreateDIBFromBitmap() from WinAPIEx.au3
; Version: v0.98 Build 2012-08-29 Beta
;===================================================================================================================================
Func _GDIPlus_BMPFromMemory($bImage, $hHBITMAP = False)
If Not IsBinary($bImage) Then Return SetError(1, 0, 0)
Local $aResult
Local Const $memBitmap = Binary($bImage) ;load image saved in variable (memory) and convert it to binary
Local Const $len = BinaryLen($memBitmap) ;get length of image
Local Const $hData = _MemGlobalAlloc($len, $GMEM_MOVEABLE) ;allocates movable memory ($GMEM_MOVEABLE = 0x0002)
Local Const $pData = _MemGlobalLock($hData) ;translate the handle into a pointer
Local $tMem = DllStructCreate("byte[" & $len & "]", $pData) ;create struct
DllStructSetData($tMem, 1, $memBitmap) ;fill struct with image data
_MemGlobalUnlock($hData) ;decrements the lock count associated with a memory object that was allocated with GMEM_MOVEABLE
$aResult = DllCall("ole32.dll", "int", "CreateStreamOnHGlobal", "handle", $pData, "int", True, "ptr*", 0) ;Creates a stream object that uses an HGLOBAL memory handle to store the stream contents
If @error Then Return SetError(2, 0, 0)
Local Const $hStream = $aResult[3]
$aResult = DllCall($ghGDIPDll, "uint", "GdipCreateBitmapFromStream", "ptr", $hStream, "int*", 0) ;Creates a Bitmap object based on an IStream COM interface
If @error Then Return SetError(3, 0, 0)
Local Const $hBitmap = $aResult[2]
Local $tVARIANT = DllStructCreate("word vt;word r1;word r2;word r3;ptr data; ptr")
DllCall("oleaut32.dll", "long", "DispCallFunc", "ptr", $hStream, "dword", 8 + 8 * @AutoItX64, _
"dword", 4, "dword", 23, "dword", 0, "ptr", 0, "ptr", 0, "ptr", DllStructGetPtr($tVARIANT)) ;release memory from $hStream to avoid memory leak
$tMem = 0
$tVARIANT = 0
If $hHBITMAP Then
Local Const $hHBmp = _WinAPI_BitmapCreateDIBFromBitmap($hBitmap)
_GDIPlus_BitmapDispose($hBitmap)
Return $hHBmp
EndIf
Return $hBitmap
EndFunc ;==>_GDIPlus_BMPFromMemory
Func _WinAPI_BitmapCreateDIBFromBitmap($hBitmap) ;create 32-bit bitmap v5 (alpha channel supported)
Local $tBIHDR, $aRet, $tData, $pBits, $hResult = 0
$aRet = DllCall($ghGDIPDll, 'uint', 'GdipGetImageDimension', 'ptr', $hBitmap, 'float*', 0, 'float*', 0)
If (@error) Or ($aRet[0]) Then Return 0
$tData = _GDIPlus_BitmapLockBits($hBitmap, 0, 0, $aRet[2], $aRet[3], $GDIP_ILMREAD, $GDIP_PXF32ARGB)
$pBits = DllStructGetData($tData, 'Scan0')
If Not $pBits Then Return 0
$tBIHDR = DllStructCreate('dword bV5Size;long bV5Width;long bV5Height;word bV5Planes;word bV5BitCount;dword bV5Compression;' & _ ;http://msdn.microsoft.com/en-us/library/…1(v=vs.85).aspx
'dword bV5SizeImage;long bV5XPelsPerMeter;long bV5YPelsPerMeter;dword bV5ClrUsed;dword bV5ClrImportant;' & _
'dword bV5RedMask;dword bV5GreenMask;dword bV5BlueMask;dword bV5AlphaMask;dword bV5CSType;' & _
'int bV5Endpoints[3];dword bV5GammaRed;dword bV5GammaGreen;dword bV5GammaBlue;dword bV5Intent;' & _
'dword bV5ProfileData;dword bV5ProfileSize;dword bV5Reserved')
DllStructSetData($tBIHDR, 'bV5Size', DllStructGetSize($tBIHDR))
DllStructSetData($tBIHDR, 'bV5Width', $aRet[2])
DllStructSetData($tBIHDR, 'bV5Height', $aRet[3])
DllStructSetData($tBIHDR, 'bV5Planes', 1)
DllStructSetData($tBIHDR, 'bV5BitCount', 32)
DllStructSetData($tBIHDR, 'bV5Compression', 0) ; $BI_BITFIELDS = 3, $BI_RGB = 0, $BI_RLE8 = 1, $BI_RLE4 = 2, $RGBA = 0x41424752
DllStructSetData($tBIHDR, 'bV5SizeImage', $aRet[3] * DllStructGetData($tData, 'Stride'))
DllStructSetData($tBIHDR, 'bV5AlphaMask', 0xFF000000)
DllStructSetData($tBIHDR, 'bV5RedMask', 0x00FF0000)
DllStructSetData($tBIHDR, 'bV5GreenMask', 0x0000FF00)
DllStructSetData($tBIHDR, 'bV5BlueMask', 0x000000FF)
DllStructSetData($tBIHDR, 'bV5CSType', 2) ; LCS_WINDOWS_COLOR_SPACE = 2
DllStructSetData($tBIHDR, 'bV5Intent', 4) ; $LCS_GM_IMA
$hResult = DllCall('gdi32.dll', 'ptr', 'CreateDIBSection', 'hwnd', 0, 'ptr', DllStructGetPtr($tBIHDR), 'uint', 0, 'ptr*', 0, 'ptr', 0, 'dword', 0)
If (Not @error) And ($hResult[0]) Then
DllCall('gdi32.dll', 'dword', 'SetBitmapBits', 'ptr', $hResult[0], 'dword', $aRet[2] * $aRet[3] * 4, 'ptr', DllStructGetData($tData, 'Scan0'))
$hResult = $hResult[0]
Else
$hResult = 0
EndIf
_GDIPlus_BitmapUnlockBits($hBitmap, $tData)
$tData = 0
$tBIHDR = 0
Return $hResult
EndFunc ;==>_WinAPI_BitmapCreateDIBFromBitmap
;Code below was generated by: 'File to Base64 String' Code Generator v1.12 Build 2013-03-27
[/autoit] [autoit][/autoit] [autoit]Func _Background($bSaveBinary = False, $sSavePath = @ScriptDir)
Local $Background
$Background &= '/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wgARCAEAAQADASIAAhEBAxEB/8QAFwABAQEBAAAAAAAAAAAAAAAAAAECCP/EABQBAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhADEAAAAec5YWahFEWABRALKCFgVAAsFgUAEUFglEWFQUEKEFlgBUogFpAEFlCWFQUCAsoIUEAABQRYLKEBQShYRQBALAAKZtgUJYUgoSoAFgspYhZYFEKRYWUSwFhQAACFgUhYCwWWAAACwUAhZYVAWAAAAAhQAALKIFlhqIUCURqEUQpFEKRRmgBZYFgspAWAKQogWBUCgAlgsApJoXNhQQBYLKQCygCAWGs2CwVBU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gLXHMGeYeTKoS5dL6SzFdxwcMXinfUEnr'
$Background &= 'G86ltb46g01fM7u5dOL3KyYID01ELYyLM/zxBP8AyK3J9TSQWgrTuIGSWEUZ/wAnLjmDtQ5lA60QIVliWNeEtaPPUwRY+05CNRZpG425V32EKzhnL0Jnh+o6ZjaOY4QY+DjEsUy/ca764gW7N9RO+2Axg+PMKsxxMFtcfmdD9LKF13+ILFH2SgTWXsluGSXMKyO4WlXOwzqGWeUotv5nLaAfCCwUGjcxXIZiq8kzYntF+ZioljC9js6jeqa6iILcbEzG1EbeWI7t0xKT0gMa4gVqtzsSFHiGBnp17xNlqKToK+2W4y8/iWhhfiXhbz1NmoZcQN5rfcbQtPmG8pfrDWjfc//Z'
Local $bString = Binary(_Base64Decode($Background))
If $bSaveBinary Then
Local $hFile = FileOpen($sSavePath & "\stressed_linen.jpg", 18)
FileWrite($hFile, $bString)
FileClose($hFile)
EndIf
Return $bString
EndFunc ;==>_Background
Func _Base64Decode($sB64String)
Local $a_Call = DllCall("Crypt32.dll", "bool", "CryptStringToBinaryA", "str", $sB64String, "dword", 0, "dword", 1, "ptr", 0, "dword*", 0, "ptr", 0, "ptr", 0)
If @error Or Not $a_Call[0] Then Return SetError(1, 0, "")
Local $a = DllStructCreate("byte[" & $a_Call[5] & "]")
$a_Call = DllCall("Crypt32.dll", "bool", "CryptStringToBinaryA", "str", $sB64String, "dword", 0, "dword", 1, "struct*", $a, "dword*", $a_Call[5], "ptr", 0, "ptr", 0)
If @error Or Not $a_Call[0] Then Return SetError(2, 0, "")
Return DllStructGetData($a, 1)
EndFunc ;==>_Base64Decode
Gruß,
UEZ
es wird immer nocht eine Version 3.3.8 öder höher gefordert...
habe autoit-v3.3.10.2-setup installiert, oder ist der screeneditor gemeint, habe ich den SciTEAutoIt3 installiert, wird auch nicht erkannt, bzw deine scripte fordern immer noch eine höhere Version, warum???Ich führe das java update aus und möchte den Prozess anzeigen, das macht mein script aber nur wenn das update fertig, dann sprint er zur msgbox...
Kommentiere die Zeile aus und probiere es nochmals. Die Versionsstrings so miteinander zu vergleichen, war wohl nicht richtig. ![]()
Falls Funktionen bereits vorhanden sind, dann diese auch auskommentieren.
Ich hatte die Skripte mit 3.8.8.1 geschrieben...
Gruß,
UEZ
Kannst ja die Prozente weglassen und anstelle einen Text reinschreiben.
Gruß,
UEZ
Schaue hier mal rein, ob du was verwenden kannst: GDI+ Animated Loading / Waiting Screens
Gruß,
UEZ
Deshalb habe ich noch die Exe mit hinzugefügt.
Das liegt daran, dass der Code nur ab Version 3.3.11.2+ läuft. In Version 3.3.10.x sind Bugs enthalten, wo einige Features nicht "sauber" funktionieren.
Einiges läuft anders auf Win8 (PrintWindow Funktion funktioniert nicht immer unter Win8) - das muss ich noch im Detail testen... Alternativ in der Liste mit der rechten Maustaste doppelt klicken.
Gruß,
UEZ
Hmm, interessant, warum einige diese Probleme haben!
Ich habe die Zip Version hochgeladen -> siehe Beitrag 1.
Gruß,
UEZ
Mit WinRAR v5.01 kann ich das Archiv extrahieren. Probiere es mal mit 7-Zip direkt: http://dl.7-zip.org/7z932.exe
Gruß,
UEZ
Ich habe das Archiv geprüft und es ist in Ordnung. Mit was öffnest du die .7z Datei?
Gruß,
UEZ
Programm gibt bei lokaler installation ein PopUp Fenster aus, das die NFO Dateil fehlt oder beschädigt ist und startet nicht.
Die NFO ist nach Durchsicht des Ordners nincl. Unterordner nicht vorhanden.Was machen?
Welches Tool benutzt du zum Entpacken des 7-Zip Archives? Am besten die neuste 7-Zip benutzen, da ich immer mit LZMA2 komprimiere. ![]()
Gruß,
UEZ
Neue Version -> Windows Screenshooter v1.76 Build 2014-01-21 (siehe Beitrag #1)!
Benötigt AutoIt Version 3.3.11.2 oder höher!, falls ihr den Code aus dem Editor starten wollt. Ansonsten Exe herunterladen.
Bitte testet mal, ob soweit alles funzt.
Feedback erwünscht! ![]()
Danke ![]()
Gruß,
UEZ
Wenn man sich die Verteilung der Felder genauer betrachtet, so stellt man fest, dass Felder mit niedrigen Punkten häufiger vorhanden sind, als mit hohen Punkten.
Ich habe es fast hinbekommen 5x hintereinander 100 Punkte zu bekommen, da ich immer versucht habe, genau den gleichen "Drehimpuls" zu geben.
Deswegen sollten die Drehungen ruhig mehr Zufall sein, wobei die Wahrscheinlichkeit gleich bleibt, aber man weniger Einfluss hat.
Gruß,
UEZ
Ist klasse geworden. ![]()
ZitatDie Randomwerte etwas "entschärft"...
Für die Drehung des Rades würde ich bisschen mehr Zufall hinein bringen, sogar noch "schärfer" als zuvor, da man ansonsten relativ einfach die Felder bestimmen kann.
Gruß,
UEZ
Du kannst auch Brüche durch den größten gemeinsamen Teiler kürzen.
Beispiel:
[autoit]
ConsoleWrite("18.8 = " & Float2Frac(18.8) & @LF)
ConsoleWrite("0.75 = " & Float2Frac(0.75) & @LF)
Func Float2Frac($fFloat)
$iDec = StringLen(StringRegExpReplace($fFloat, "\d+\.(\d*)", "\1"))
$iZaehler = $fFloat * 10^$iDec
$iNenner = 10^$iDec
$iGGT = ggT($iZaehler, $iNenner)
Return $iZaehler / $iGGT & " / " & $iNenner / $iGGT
EndFunc
Func ggT($a, $b) ;coded by UEZ 2012
If Not IsInt($a) Then Return SetError(1, 0, 0)
If Not IsInt($b) Then Return SetError(2, 0, 0)
If $a = $b Then Return Abs($a)
If Not $a And $b Then Return Abs($a)
If $a And Not $b Then Return Abs($b)
If ($a And $b = 1) Or ($a = 1 And $b) Then Return 1
Local $iMod
Do
$iMod = Mod($a, $b)
If Not $iMod Then ExitLoop
$a = $b
$b = $iMod
Until False
Return $b
EndFunc
Gruß,
UEZ
Ein paar Sound Effekte wäre auch nicht schlecht, z.B. bei der Null, Jack oder 0.
Das Drehrad ist schön geworden.
Gruß,
UEZ
Nein, nur die Funktion _CaptainFuture() musst du durch deine in Binär String umgewandelte MP3 umtauschen.
Gruß,
UEZ
Guckst du:
Einfach downloaden, kompilieren und die Exe ausführen. Damit sollte deine Frage
Zitatohne die bass.dll im selben ordner wie die exe läuft es nicht
kann man dll ihrgendwie mitcompilen?
beantwortet sein, nur das hier FMOD.dll benutzt wird.
Gruß,
UEZ
Den um 00:01 Uhr weiter oben!
Gruß,
UEZ