Welcome, Guest
Please Login or Register.    Lost Password?

Script Support is now solved
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Script Support is now solved
#4182
Script Support is now solved 6 Years, 7 Months ago  
Script Support is now solved



Edit: September 2, 2007
Rainy have now shown me a better method, so wee can just forget the below CMD file "install_lua".
Instead wee could download my latest version 1.21, which include that better method.
Anyway; I leave the previous version 1.2, here:

Mirror (ZIP),
www.photoshopelementsuser.com/forum/showthread.php?p=301174#post301174

Download the "install_lua.cmd" for WinXP, and use something like this,
Code:

<button id="Calendar.button.manager" action="Global_ShowDialog(Manager)" />


Benny,
Btw.: Use Notepad (no problems here).

Content of "install_lua.cmd":
Install script support for our XML files.
Code:


@echo off& setlocal enableextensions enabledelayedexpansion
REM "install_lua.cmd" by Benny Pedersen, August 31, 2007.
echo.
(set f="%ProgramFiles%\Rainlendar2\scripts\windows.lua"«»)
(if not exist %f% set f="%~dp0scripts\windows.lua"«»)
if exist %f% (
find /i "function Global_ShowDialog(dialogName)"< %f% >nul
if not errorlevel 1 (
echo Script Support is installed.
) else (
if not "%~1" == "##" (
echo Installing Script Support.
echo.>> %f%
echo function Global_ShowDialog^(dialogName^)>> %f%
echo      Rainlendar_OpenDialog^(dialogName^)>> %f%
echo end>> %f%
echo.>> %f%
if "%~1" == "#" "%~f0" "##"
find /i "function Global_ShowDialog(dialogName)"< %f% >nul
if errorlevel 1 (
cls& echo.& echo Removing Write Protection.
attrib -r %f%
)
"%~f0" "#"
)
)
) else (echo Failure:
echo.
echo "%~nx0" should NOT be executed in
echo "%~dp0"
echo but in
echo Programs folder, and:
echo "Rainlendar2\"
echo.
echo Try again: Please copy or move "%~n0" into the "Rainlendar2" folder.
)
echo.& pause



But as said, the above script is not needed because a better method was found and then included in the updated Horse Skin v1.21 ...<br><br>Post edited by: Benny Pedersen, at: 2007/09/01 20:11
Benny Pedersen
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop