Highlight a phrase and click this icon to search it on Swyx-Forum    Highlight a phrase and click this icon to search it within the Swyx Knowledgebase    Highlight a phrase and click this icon to search it using Goolge    Highlight a phrase and click this icon to search it using Wikipedia

List of Blogs
Search Blogs

Blog Archive

Most recent blog entries

 

Mrz22

Written by:Martin
22.03.2011 14:44 

SwyxWare 2011 will ship with updated SwyxIt! skins which properly show the new speed dial key states “Away” and “Do not disturb”. If you have own customized skins you might want to continue using them. Supporting the new state requires every speed dial key on the skin to be edited to define the images to show for the new states. I’ve build a small PowerShell script to help.

Installation and usage

The script adds two images to the skin cab file and sets these images as away and do-not-disturb state bitmap on every speed dial key. You still need to manually update the skin to show your own state and picture and extend the line keys to show HD and encryption symbols, but the cumbersome task to update every single speed dial key with SwyxIt! skin editor is no longer necessary.

To use the script download the attached ZIP file, extract its contents into a new directory, open a Powershell prompt and cd into that directory. Download the skin file from SwyxServer using SwyxWare File Explorer or SwyxWare Administration. Then call the script like this:

.\update-IppbxSkinFile.ps1 -path myskin.cab -AwayImage status_away.png -DnDImage status_dnd.png

In this example myskin.cab is the skin file to change, status_away.png and status_dnd.png are the image files to use for the new states. If you have more than one skin to update, use Powershell’s pipelining support to change all of them like this.

ls *.cab | % { .\update-IppbxSkinFile.ps1 -path $_ -AwayImage .\status_away.png -DnDImage .\status_dnd.png }

Use SwyxIt! to upload the changed cab file as your own user-specific skin to check if everything works as expected. If you’re satisfied upload the skin into SwyxWare’s global file scope for every user to use.

This script has been tested on one system (mine Smile) with some standard SwyxWare v7.0 skins.

How does it work?

Skins a Windows cabinet (cab) files containing all images and one or more skn files which are just text files in the legacy Windows INI-file format. update-ippbxskinfile.ps1 extracts the cab file, updates the speed dial key definitions in all skn files and writes the skin files and new images into the cab file.

 

 

Tags:

 

3 comment(s) so far...

Re: SwyxIt! Skin Update Script for SwyxWare 2011

Hi Martin,

thanks for this Script.

But ther's a little problem. When i Start the Script, the orignial cab will be excracted first. Then the Script serach the status_away.png and the status_dnd.png. But the png File are not in Folder Update-ippbxSkinFile. The nothing will change in your Script.

After i haved Copyed the status_dnd.png and status_away.png from a Swyx 2011 skin cab into the folder Update-ippbxSkinFile it works perfect.

So can you put the two png File into you Download-zip. I think that will be easier for any people.

Bye

Jens

By JensHaaben on  16.08.2011 13:17

Re: SwyxIt! Skin Update Script for SwyxWare 2011

Hi Martin,

thanks for this Script.

But ther's a little problem. When i Start the Script, the orignial cab will be excracted first. Then the Script serach the status_away.png and the status_dnd.png. But the png File are not in Folder Update-ippbxSkinFile. The nothing will change in your Script.

After i haved Copyed the status_dnd.png and status_away.png from a Swyx 2011 skin cab into the folder Update-ippbxSkinFile it works perfect.

So can you put the two png File into you Download-zip. I think that will be easier for any people.

Bye

Jens

By JensHaaben on  16.08.2011 13:35

Re: SwyxIt! Skin Update Script for SwyxWare 2011

Thanks for the hint. I haven't included these in the download, because they would be useful for the default SwyxWare skins only. These skins are are part of SwyxWare 2011 anyway and need no update. For your own skins you probably need images matching your design. But anyway, I've updated the ZIP with the two pngs.

By Martin on  16.08.2011 18:18

Your name:
Your email:
(Optional) Email used only to show Gravatar.
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment  Cancel 
Blog Help
Sponsors