Halli Hallo,
ich habe folgendes Skript entwickelt, in dem ich vorher kein GDIPlus verwendete. Dann habe ich GDIPlus eingefügt und seitdem funktionieren die Sonderzeichen auf den Buttons nicht mehr. Kann das an GDIPlus liegen? Wenn ja gibt es alternativen?
#include <GuiConstants.au3>
#include <GDIPlus.au3>
$GuiWidth = 400
$GuiHeight = 400
_GDIPlus_Startup()
[/autoit][autoit][/autoit][autoit]$hGui = GUICreate("Test",$GuiWidth,$GuiHeight)
$hGraphic = _GDIPlus_GraphicsCreateFromHWND($hGui)
$Bitmap = _GDIPlus_BitmapCreateFromGraphics($GuiWidth, $GuiHeight, $hGraphic)
$Buffer = _GDIPlus_ImageGetGraphicsContext($Bitmap)
$hBtn_W = GUICtrlCreateButton(ChrW(8593),190,300,30,30)
$hBtn_A = GUICtrlCreateButton(ChrW(8592),160,330,30,30)
$hBtn_S = GUICtrlCreateButton(ChrW(8595),190,360,30,30)
$hBtn_D = GUICtrlCreateButton(ChrW(8594),220,330,30,30)
$hLabel_Main = GUICtrlCreateLabel("test",10,10,380,290)
GUICtrlSetState($hLabel_Main,$GUI_HIDE)
GUISetState(@SW_SHOW)
[/autoit][autoit][/autoit][autoit]While Sleep(10)
Switch GuigetMsg()
Case $GUI_EVENT_CLOSE
_GDIPlus_Shutdown()
Exit
EndSwitch
Wend