Guictrlsetbkcolor

  • Ich hab von Skincrafter n Design. Leider spackt das rum also hab ich mir die Farbe auslesen lassen und als hex ausgegeben.

    Hex: 44484E

    Wenn ich jetzte

    [autoit]

    Guicrlsetbkcolor("",0x44484E)

    [/autoit]

    mache, passiert aber iwie gar nichts :S
    why?

    gruß

  • Probier es mal so , habe es jetzt nicht ausprobiert:

    [autoit]


    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    $vGUIColor = 0x161616
    $hGui = GUICreate("", 778, 290, -1, -1, -1, BitOR(0x00000080, 0x00000010))
    GUISetBkColor($vGUIColor, $hGui)
    GUISetState(@SW_SHOW)

    [/autoit][autoit][/autoit][autoit]

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE;,$MenuItemBeenden
    Exit
    EndSwitch
    WEnd

    [/autoit]
  • [autoit]

    #cs ----------------------------------------------------------------------------

    [/autoit][autoit][/autoit][autoit]

    AutoIt Version: 3.3.6.1
    Author: myName

    [/autoit][autoit][/autoit][autoit]

    Script Function:
    Template AutoIt script.

    [/autoit][autoit][/autoit][autoit]

    #ce ----------------------------------------------------------------------------

    [/autoit][autoit][/autoit][autoit]

    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>
    #include <IE.au3>

    [/autoit][autoit][/autoit][autoit]

    $a = 0x44484E
    _IEErrorHandlerRegister ()

    [/autoit][autoit][/autoit][autoit]

    $oIE = _IECreateEmbedded ()
    $Gui = GUICreate("Rising Gods Browser", @DesktopWidth , @DesktopHeight, _
    (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _
    $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
    $GUIActiveX = GUICtrlCreateObj($oIE, 10, 80, @DesktopWidth - 60/2, @desktopheight -540 /2)
    Guisetbkcolor($Gui,$a )
    Winsetstate("Rising Gods Browser","",@SW_MAXIMIZE)
    ;_SkinGUI("SkinCrafterDll.dll", "V-touch.skf", $Gui) ;Skin setzen
    $GUI_Button_Back = GUICtrlCreateButton("Zurück", 10, 920, 100, 25)
    $GUI_Button_Forward = GUICtrlCreateButton("Vorwärts", 120, 920, 100, 25)
    $GUI_Button_Home = GUICtrlCreateButton("Home", 230, 920, 100, 25)
    $GUI_Button_Stop = GUICtrlCreateButton("Stop", 340, 920, 100, 25)
    $beenden = Guictrlcreatebutton("Beenden",@desktopwidth - 250/2,920,100,25)
    $Eingabefeld = GuictrlcreateInput("",12,30,500,25)
    $start = Guictrlcreatebutton("los",520,30,100,25)
    $progress = GuictrlcreateProgress(9,860,1255,25)
    GUISetState() ;Show GUI

    [/autoit][autoit][/autoit][autoit][/autoit][autoit]

    _IENavigate ($oIE, "http://www.rising-gods.de")

    [/autoit][autoit][/autoit][autoit]

    ; Waiting for user to close the window
    While 1
    $msg = GUIGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
    ExitLoop
    Case $msg = $GUI_Button_Home
    _IENavigate ($oIE, "http://www.rising-gods.de")
    GUICtrlSetData($progress, 100)
    if Guictrlsetdata($progress, 100) Then
    sleep(1500)
    Guictrlsetdata($progress, 0)
    Endif
    Case $msg = $GUI_Button_Back
    _IEAction ($oIE, "back")
    Case $msg = $GUI_Button_Forward
    _IEAction ($oIE, "forward")
    Case $msg = $GUI_Button_Stop
    _IEAction ($oIE, "stop")
    case $msg = $start
    _IENavigate($oie, GUICtrlRead($Eingabefeld), 0)
    Traytip("Rising Gods Browser",Guictrlread($Eingabefeld), 5, 1)
    GUICtrlSetData($progress, 100)
    if Guictrlsetdata($progress, 100) Then
    sleep(1500)
    Guictrlsetdata($progress, 0)
    Endif
    case $msg = $beenden
    exit
    EndSelect
    WEnd

    [/autoit][autoit][/autoit][autoit]

    Func _SkinGUI($SkincrafterDll, $SkincrafterSkin, $Handle)
    $Dll = DllOpen($SkincrafterDll)
    DllCall($Dll, "int:cdecl", "InitLicenKeys", "wstr", "SKINCRAFTER", "wstr", "SKINCRAFTER.COM", "wstr", "support@skincrafter.com", "wstr", "DEMOSKINCRAFTERLICENCE")
    DllCall($Dll, "int:cdecl", "InitDecoration", "int", 1)
    DllCall($Dll, "int:cdecl", "LoadSkinFromFile", "wstr", $SkincrafterSkin)
    DllCall($Dll, "int:cdecl", "DecorateAs", "int", $Handle, "int", 25)
    DllCall($Dll, "int:cdecl", "ApplySkin")
    WinClose("","")
    EndFunc

    [/autoit]


    da nimm :D

  • Bitte

    Spoiler anzeigen
    [autoit]

    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #include <IE.au3>

    [/autoit] [autoit][/autoit] [autoit]

    $vGUIColor = 0x44484E
    _IEErrorHandlerRegister ()

    [/autoit] [autoit][/autoit] [autoit]

    $oIE = _IECreateEmbedded ()
    $Gui = GUICreate("Rising Gods Browser", @DesktopWidth , @DesktopHeight, _
    (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _
    $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
    $GUIActiveX = GUICtrlCreateObj($oIE, 10, 80, @DesktopWidth - 60/2, @desktopheight -540 /2)
    GUISetBkColor($vGUIColor, $Gui)
    Winsetstate("Rising Gods Browser","",@SW_MAXIMIZE)
    ;_SkinGUI("SkinCrafterDll.dll", "V-touch.skf", $Gui) ;Skin setzen
    $GUI_Button_Back = GUICtrlCreateButton("Zurück", 10, 920, 100, 25)
    $GUI_Button_Forward = GUICtrlCreateButton("Vorwärts", 120, 920, 100, 25)
    $GUI_Button_Home = GUICtrlCreateButton("Home", 230, 920, 100, 25)
    $GUI_Button_Stop = GUICtrlCreateButton("Stop", 340, 920, 100, 25)
    $beenden = Guictrlcreatebutton("Beenden",@desktopwidth - 250/2,920,100,25)
    $Eingabefeld = GuictrlcreateInput("",12,30,500,25)
    $start = Guictrlcreatebutton("los",520,30,100,25)
    $progress = GuictrlcreateProgress(9,860,1255,25)
    GUISetState(@SW_SHOW) ;Show GUI

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    _IENavigate ($oIE, "http://www.rising-gods.de")

    [/autoit] [autoit][/autoit] [autoit]

    ; Waiting for user to close the window
    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE, $beenden ;,$MenuItemBeenden
    Exit
    Case $GUI_Button_Home
    _IENavigate ($oIE, "http://www.rising-gods.de")
    GUICtrlSetData($progress, 100)
    if Guictrlsetdata($progress, 100) Then
    sleep(1500)
    Guictrlsetdata($progress, 0)
    Endif
    Case $GUI_Button_Back
    _IEAction ($oIE, "back")
    Case $GUI_Button_Forward
    _IEAction ($oIE, "forward")
    Case $GUI_Button_Stop
    _IEAction ($oIE, "stop")
    case $start
    _IENavigate($oie, GUICtrlRead($Eingabefeld), 0)
    Traytip("Rising Gods Browser",Guictrlread($Eingabefeld), 5, 1)
    GUICtrlSetData($progress, 100)
    if Guictrlsetdata($progress, 100) Then
    sleep(1500)
    Guictrlsetdata($progress, 0)
    Endif
    EndSwitch
    WEnd

    [/autoit] [autoit][/autoit] [autoit]

    Func _SkinGUI($SkincrafterDll, $SkincrafterSkin, $Handle)
    $Dll = DllOpen($SkincrafterDll)
    DllCall($Dll, "int:cdecl", "InitLicenKeys", "wstr", "SKINCRAFTER", "wstr", "SKINCRAFTER.COM", "wstr", "support@skincrafter.com", "wstr", "DEMOSKINCRAFTERLICENCE")
    DllCall($Dll, "int:cdecl", "InitDecoration", "int", 1)
    DllCall($Dll, "int:cdecl", "LoadSkinFromFile", "wstr", $SkincrafterSkin)
    DllCall($Dll, "int:cdecl", "DecorateAs", "int", $Handle, "int", 25)
    DllCall($Dll, "int:cdecl", "ApplySkin")
    WinClose("","")
    EndFunc

    [/autoit]