Geht mit folgenden Funktionen:
[autoit]
_SoundPlay
_SoundStop
_SoundPause
_SoundResume
Geht mit folgenden Funktionen:
[autoit]
_SoundPlay
_SoundStop
_SoundPause
_SoundResume
DIe letzte Version von Koda (Beta 1.7.2.4 build 214) ist vom 18.02.2010 also von gestern. Keine Ahnung was da nun angestaubt ist *lach*.
Beta 1.7.2.4 build 214 (2010-02-18 )
* 2010-02-17 - Changed: styles definition changed to new method of handling styles
* 2010-02-17 - Added: support for handling state for certain styles [FS#107]
* 2010-02-16 - Added: option to keep tree fully expanded or not
* 2010-02-15 - Changed: object tree now is not mandatory to be fully expanded
* 2010-02-14 - Added: editable control's description in the object tree
Beta 1.7.2.3 build 207 (2010-02-11)
* 2010-02-10 - Changed: cleanups in property inspector code
* 2010-02-09 - Changed: control styles editor is fully rewritten to support multiple selection
* 2010-02-05 - Fixed: serious flaw in translator [FS#101] (thanks Tlem)
Beta 1.7.2.2 build 204 (2010-02-04)
* 2010-02-04 - Added: option to not generate ImageList itself when using for Listview/Treeview
* 2010-02-03 - Added: warning if user have outdated «styles.xml» file
* 2010-02-03 - Added: forgotten styles for Toolbar buttons
* 2010-02-03 - Added: ability to generate TreeView with icons
* 2010-02-03 - Added: ability to generate ListView with icons
* 2010-02-03 - Fixed: visual appearance of ListView control [FS#86]
* 2010-02-02 - Added: checking of actual clipboard content on paste [FS#7][FS#57]
* 2010-02-02 - Added: ability to save settings in the AppData folder under restricted account
* 2010-02-02 - Fixed: crash when running Koda first time under restricted account (thanks Sh3llC043r)
* 2010-02-02 - Fixed: small cosmetic issue with translation files (thanks Zedna)
* 2010-02-02 - Fixed: various bugs with Graphic editor (thanks Zedna)
* 2010-02-01 - Added: ability to generate tabs with icons (GUITab.au3 incluse used)
* 2010-02-01 - Fixed: wrong styles visually appearing after form loading [FS#83] (thanks monter.FM)
* 2010-02-01 - Fixed: events for menus generated in wrong place [FS#78]
* 2010-02-01 - Fixed: event for Tab generated in wrong place [FS#87]
* 2010-02-01 - Added: forgotten Icon property for TrayMenu
* 2010-02-01 - Added: ability to copy Dummy controls [FS#60]
* 2010-02-01 - Changed: redone a bit invisible components handling (internal)
* 2010-02-01 - Changed: all Dummy controls are generating in one place [FS#51]
* 2010-02-01 - Fixed: generating of custom image path with macro [FS#68]
* 2010-02-01 - Fixed: index for GUI icon was not generated [FS#80]
* 2010-01-31 - Fixed: enabled states for different items [FS#95] (thanks Tlem)
* 2010-01-31 - Fixed: wrong include for Group [FS#90]
* 2010-01-31 - Added: French language file (thanks Tlem)
* 2009-08-11 - Added: Chinese(Traditional) language file (thanks rexx)
* 2009-08-03 - Fixed: form position not reloaded when position is poFixed
* 2009-08-03 - Fixed: flaw in saving form options (thanks martin)
Alles anzeigenIch habe mal versucht den LEDs mehr Volumen zu geben!
Hier das Resultat:
Spoiler anzeigen
[autoit][/autoit] [autoit][/autoit] [autoit]
;http://www.autoit.de/index.php?page=Thread&threadID=17855
#include <GDIPlus.au3>
#include <WinAPI.au3>
#include <WindowsConstants.au3>
#include <GDIPlusConstants.au3>
#include <GUIConstantsEx.au3>
Opt("GUIOnEventMode", 1)Global $iX = 0, $iW, $iStep = 24
[/autoit] [autoit][/autoit] [autoit]
Global $w = 800, $h = 400
_GDIPlus_Startup()
Global $hGui = GUICreate("LED LaufSchrift", $w, $h)
;~ GUISetBkColor(0x000000)
GUISetOnEvent(-3, "_Exit")
GUISetState()Global $hGraphics = _GDIPlus_GraphicsCreateFromHWND($hGui)
[/autoit] [autoit][/autoit] [autoit]
Global $hBitmapBuffer = _GDIPlus_BitmapCreateFromGraphics($w, $h, $hGraphics)
Global $hGraphicsBuffer = _GDIPlus_ImageGetGraphicsContext($hBitmapBuffer)
_GDIPlus_GraphicsClear($hGraphics, 0xFF000000)
Global $hBitmapLed = _CreateLedBitmap($hGraphics, "LED Laufschrift mit GDI+ erstellt von Eukalyptus", $w, $h, $iStep, $iStep, 0xFFFFF030, 0x98101000)
;Global $hBitmapLed = _CreateLedBitmap($hGraphics, "Dies ist eine Laufschrift!", 800, 200, $iStep, $iStep, 0xFF00FF00, 0x66000000)
$iW = @extendedGUIRegisterMsg($WM_PAINT, "_WM_PAINT")
[/autoit] [autoit][/autoit] [autoit]While 1
[/autoit] [autoit][/autoit] [autoit]
$iX -= $iStep
If $iX + $iW < 0 Then $iX += $iW
_GDIPlus_GraphicsDrawImage($hGraphicsBuffer, $hBitmapLed, $iX, 0)
_GDIPlus_GraphicsDrawImage($hGraphicsBuffer, $hBitmapLed, $iX + $iW, 0)
_WinAPI_RedrawWindow($hGui, 0, 0, $RDW_INTERNALPAINT)
Sleep(60)
WEndFunc _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 = 0xF0FFFF00, $iOffColor = 0x88111122, $sFont = "Arial")
[/autoit] [autoit][/autoit] [autoit]
$sText = StringUpper(StringReplace($sText,@LF,""))
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($iW, 0, 0, 0)
Local $aInfo = _GDIPlus_GraphicsMeasureString($hGraphics, $sText, $hFont, $tLayout, $hFormat)
Local $iWidth = Ceiling(DllStructGetData($aInfo[0], "Width")) + $iW
$iWidth -= Mod($iWidth, $iLedOffSet)
Local $iHeight = Ceiling(DllStructGetData($aInfo[0], "Height"))
DllStructSetData($aInfo[0], "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)
Local $hBrush = _GDIPlus_BrushCreateSolid($iOnColor)
Local $hPen = _GDIPlus_PenCreate()
_GDIPlus_GraphicsClear($hGraphicsTxt, $iOffColor)
_GDIPlus_GraphicsDrawStringEx($hGraphicsTxt, $sText, $hFont, $aInfo[0], $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)
Local $hBrushGrad, $hPath
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
$hPath = _GDIPlus_CreatePath()
_GDIPlus_AddPathEllipse($hPath, $col, $row, $iLedSize, $iLedSize)
$hBrushGrad = _GDIPlus_CreatePathGradientFromPath($hPath)
_GDIPlus_SetLineGammaCorrection($hBrushGrad, True)
_GDIPlus_SetPathGradientSurroundColorsWithCount($hBrushGrad, $iOffColor)
_GDIPlus_SetPathGradientCenterColor($hBrushGrad, $iOnColor)
_GDIPlus_FillPath($hGraphicsLed, $hBrushGrad, $hPath)
_GDIPlus_ClosePathFigure($hPath)
_GDIPlus_GraphicsDrawEllipse($hGraphicsLed, $col, $row, $iLedSize, $iLedSize, $hPen)
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_PenDispose($hPen)
_GDIPlus_BrushDispose($hBrushGrad)
_GDIPlus_PathDispose($hPath)
_GDIPlus_BrushDispose($hBrush)
_GDIPlus_BrushDispose($hBrushOff)
_GDIPlus_BitmapDispose($hBitmapTxt)
_GDIPlus_GraphicsDispose($hGraphicsTxt)
_GDIPlus_GraphicsDispose($hGraphicsLed)
Return SetExtended($iWidth, $hBitmapLed)
EndFunc ;==>_CreateLedBitmapFunc _Exit()
[/autoit] [autoit][/autoit] [autoit]
_GDIPlus_BitmapDispose($hBitmapLed)
_GDIPlus_GraphicsDispose($hGraphicsBuffer)
_GDIPlus_BitmapDispose($hBitmapBuffer)
_GDIPlus_GraphicsDispose($hGraphics)
_GDIPlus_Shutdown()
Exit
EndFunc ;==>_ExitFunc _GDIPlus_CreatePath()
[/autoit] [autoit][/autoit] [autoit]
Local $hPath, $res
$hPath = DllCall($ghGDIPDll, "int", "GdipCreatePath", "int", 0, "int*", 0)
Local $res = "GdipCreatePath " & Hex($hPath[2]) & @CRLF
Return $hPath[2]
EndFuncFunc _GDIPlus_AddPathEllipse($hPath, $iX, $iY, $iWidth, $iHeight)
[/autoit] [autoit][/autoit] [autoit]
Local $aResult, $res
$aResult = DllCall($ghGDIPDll, "int", "GdipAddPathEllipse", "hwnd", $hPath, "int", _WinAPI_FloatToInt($iX), "int", _WinAPI_FloatToInt($iY), "int", _WinAPI_FloatToInt($iWidth), "int", _WinAPI_FloatToInt($iHeight))
EndFuncFunc _GDIPlus_CreatePathGradientFromPath($hPath)
[/autoit] [autoit][/autoit] [autoit]
Local $hBrushGrad
$hBrushGrad = DllCall($ghGDIPDll, "int", "GdipCreatePathGradientFromPath", "hwnd", $hPath, "int*", 0)
Return $hBrushGrad[2]
EndFuncFunc _GDIPlus_SetLineGammaCorrection($hBrush, $useGammaCorrection = True)
[/autoit] [autoit][/autoit] [autoit]
Local $aResult
$aResult = DllCall($ghGDIPDll, "int", "GdipSetLineGammaCorrection", "hwnd", $hBrush, "int", $useGammaCorrection)
Return $aResult[0]
EndFuncFunc _GDIPlus_SetPathGradientCenterColor($hBrush, $iARGB)
[/autoit] [autoit][/autoit] [autoit]
Local $aResult
$aResult = DllCall($ghGDIPDll, "int", "GdipSetPathGradientCenterColor", "hwnd", $hBrush, "int", $iARGB)
If @error Then Return SetError(@error, @extended, False)
Return $aResult
EndFuncFunc _GDIPlus_FillPath($hGraphic, $hBrushGrad, $hPath)
[/autoit] [autoit][/autoit] [autoit]
DllCall($ghGDIPDll, "int", "GdipFillPath", "hwnd", $hGraphic, "hwnd", $hBrushGrad, "hwnd", $hPath)
Return
EndFuncFunc _GDIPlus_SetPathGradientSurroundColorsWithCount($hBrush, $aArgb)
[/autoit] [autoit][/autoit] [autoit]
Local $iI, $iCount, $aResult, $res, $x, $pArgb
If IsArray($aArgb) Then
$iCount = UBound($aArgb)
$tArgb = DllStructCreate("int[" & $iCount & "]")
$pArgb = DllStructGetPtr($tArgb)
For $iI = 0 To $iCount - 1
DllStructSetData($tArgb, 1, $aArgb[$iI], $iI + 1)
Next
Else
$iCount = 1
$tArgb = DllStructCreate("int")
$pArgb = DllStructGetPtr($tArgb)
DllStructSetData($tArgb, 1, $aArgb, 1)
EndIf
$aResult = DllCall($ghGDIPDll, "int", "GdipSetPathGradientSurroundColorsWithCount", "hwnd", $hBrush, "int", $pArgb, "int*", $iCount)
If @error Then Return SetError(@error, @extended, 0)
Return $aResult
EndFuncFunc _GDIPlus_ClosePathFigure($hPath)
[/autoit] [autoit][/autoit] [autoit]
$aResult1 = DllCall($ghGDIPDll, "int", "GdipClosePathFigure", "hwnd", $hPath)
Return
EndFuncFunc _GDIPlus_PathDispose($hPath)
[/autoit] [autoit][/autoit] [autoit]
Local $aResult = DllCall($ghGDIPDll, "uint", "GdipDeletePath", "hwnd", $hPath)If @error Then Return SetError(@error, @extended, False)
[/autoit]
$GDIP_STATUS = $aResult[0]
Return $aResult[0] = 0
EndFunc
Gruß,
UEZ
Hat schon was lustiges inzwischen. Wieder eine modifizierte Sache von dir, die bei mir unter Win 7 nicht geht XD.
Weil es ja auch anderer Casezweig ist.
Also wenn die Ordner bei dir lokal auch so hast dann ist das dein Fehler:
[autoit]FileInstall("C:\main.swf",@scriptdir & "\DataSnaX\main.swf")
FileInstall("C:\loader.swf",@scriptdir & "\DataSnaX\loader.swf")
FileInstall("C:\image1.bmp",@scriptdir & "\DataSnaX\image1.bmp")
da Fehlt das "Data".
Und hier
[autoit]$Flash.Movie = @Scriptdir & "\DataSnaX\loader.swf?mainfile=C:\main.swf"
[/autoit]du entpackst das nach dem starten ja nach
[autoit]@scriptdir & "\DataSnaX\main.swf"
[/autoit]Willst du nun ADSIEdit über Autoit steuern oder direkt mit Autoit auf die ADS zugreifen?
Für den zweiten Fall schau mal hier: http://www.autoitscript.com/forum/index.php?showtopic=37378&hl=Active+Directory
Achso dann ist
[autoit]_GUICtrlListBox_Sort
[/autoit]das was du suchst.
*g* durch deine Modifikationen gehts garnichtmehr.
IniRead
IniWrite
GUICtrlSetData
Bis zum ersten, kann auch wie gesagt daher nicht gehen da die Class erst nach einem Click in das Feld sich zu "Edit" ändert und davor "ToolbarWindow32" ist.
Oben steht aber WIn 7 und nicht Vista ;).
Ich möchte bei Windows7 (64Bit HomePremium) den Explorer steuern und eine andere Adresse "eingeben".
[autoit]Alles anzeigen$hExplorer = ExplorerNavigate("Musik","C:\")
[/autoit] [autoit][/autoit] [autoit]
ExplorerNavigate($hExplorer,"D:\Musik")Func ExplorerNavigate($hWnd,$sPath)
[/autoit]
If Not IsHWnd($hWnd) Then $hWnd = WinGetHandle($hWnd)
If @error Then Return SetError(1,0,0)
$cHwnd = ControlGetHandle($hWnd, "", "[CLASS:Edit; INSTANCE:1]")
ControlSetText($hWnd, "", $cHwnd, $sPath)
ControlSend($hWnd,"",$cHwnd,"{ENTER}")
Return SetError(0,0,$hWnd)
EndFunc
Also unter Win 7 geht das mal nicht.
Korregiere mich bitte wenn ich mich irre, aber das ist doch im Grunde einfach eine art Notizblock oder nicht? Was hat das mit dem " Managen von Telefonaten" zu tuen?
Dann zeig mal deinen Code her den bis jetzt hast.
EDIT: @Sprenger: Dann könnte ich ihn aber nicht anpingen
Anpingen auf die IP geht dann trotzdem, nur der Rechner teilt dem "Netzwerk" nicht seinen Namen mit.
Der Eingabezeile ist doch die ID 1001 zugeordnet. Darfst nur den Pfad nicht mit ControlSend rein schreiben:
[autoit]$oShell = ObjCreate("shell.application")
$oShell.Explore("C:\")
sleep(1000)
ControlClick("Lokaler Datenträger (C:)","",1001, "left", 1, 400)
sleep(1000)
Send("D:\")
sleep(1000)
Send("{Enter}")
Mh ist komisch weil SQLite.dll in 99% der Fälle auf jedem Rechner drauf ist. Hab mal die #include <SQLite.dll.au3> im Code hinzugefügt, dann wird die SQLite.dll wenn sie Fehlt erstellt.
Da bist mit einer Firma wie dieser hier besser dran die sich genau auf so etwas speziallisiert haben: http://www.secutrac.de/