Jump to content

Convert your normal scripts into EzSkin (Reloaded)...


JScript
 Share

Recommended Posts

Hello for all...

After some time out of the forum, I'm back... >_< .

(...)

I present them: EzSkin_PreProcessor.au3, the new modification of original EzSkin.au3 to EzSkin_PreProcessor.au3

Modifications:

1 - Now the built-in skins are compacted by _LZNTCompress.au3 (by trancexx)

2 - The _EzSkinMsgBox() function supports resources and URLs, using _GUIResourcePic.au3 (by me)

Sintaxe: _EzSkinMsgBox( flag, "title", "text" [, timeout [, hwnd [, "ownButtons" [, left [, top [, filename [, resname [, restype [, allwaysActive ]]]]]] )

3 - The credits of Ownerdrawn Menu is of ModernMenu UDF by Holger Kotsh (I forgot to inform in the previous version...)

4 - The converter EzSkinConvert.au3 was reformulated, add: Shrink the EzSkin_PreProcessor.au3 file to EzSkin_Lite(your_prg_name).au3 to reduce the final size of the executable

5 - All of the functions inside EzSkin_PreProcessor.au3 are commented in the UDF format

6 - More fast and small...

7 - DO NOT USE TIDY (Ctrl + T) in EzSkin_PreProcessor.au3 file!

8 - You can choose one of skin model to use with one of the combinations of keys: Win + T or Win + S, this is call _EzSkinLoadTheme function.

The actual header of the file is:

#include-once
; #INDEX# =======================================================================================================================
; Title .........: Modified EzSkin -> EzSkin.au3 (Valuater) To EzSkin_PreProcessor.au3 (jscript)
; AutoIt Version.: 3.2.12++
; Language.......: English
; Description ...: Skinning your programs...
; Version .......: See the $sEZS_VERSION variable.
; Remarks .......: Please, don't change the structure of this script. Instead of this, contact me (jscript).
;                  For other scripts to work correctly (as: EzSkinConvert.au3), they depend exclusively on this current structure.
;                  DO NOT USE TIDY (Ctrl + T).
; Credits .......: Original version (1.0.2 - Feb 17, 2007) is made by Valuater (For personal use only, All Rights Reserved)
;                  Thank you big_daddy, Joscpe and SmOke_N.
;                  http://www.autoitscript.com/forum/index.php?showtopic=41319&view=findpost&p=307380
; ===============================================================================================================================

Download link: EzSkin_PreProcessor (2009-08-18) v2.08.1809.2600

Some images:

Skin-Autoit

Posted Image

Skin-BlueWave

Posted Image

Skin-BlueVista

Posted Image

Skin-Floppy

Posted Image

Skin-Jaguar

Posted Image

Skin-Jeans

Posted Image

Skin-MacPC

Posted Image

Skin-Toxic

Posted Image

Skin-Win3x

Posted Image

Skin-Velox

Posted Image

Edited by jscript

http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)

Somewhere Out ThereJames Ingram

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Link to comment
Share on other sites

here we go again XD

whatever i do, i keep having trouble with this baby XD

it works great, i just dont get the skin include thing :S

what the hell am i supposed to do?

i made a skinembedded file, and i dont knwo what to do then...

tried including it ina script, but nothing... am really at a loss here >.<

and if you recall, we had this discussion in your previous version also ^^

Damian666

Edit:

Nevermind man, i finally got it XD

sheesh, that took me so long, thast sick ^^

well, good job man, very nice script, to bad the skins cant be png though >_<

Edited by damian666
and proud of it!!!
Link to comment
Share on other sites

EZSkinPreprocessor.au3

Line 22

Change

Opt("OnExitFunc", "__EzSkinOnExitFunc")

By

OnAutoItExitRegister("__EzSkinOnExitFunc")

Line 42

Global $sEZS_LANGUAGEFILE = $sEZS_PROGRAMDIR & '\English.lng'

By

Global $sEZS_LANGUAGEFILE =_LanguageEmbedded($sEZS_PROGRAMDIR)

LanguageEmbedded.au3

Line 42 et 43

$Data

by

$sData

Edited by LOULOU
Link to comment
Share on other sites

here we go again XD

whatever i do, i keep having trouble with this baby XD

it works great, i just dont get the skin include thing :S

what the hell am i supposed to do?

i made a skinembedded file, and i dont knwo what to do then...

tried including it ina script, but nothing... am really at a loss here >.<

and if you recall, we had this discussion in your previous version also ^^

Damian666

Edit:

Nevermind man, i finally got it XD

sheesh, that took me so long, thast sick ^^

well, good job man, very nice script, to bad the skins cant be png though >_<

Hello,

Here we go again...

See a bit of code:

; #FUNCTION# ====================================================================================================================
; Name...........: _EzSkinReadConfig
; Description ...: Read the EzSkin.ini configuration file.
; Syntax.........: _EzSkinReadConfig()
; Author ........: João Carlos (jscript)
; Modified.......:
; Remarks .......: If EzSkin.ini not found, automatic load defaults (language and skin) embedded.
; Related .......:
; Link ..........;
; Example .......; _EzSkinReadConfig()
; ===============================================================================================================================
Func _EzSkinReadConfig()
    If FileExists($sEZS_PROGRAMDIR & "\EzSkin.ini") Then
        $sEZS_SKINPATH = IniRead($sEZS_PROGRAMDIR & "\EzSkin.ini", "General", "LoadPath", $sEZS_SKINPATH)
        $sEZS_LANGUAGEFILE = IniRead($sEZS_PROGRAMDIR & "\EzSkin.ini", "General", "Language", $sEZS_LANGUAGEFILE)
    Else
        ; Automatic load Defaults (language and skin)
        ; Load EzSkin Default Language (based on the language of your OS)
        $sEZS_LANGUAGEFILE = _LanguageEmbedded($sEZS_PROGRAMDIR)
        
        ; Load EzSkinEmbedded (code written by CreateSkinEmbedded)
        $sEZS_SKINPATH = _SkinEmbedded($sEZS_PROGRAMDIR)
        
        ; Write the EzSkin.ini configuration file
        _EzSkinWriteConfig()
    EndIf

I will try to explain:

This line:

If FileExists($sEZS_PROGRAMDIR & "\EzSkin.ini") Then
        $sEZS_SKINPATH = IniRead($sEZS_PROGRAMDIR & "\EzSkin.ini", "General", "LoadPath", $sEZS_SKINPATH)
it will always verify if a file of configurations exists (ezskin. ini), if not:
; Load EzSkinEmbedded (code written by CreateSkinEmbedded)
        $sEZS_SKINPATH = _SkinEmbedded($sEZS_PROGRAMDIR)
; Remarks .......: If EzSkin.ini not found, automatic load defaults (language and skin) embedded.

You can choose one of skin model to use with one of the combinations of keys: Win + T or Win + S, this is call _EzSkinLoadTheme function.

"My English is very bad, I know and I have a lot of difficulties to understand what you write..."

http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)

Somewhere Out ThereJames Ingram

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Link to comment
Share on other sites

Hi LOULOU,

EZSkinPreprocessor.au3

OnAutoItExitRegister("__EzSkinOnExitFunc")

OnAutoItExitRegister I didn't see anything similar >_<

Global $sEZS_LANGUAGEFILE = $sEZS_PROGRAMDIR & '\English.lng'
If I change for this:
Global $sEZS_LANGUAGEFILE =_LanguageEmbedded($sEZS_PROGRAMDIR)
the function "_LanguageEmbedded()" will be called whenever your program begins...

If the file EzSkin.ini not to exist, your language and skin embedded will be loaded automatically!!!

LanguageEmbedded.au3: $Data to $sData, Thank you :(

Edited by jscript

http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)

Somewhere Out ThereJames Ingram

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Link to comment
Share on other sites

This is great and very simple to use. I have one suggestion though. I would change line 1334 to this:

$sLineAdd &= '#include "' & @ScriptDir & '\EzSkin_Lite(' & $ArrayPath[3] & ').au3"' & @CRLF

This allows you to convert files outside of the directory that the convertor is in. Just a suggestion though. Great job.

Link to comment
Share on other sites

This is great and very simple to use. I have one suggestion though. I would change line 1334 to this:

$sLineAdd &= '#include "' & @ScriptDir & '\EzSkin_Lite(' & $ArrayPath[3] & ').au3"' & @CRLF

This allows you to convert files outside of the directory that the convertor is in. Just a suggestion though. Great job.

Yes!!! But better than that is:

Change this line

_FileWriteFromArray(@ScriptDir & "\EzSkin_Lite(" & $ArrayPath[3] & ").au3", $aArrayCopy, 1)
to this:

_FileWriteFromArray($ArrayPath[1] & $ArrayPath[2] & "\EzSkin_Lite(" & $ArrayPath[3] & ").au3", $aArrayCopy, 1)
If Not FileExists($ArrayPath[1] & $ArrayPath[2] & "\_LZNTCompress.au3") Then FileCopy(@ScriptDir & "\_LZNTCompress.au3", $ArrayPath[1] & $ArrayPath[2] & "\")
If Not FileExists($ArrayPath[1] & $ArrayPath[2] & "\_GUIResourcePic.au3") Then FileCopy(@ScriptDir & "\_GUIResourcePic.au3", $ArrayPath[1] & $ArrayPath[2] & "\")
If Not FileExists($ArrayPath[1] & $ArrayPath[2] & "\SkinEmbedded.au3") Then FileCopy(@ScriptDir & "\SkinEmbedded.au3", $ArrayPath[1] & $ArrayPath[2] & "\")
If Not FileExists($ArrayPath[1] & $ArrayPath[2] & "\LanguageEmbedded.au3") Then FileCopy(@ScriptDir & "\LanguageEmbedded.au3", $ArrayPath[1] & $ArrayPath[2] & "\")

and all of the necessary files will be copied >_< .

http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)

Somewhere Out ThereJames Ingram

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Link to comment
Share on other sites

hey where did u get the ezSkinGuiCreate program?

You refer the function?!?: _EzSkinGUICreate( "title" [, width [, height [, left [, top [, style [, ExStyle [, parent [, showIcon [, dragWindow ]]]]]]]]] )

This function and many another are based on the project EzSkin.au3, link: #307380.

Remember: All of the credits on the project EzSkin are of Valuater (For personal use only, All Rights Reserved). The base of everything that I did is of him, I would not have made anything if it was not his project!

Edited by jscript

http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)

Somewhere Out ThereJames Ingram

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Link to comment
Share on other sites

Great Job Jscript... Really glad to see this excellent addition to EzSkin available to Autoit users again.

Thanks

Valuater

8)

I thank all this to you!!! "I would not have made anything if it was not your project!"

Edit:

An question: How to do the with that the keys: Arrows and Tab(Alt+Tab) do they work with the buttons? Some Idea?

Edited by jscript

http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)

Somewhere Out ThereJames Ingram

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Link to comment
Share on other sites

Nice, now it works for any file anywhere. Just another little thing that could help. Put the Skin file and the EZSkin.ini file in the same directory as the script. Something even better would be to have everything in its own folder in the same directory as the file being skinned. Just an idea. I just like everything to be in the same spot for my scripts.

Link to comment
Share on other sites

Nice, now it works for any file anywhere. Just another little thing that could help. Put the Skin file and the EZSkin.ini file in the same directory as the script. Something even better would be to have everything in its own folder in the same directory as the file being skinned. Just an idea. I just like everything to be in the same spot for my scripts.

Nice,

Remember:

SkinEmbedded.au3: it contains embedded your own skin and she is only called if the file EzSkin.ini is not found.

You can choose one of skin model to use with one of the combinations of keys: Win + T or Win + S, this is call _EzSkinLoadTheme function.

What can be made, is to copy the folder \Skin to the same place of the converted script.

http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)

Somewhere Out ThereJames Ingram

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Link to comment
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
 Share

  • Recently Browsing   0 members

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