Hai Leute...
Also Ich würde gerne wissen wie man eine Gui macht die aussieht wie ein Notizzetel..
1. Ich weis das ich dafür ein Transparents Bild eines Notizzetel brauche..
2. In welchem Format muss dieses Bild sein(Bmp, Jpg usw..)?
3. Wie sieht das ganze dann im Sciprt aus?
4. Mit freundichen Grüßen
5. CF* Gaming
Bild = Gui
-
- [ offen ]
-
[CF[*Gaming*] -
6. September 2010 um 18:48 -
Geschlossen -
Erledigt
-
-
Das Thema wurde schon mehrmals durchgekaut, SuFu nutzen.
-
Ich find aber nichts!..
Außerdem sind mehr als die hälfte der Posts hier schonmal gefargt worden! -
hmm also ich würd das mit gdi+ zeichnen lassen
also
1. gui erstellen
2. transparent machen
3. bild zeichnenso hier n bsp
Spoiler anzeigen
[autoit]#include <GDIPlus.au3>
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
#include <StructureConstants.au3>
#include <WinAPI.au3>_GDIPlus_Startup()
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
Global $Width = 400, $Height = 400
$GUI = GUICreate("Ich bin durchsichtig", $Width, $Height, -1, -1, 0x80000000, BitOR(0x00000080, 0x00080000))
GUISetState()$hGraphic = _GDIPlus_GraphicsCreateFromHWND($GUI)
[/autoit] [autoit][/autoit] [autoit]
$hBitmap = _GDIPlus_BitmapCreateFromGraphics($Width, $Height, $hGraphic)
$backbuffer = _GDIPlus_ImageGetGraphicsContext($hBitmap)
$hImage = _GDIPlus_ImageLoadFromFile(@ScriptDir &"/Test.png")$ScreenDc = _WinAPI_GetDC($GUI)
[/autoit] [autoit][/autoit] [autoit]
$dc = _WinAPI_CreateCompatibleDC($ScreenDc)$tSize = DllStructCreate($tagSIZE)
[/autoit] [autoit][/autoit] [autoit]
$pSize = DllStructGetPtr($tSize)
DllStructSetData($tSize, "X", $Width)
DllStructSetData($tSize, "Y", $Height)
$tSource = DllStructCreate($tagPOINT)
$pSource = DllStructGetPtr($tSource)
$tBlend = DllStructCreate($tagBLENDFUNCTION)
$pBlend = DllStructGetPtr($tBlend)
DllStructSetData($tBlend, "Alpha", 255)
DllStructSetData($tBlend, "Format", 1)
$tPoint = DllStructCreate($tagPOINT)
$pPoint = DllStructGetPtr($tPoint)
DllStructSetData($tPoint, "X", 0)
DllStructSetData($tPoint, "Y", 0)_GDIPlus_GraphicsDrawImage($backbuffer, $hImage, 0, 0)
[/autoit] [autoit][/autoit] [autoit]$gdibitmap = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hBitmap)
[/autoit] [autoit][/autoit] [autoit]
_WinAPI_SelectObject($dc, $gdibitmap)
_WinAPI_UpdateLayeredWindow($GUI, $ScreenDc, 0, $pSize, $dc, $pSource, 0, $pBlend, 2)
_WinAPI_DeleteObject($gdibitmap)Do
[/autoit] [autoit][/autoit] [autoit]
Until GUIGetMsg() = -3_WinAPI_DeleteDC($dc)
[/autoit] [autoit][/autoit] [autoit][/autoit]
_WinAPI_ReleaseDC($GUI, $ScreenDc)
_GDIPlus_GraphicsDispose($backbuffer)
_GDIPlus_ImageDispose($hImage)
_GDIPlus_BitmapDispose($hBitmap)
_GDIPlus_GraphicsDispose($hGraphic)
_GDIPlus_Shutdown() -
Hier ist einer von vielen Threads:
https://autoit.de/index.php?page…ght=transparent
Ich mein auch nicht, dass du das Thema nicht erstellen sollst, weil es es schon gibt, sondern als Hilfe, dass es darüber shcon was gibt.