Skins for a script?

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
ZeitenWanderer
Pro Scripter
Posts: 68
Joined: Wed Dec 07, 2005 7:13 am

Skins for a script?

Post by ZeitenWanderer » Tue May 22, 2007 8:34 pm

Actually I should be loaded with homework enough by now, but one last question, before I start digging through al the received informations.

I have a plan set up for what I want to do as an advanced first time script, which would later serve as material for other learners. My idea to get people involved is to give them sucess from the first moment on. The lowest step would be to allow them to create skins, using (graphic edit programs) they are familar with.

This is script No 1, the shell for other scripts.

Let>APP_TITLE=DARP SHELL

Dialog>MyDialog
Caption=DARP Shell
Width=653
Height=250
Top=104
Left=16
Button= ,288,24,185,73,1,%SCRIPT_DIR%\Orders.bmp,Ruft Bestellungen ab / Picking orders
Button= ,288,112,185,73,3,%SCRIPT_DIR%\setup.bmp,Einstellungen vornehmen / Set it up
Image=,448,288,105,105
EndDialog>MyDialog

Show>MyDialog,result

If>result=1,Email-Orders
//Achtung: 2 ist immer vorbehalten für das Schliessen des Fensters
//Note: 2 is always used to exit the window
If>result=2,Exit
If>result=3,Setup

//Die erste Button-Zeile / First button line
SRT>Email-Orders
Macro>%SCRIPT_DIR%\order_email_holen.scp
End>Email-Orders

//Die zweite Button-Zeile /Second button line
SRT>Setup
Macro>%SCRIPT_DIR%\setup.scp
END>Setup

Show>MyDialog,result

As you can tell, it contains pics.
Question A: Any ideas concerning the background? Should I just underlay a greater pic or can one use a pattern?

Now here is the caled Setup Script:

//Erstes Setup - Beibehalten des Wertes in der Checkbox
//First Setup - Keep the setting of the checkbox
IfFileExists>%SCRIPT_DIR%\CheckBoxSetting.ini,Continue
WriteLn>%SCRIPT_DIR%\CheckBoxSetting.ini,wresult,[Setting]
WriteLn>%SCRIPT_DIR%\CheckBoxSetting.ini,wresult,CheckBox=False
Label>Continue
ReadIniFile>%SCRIPT_DIR%\CheckBoxSetting.ini,Setting,CheckBox,CheckBoxSetting

//Checkbox Mail nach Abruf löschen
//Checkbox mail will be erased
Dialog>Dialog1
Caption=Setup DARP
Width=314
Height=94
Top=112
Left=46
CheckBox=msCheckBox1,Mail löschen / Delete mail,40,24,140,%CheckBoxSetting%
//Button Werte/Values: Caption,Left,Top,Width,Height,ModalResult[,ImageFile/Data[,hint]]
Button=Ok,200,24,75,25,3,,Löschung erfolgt nach Download vom Server / Will be erased after download from Server
EndDialog>Dialog1

Show>Dialog1,r1

If>%DIALOG1.MSCHECKBOX1%=False
EditIniFile>%SCRIPT_DIR%\CheckBoxSetting.ini,Setting,CheckBox,FALSE
Else
EditIniFile>%SCRIPT_DIR%\CheckBoxSetting.ini,Setting,CheckBox,TRUE
EndIf


Question B: I would like users to set not only an own skin of their choice - which I probably could have worked out myself sooner or later - but rather I want them to set up and stick different skins to different identities.
(Wouldn´t it be great for a guy to show off his girl "her" own skin?)

Help/suggestions appreciated. :wink:

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts