maykonnn Posted March 26, 2015 Share Posted March 26, 2015 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 ! expandcollapse popup#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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now