okay, habs gefunden, das ganze 300pix nach rechts zu schieben (weiss nicht wie ich das übersehen konnte).
jetzt bräuchte ich nur noch ein bg-pic, bekomme das aber nicht rein mit GUICtrlCreatePic
hier mal nur der wesentliche teil für das bild: (testscript)
C
#include <GDIPlus.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <Misc.au3>
#include <WinAPI.au3>
#include <Array.au3>
;#include <StaticConstants.au3>
;~ Opt("GUIOnEventMode", 1)
;~ Opt("MustDeclareVars", 1)
Global $xSIZEX = 766;416*2
Global $xSIZEY = 748;416
Global $xGUIx = 1366
Global $xGUIy = 748
Global $BGimage = @ScriptDir & "\images\background.png"
ConsoleWrite($BGimage & @CRLF)
#region setup
;~ Global $hWidth = $xSIZEX
;~ Global $hHeight = $xSIZEY
;~ Global $dll = DllOpen("user32.dll")
;~ HotKeySet("{SPACE}", "_shoot")
Global $hWnd = GUICreate("Mia & me - Distopian Attack (c) 2021 for SOSO", $xGUIx, $xGUIy) ;, -1, -1, $WS_BORDER)
ConsoleWrite($hWnd & @CRLF)
;~ GUISetBkColor (0xcccccc, $hWnd )
;~ Global $BGlabel = GUICtrlCreateLabel("", 0, 0, 1366, 748)
;~ GUICtrlSetBkColor(-1, 0xcccccc)
;~ ConsoleWrite($BGlabel & @CRLF)
Global $BGpic = GUICtrlCreatePic($BGimage, 0, 0, 1366, 748)
ConsoleWrite($BGpic & @CRLF)
Global $AliasButton = GUICtrlCreateButton("PlayerName", $xGUIx - 100, $xGUIy - 30, 80, 20)
ConsoleWrite($AliasButton & @CRLF)
GUISetOnEvent($GUI_EVENT_CLOSE, "close")
;~ GUICtrlSetState(-1, $GUI_DISABLE)
;GUISetState(@SW_SHOW)
GUISetState()
;~ MsgBox(64,"","")
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $AliasButton
ConsoleWrite("Button" & @CRLF)
EndSwitch
Sleep(10)
WEnd
Alles anzeigen
EDIT 2: okay, ich male das bild einfach mit GDIPlus rein, das funzt. mit GUICtrlCreatePic hab ich s nicht hinbekommen.
Würde mich dennoch interessieren was an meinem code falsch ist.