Hello Mate,
not Sure I understand what you mean, can't you use the skin header to do that ? menu_off.jpg etc ?
I wrote an AutoIT script to change the Menu_off.jpg image in the Minimal skin. It copies from an image (either random or sequential) from a background directory and overwrites the menu_off.jpg image. I then had a button to allow you to change the background, but you needed to refresh the skin to make the change. Your welcome to use that (code below).
NOTE This script hard codes the ini file it uses
#Include <File.au3>
#Include <Array.au3>
;Read vars from Minimal.ini
$SkinPath = _PathFull(@ScriptDir & "..\")
$SkinIni = $SkinPath & "Minimal.ini"
$BGPath = $SkinPath & "Backgrounds"
$BG = IniRead($SkinIni, "Minimal Skin", "MinLastBG", "File Not Found")
$Debug = IniRead($SkinIni, "Minimal Skin", "MinDebug", "File Not Found")
; check for random background
$setBG = IniRead($SkinIni, "Minimal Skin", "MinBGrandom", "NotFound")
; Get list of files into an array
$BGList=_FileListToArray($BGPath,"*.*",1)
; if Debug is on, put the files in the background directory into a sorted list
if $Debug >0 then _ArrayDisplay($BGList,"$BGList")
_ArraySort( $BGList,0,1)
If (Not IsArray($BGList)) and (@Error=1) Then
MsgBox (0,"","No Files\Folders Found.")
Exit
EndIf
; select new BG seq or random dependant on setting in ini
if $setBG = 1 then $BG=random(1,$BGList[0],1)
if $setBG = 0 then $BG=$BG+1
if $BG>$BGList[0] then $BG=1
; Prepare & write the file, and update Minimal.ini
$FS = $BGPath & "\" & $BGList[$BG]
$success = FileCopy($FS, $SkinPath & "\Menu.jpg",1)
IniWrite($SkinIni, "Minimal Skin", "MinLastBG", $BG)
; If debug is on dump data for error checking
if $Debug > 0 then MsgBox(4096, "Result", "SetBG="&$setBG & @CRLF & "BG="&$BG & @CRLF & $BGList[$BG] & @crlf & $FS & @crlf & $success)
if $Debug > 0 then _ArrayDisplay($BGList,"$BGList")
and heres the ini file
[Minimal Skin]
; 0 = Off 1 = On
MinDebug=0
; 0 = Sequential 1 = Random
MinBGrandom=1
; last background used
MinLastBG=1
I have the script in a directory off the skin dir, the ini file is in the skin dir itself.
Hope this helps.
KPJUK



LinkBack URL
About LinkBacks
Reply With Quote
.


Bookmarks