Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
96 user(s) are online (81 user(s) are browsing Forums)

Members: 0
Guests: 96

more...

Headlines

Report message:*
 

Re: First native betas of dopus5, check this out !

Subject: Re: First native betas of dopus5, check this out !
by Severin on 2013/10/14 16:14:02

@kas1e

Nice :)

I've edited the version command a little, I changed it to a script that uses requestchoice if available or opens it's own console window if not. It also compares the copy in ram if any with the file version and displays both if they are different.

Here's the script:

.bra {
.
ket }
.
key file

FAILAT 30
SET vers1 
`Version full "{file}"`
SET vers2 `Version full file "{file}"`
IF 
EXISTS C:RequestChoice
 
IF "$vers1EQ "$vers2"
  
RequestChoice Version "$vers1Ok >nil:
 ELSE
  
RequestChoice Version "Version in ram:*n$vers1*n*nVersion of File:*n$vers2Ok >nil:
 ENDIF
ELSE
 IF 
"$vers1EQ "$vers2"
  
ECHO $vers1 >con:20/20/480/120/Version/CLOSE/WAIT
 
ELSE
  ECHO 
"Version in ram:*n$vers1*n*nVersion of File:*n$vers2>con:20/20/480/120/Version/CLOSE/WAIT
 
ENDIF
ENDIF
UNSET 
vers1
UNSET vers2


Save the script as Dopus5:Scripts/Version

Change the ALL filetype as follows:

Open filetypes editor (ramiga 5), double click 'All DEFAULT' in the list. Double click 'Version' in the Icon Menu list.

Click the existing command and delete it.
Click new and set it to

[Script] dopus5:scripts/version {o}

In flags set Cd Source & Run Asychronously to on, everything else off

Click use, use & save.

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project