Jump to content

Recommended Posts

Posted

Hi,

i have a problem with the switch to the classic theme. my application have to be used in classic skin otherwise the coordinates of the windows doesnt match.

1) Is it possible to read which is the actually theme?

2) my short script below doesnt work. it should switch to classic and load another autoit script but the new script is also winXP theme and not classic :)

anyone can help me?

DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", 0)
Run("Sequence.exe")
Posted (edited)

ok that works thanks.

but i have the problem that i have to switch the window to classic theme from an third party window.

isnt it possible to switch complete to classic theme like when u do yourself.

otherwise if i know the skin name i can say ... ok xpskin -> y + 5 ; alienware skin -> y + 8...

Edited by CosmosTunes
  • 3 weeks later...
Posted (edited)

Is it possible to read which is the actually theme?

I know my answer is late, but mayb this need whomever:

$Struct = DllStructCreate("wchar File[255];wchar Color[255];wchar Size[255]")

$GetTheme = DllCall("UxTheme.dll", "int", "GetCurrentThemeName", "ptr", DllStructGetPtr($Struct, "File"), "int", 255, "ptr", DllStructGetPtr($Struct, "Color"), "int", 255, "ptr", DllStructGetPtr($Struct, "Size"), "int", 255)

If DllStructGetData($Struct, 1) = "" Then
    MsgBox(64, "Message", "Current theme is classic")
    Exit
EndIf

MsgBox(64, "Message", "Theme file: " & DllStructGetData($Struct, 1) & @LF & @LF & _
       "Color scheme: " & DllStructGetData($Struct, 2) & @LF & @LF & _
       "Font size: " & DllStructGetData($Struct, 3))

:)

Edited by rasim

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...