hi friends, I am trying to add on my form 2 skins for the User choice, by clicking on the first skin works as usual but when I choose the second skin does not work. Please help me !
Plain Text
#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 521, 269, 192, 124) $Radio1 = GUICtrlCreateRadio("Skin1", 64, 88, 129, 49) $Radio2 = GUICtrlCreateRadio("Skin2", 64, 168, 161, 49) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit case $Radio1 $skin1 = @ScriptDir & "\Cosmo.msstyles" DllCall("kernel32.dll", "handle", "LoadLibraryW", "wstr", "Skin.dll") DllCall("Skin.dll", "int", "USkinInit", "ptr", "", "ptr", "", "str", $skin1) Case $Radio2 $skin = @ScriptDir & "\GoldCoast.msstyles" DllCall("kernel32.dll", "handle", "LoadLibraryW", "wstr", "Skin.dll") DllCall("Skin.dll", "int", "USkinInit", "ptr", "", "ptr", "", "str", $skin) EndSwitch WEnd