JScript Posted August 16, 2009 Posted August 16, 2009 (edited) 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.au3Modifications: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 executable5 - All of the functions inside EzSkin_PreProcessor.au3 are commented in the UDF format6 - 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.2600Some images:Skin-AutoitSkin-BlueWaveSkin-BlueVistaSkin-FloppySkin-JaguarSkin-JeansSkin-MacPCSkin-ToxicSkin-Win3xSkin-Velox Edited September 17, 2009 by jscript http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
AutoProgramming Posted August 16, 2009 Posted August 16, 2009 Looks very nice, gona test it tomorrow >_ [u]My OpenSource Projects:[/u]- [BEEP] proMusiX- Search autorun.inf
JScript Posted August 17, 2009 Author Posted August 17, 2009 Looks very nice, gona test it tomorrow >_<Wow, this is very nice. Great job!I thank you http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
LOULOU Posted August 17, 2009 Posted August 17, 2009 Thanks I was waiting for tab control I will try now.
damian666 Posted August 17, 2009 Posted August 17, 2009 (edited) 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 August 17, 2009 by damian666 and proud of it!!!
LOULOU Posted August 17, 2009 Posted August 17, 2009 (edited) EZSkinPreprocessor.au3Line 22Change Opt("OnExitFunc", "__EzSkinOnExitFunc")ByOnAutoItExitRegister("__EzSkinOnExitFunc")Line 42Global $sEZS_LANGUAGEFILE = $sEZS_PROGRAMDIR & '\English.lng'ByGlobal $sEZS_LANGUAGEFILE =_LanguageEmbedded($sEZS_PROGRAMDIR)LanguageEmbedded.au3Line 42 et 43$Databy $sData Edited August 17, 2009 by LOULOU
JScript Posted August 19, 2009 Author Posted August 19, 2009 Thanks I was waiting for tab control I will try now.Hi,Tab control is in the oven >_<. Await some days, please... http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
JScript Posted August 19, 2009 Author Posted August 19, 2009 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 Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
JScript Posted August 19, 2009 Author Posted August 19, 2009 (edited) Hi LOULOU,EZSkinPreprocessor.au3OnAutoItExitRegister("__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 August 19, 2009 by jscript http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
JScript Posted August 19, 2009 Author Posted August 19, 2009 New version is available,Download link: EzSkin_PreProcessor (2009-08-18) v2.08.1809.2600 http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
dantay9 Posted August 19, 2009 Posted August 19, 2009 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.
JScript Posted August 19, 2009 Author Posted August 19, 2009 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 Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
hot202 Posted August 20, 2009 Posted August 20, 2009 hey where did u get the ezSkinGuiCreate program?
JScript Posted August 20, 2009 Author Posted August 20, 2009 (edited) 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 August 20, 2009 by jscript http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
Valuater Posted August 20, 2009 Posted August 20, 2009 Great Job Jscript... Really glad to see this excellent addition to EzSkin available to Autoit users again. Thanks Valuater 8)
JScript Posted August 20, 2009 Author Posted August 20, 2009 (edited) Great Job Jscript... Really glad to see this excellent addition to EzSkin available to Autoit users again.ThanksValuater8)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 August 20, 2009 by jscript http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
dantay9 Posted August 20, 2009 Posted August 20, 2009 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.
JScript Posted August 20, 2009 Author Posted August 20, 2009 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 Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
dantay9 Posted August 21, 2009 Posted August 21, 2009 (edited) Thanks for your help. Even better now that I know how to properly use this. Edited August 21, 2009 by dantay9
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