Jump to content
Sign in to follow this  

Help! Gui choose 2 skin

Recommended Posts


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 !


#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)

#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg

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)



Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.